Script URL: http://www.pothit.com/guestbook/gbook.php
Version of script: 1.43
Hosting company: www.futureservers.net
URL of phpinfo.php: http://ed.futurewebspace.co.uk/phpinfo.php.htm
URL of session_test.php: http://www.pothit.com/session_test.php
What terms did you try when searching for a solution:
embedding gbook on layers, using includes, in tables
Write your message below:
Dear Klemen Stirn and all PHP Junkyard (www.phpjunkyard.com) supporters,
I am looking for a way to run the latest version of gbook, (version 1.43) on this website: www.pothit.com
It runs fine, as a standalone page, see: http://www.pothit.com/guestbook/gbook.php but, I want to place the GuestBook with-in or on a page, that fits the rest of the sites style, i.e.: http://www.pothit.com/guest-book-en.php.
I have tried to achieve this by placing an include, <?php include('guestbook/gbook.php'); ?> in an empty table cell, but no luck.
I have also tried to place the same include on a layer that sits over the vacant table cell, but this hasn't worked either, as you can see here: http://www.pothit.com/guestbook/gbook.php.
From what I can tell, some of the reason for the script not working was/is the URL's not being global and so I have modified those that I can find, to global links, but still it's not working.
The only other modifications I have done to the gbook.php script is the remove the back to website link and set the table width="481" to match the space on the page that I want the guest book to run on.
Many thanks
Richard
how to run on own page, using includes, layers or tables?
how to run on own page, using includes, layers or tables?
www.NearDark.de - Germanys biggest Headshop wholesale Supplier
Near Dark GmbH
Bonner Str. 11a
D - 53773
Hennef
Germany
Near Dark GmbH
Bonner Str. 11a
D - 53773
Hennef
Germany
Hello Richard,
The reason the guestbook is not working as aspected is because it is meant to be used as a page to be displayed on itself (thus not as part of another page).
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.
I hope this helps you.
Greetings,
Henrie
The reason the guestbook is not working as aspected is because it is meant to be used as a page to be displayed on itself (thus not as part of another page).
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.
I hope this helps you.
Greetings,
Henrie