Page 1 of 1

sign guestbook

Posted: Fri Sep 01, 2006 10:23 pm
by mirnot
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

can i delete the words "sign guestbook"
just above the required fields... line?

Posted: Sat Sep 02, 2006 12:47 am
by Klemen
Open gbook.php in a text editor (Notepad, Wordpad) and search for the text, then replace it with whatever you like

Posted: Sun Sep 03, 2006 1:40 am
by mirnot
thanks
can i delete that heading altogethet?
I tried and the whole script went wrong with a list of errors coming up at the top of the page before the form

Posted: Sun Sep 03, 2006 9:19 am
by Henrie
Yes you can.
Find this piece of code (in GBook version 1.43 starting at line 887)

Code: Select all

echo '<h3 align="center">'.$settings['gbook_title'].'</h3>
<p align="center"><a href="'.$settings['website_url'].'">Back to '.$settings['website_title'].'</a>
| <a href="gbook.php">View guestbook</a>
| <a href="gbook.php?a=sign">Sign guestbook</a></p>
<div align="center">
<center>
';
Delete the parts you don't need. But remember, this code is written on every page, so if you remove a part of it here, it will be removed on every page.
To just delete the Sign guestbook part, delete this

Code: Select all

| <a href="gbook.php?a=sign">Sign guestbook</a>
To delete all three Back to My lovely website | View guestbook | Sign guestbook links, delete this

Code: Select all

<p align="center"><a href="'.$settings['website_url'].'">Back to '.$settings['website_title'].'</a>
| <a href="gbook.php">View guestbook</a>
| <a href="gbook.php?a=sign">Sign guestbook</a></p>
Greetings,
Henrie

Posted: Sun Sep 03, 2006 2:16 pm
by mirnot
caan i delete this line

echo '<h3 align="center">'.$settings['gbook_title'].'</h3>

i tried and i get the following error

www.moshiachforkids.com/gbook/gbook.php

Posted: Sun Sep 03, 2006 3:09 pm
by Henrie
You may not delete the echo ' part, only the <h3 align="center">'.$settings['gbook_title'].'</h3> part.

Greetings,
Henrie