Page 1 of 1

Include gbook.php on page

Posted: Mon Aug 14, 2006 9:15 pm
by lowe_22
Hi I want to include gbook.php on a page on my website so that appears within my headers etc... I'm trying the include("guestbook/gbook.php"); php thing, but the rest of the website doesnt seem to appear, as though the style sheets have gone.

Anyway I can include it like this?

Olly

Posted: Tue Aug 15, 2006 7:30 pm
by Henrie
Hello Olly,

To apply your own style to the page use the header.txt file provided with gbook. In this file you can place all the code you want to place right after the <body> tag and before the start of the actual guestbook entries.
To place your own code after the guestbook entries at the end of the page, use the footer.txt file.

To get your own modified code in the <head>..</head> section (include your own javascripts or stylesheets) or your own modified <body> tag you have to edit the gbook.php file.
You can find the code that writes the head section at lines 867-884 (in gbook.php file version 1.43).

I hope this helps you.

Greetings,
Henrie

Posted: Mon Dec 31, 2007 9:12 am
by booreiland
Which lines should I change when using version 1.5?

Posted: Mon Dec 31, 2007 11:36 am
by Henrie
The <head>..</head> section can be found at lines 968-982 (in gbook.php file version 1.50).

Greetings,
Henrie