"Un"-centering of the Guestbook

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Jeff

"Un"-centering of the Guestbook

Post by Jeff »

Script URL:
Version of script:
Version of PHP:
Hosting company:
Have you searched THIS FORUM for your problem:
(if not please do before posting)
If so, what terms did you try:

Write your message below:

I am trying to un-center the guestbook and left justify it and in gbook.php there are a few place that I could modify the code, but i think every time i try, it F's it up.

Also, I would like to do the same thing with the <HR> tag.

thanks!
Guest

Post by Guest »

HI, look around for the
<div align="\center\"> or
<diz align="center"> tags,

and change them to left or right accordingly.

I think there are a few to change but find what you can and experiment.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

left-justify GBook instead of centered

Post by Henrie »

Hello Jeff,

To left-justify GBook you have to modify gbook.php in a lot of places, here it goes:

For the entries page:
Lines 634-639

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>
Change to

Code: Select all

echo "<h3>$settings[gbook_title]</h3>
<p><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>
Line 646

Code: Select all

echo "</center>
Change to:

Code: Select all

echo "
Line 656

Code: Select all

echo "<hr width=\"95%\">
Change to:

Code: Select all

echo "<hr width=\"95%\" align=\"left\">
Line 661

Code: Select all

<p align=\"center\"><font class=\"smaller\">Powered by <a href=\"http://www.phpjunkyard.com/php-guestbook-script.php\" class=\"smaller\" target=\"_blank\">PHP guestbook</a> $settings[verzija] from
Change to:

Code: Select all

<p><font class=\"smaller\">Powered by <a href=\"http://www.phpjunkyard.com/php-guestbook-script.php\" class=\"smaller\" target=\"_blank\">PHP guestbook</a> $settings[verzija] from
For the Sign guestbook page:
Line 490

Code: Select all

<h3 align="center">Sign guestbook</h3>
Change to:

Code: Select all

<h3>Sign guestbook</h3>
Line 526

Code: Select all

<p align="center"><b>Comments:</b><br>
Change to:

Code: Select all

<p><b>Comments:</b><br>
Lines 534-535

Code: Select all

<p align="center"><input type="checkbox" name="private" value="Y">Make this post private</p>
<p align="center"><input type="submit" value=" Add my comments "></p>
Change to:

Code: Select all

<p><input type="checkbox" name="private" value="Y">Make this post private</p>
<p><input type="submit" value=" Add my comments "></p>
For the Anti-SPAM check page:
Line 176

Code: Select all

<h3 align="center">Anti-SPAM check</h3>
Change to:

Code: Select all

<h3>Anti-SPAM check</h3>
Lines 185-186

Code: Select all

if ($message == 1) {echo "<p align=\"center\"><b>Please type in the security number</b></p>";}
elseif ($message == 2) {echo "<p align=\"center\"><b>Wrong security number. Please try again</b></p>";}
Change to:

Code: Select all

if ($message == 1) {echo "<p><b>Please type in the security number</b></p>";}
elseif ($message == 2) {echo "<p><b>Wrong security number. Please try again</b></p>";}
Line 205

Code: Select all

<p align="center"><input type="submit" value=" Continue "></p>
Change to:

Code: Select all

<p><input type="submit" value=" Continue "></p>
I think that's everything.

Greetings,
Henrie
Post Reply