If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
Advanced Guestbook within the page...  XML
Forum Index » Support Forum
Author Message
Anonymous



Hello all again.
Here's my problem:

In Advanced Guestbook: I want it when the link is clicked the Guestbook to be in on the right side and the whole page to actually stay the way it is. Now I tryed to do that with Templates but it didn't work out.
If I use PHP to just include the page in it, would that work?
I just want to get it to for like for example on here you have the FORUM link, once clicked the whole template stays just the forum is displayed on here!!!
Thank you.
Sincerely,
Dr. DK
Anonymous



Well I got it... Just going to edit header, body, and footer. For each image just add ../ and it's going to work. Create the tables and all that and bam. Just wanted to find out if there was any easier way out of this, like enter the dir_url and each of the images will have it. But this works as well...
Thanks!
Sincerely,
Dr. DK
Anonymous



Now I was using include_once () for the PHP file. But when I added that into the guestbook, then the include doesn't work. If I use the use_db for other script then it created a problem withing the Guestbook file.

How do I get around this? Still to use include_once() and maybe even use the other coutner script with use_db script in the php?!?!

Any replys welcome!
Thanks.
Sincerely,
Dr. DK
Anonymous



Now I got the INCLUDE_ONCE()S working by going through the template.class.php and adding some code to it.

My question now is:
How do I get the Counter and the Advanced Poll working along with the guestbook using the INCLUDE_ONCE()S in the template of the header and footer?

Cause for the Counter line:
<?php
include ("./counter/config.inc.php");
if ($COUNT_CFG['use_db']) {
include ("./counter/mysql.class.php");
}
include ("./counter/counter.class.php");
$counter = new dcounter();
$visits = $counter->show_counter(); /* Returns an associative array */


?>
That seems to conflict each other with the Adv. Guestbook!
As far as having the Poll on it with line:
echo $php_poll->poll_process(4);
That seems to conflish with Adv. Guestbook as well!

Anyone can help?
All help greatly appreciated!
Thank you.
Sincerely,
Dr. DK
Anonymous



don't use templates. Just run your includes and your site templates within the index.php, addentry.php and comment.php

then just empty the header and footer templates.......works like a charm for me
Anonymous



Well Guest my friend.
That did work like a charm.
Thanks a lot for the other way around.
Sincerely,
Dr. DK
Anonymous



QUESTION for ya GUEST!

Once I put everything in the comment.php, all the include_once()s and $qb_com needs to go on top though, otherwise it tell that error of:

Warning: Cannot add header information - headers already sent by (output started at /root/folder/example/guestbook/comment.php:17) in /root/folder/example/guestbook/lib/comment.class.php on line 175

So I can't really have nothing in comment.php but that code or can I specify the result to show up exactly where I want it by placing the code from comment on top and then adding my code below?

Anybody has any ideas?
Sincerely,
Dr. DK
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum