Include gbook.php on page

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
lowe_22
Posts: 1
Joined: Mon Aug 14, 2006 9:11 pm

Include gbook.php on page

Post 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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post 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
booreiland
Posts: 1
Joined: Sun Dec 30, 2007 9:38 am

Post by booreiland »

Which lines should I change when using version 1.5?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

The <head>..</head> section can be found at lines 968-982 (in gbook.php file version 1.50).

Greetings,
Henrie
Post Reply