Page 1 of 1
"Un"-centering of the Guestbook
Posted: Tue Nov 15, 2005 2:48 am
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!
Posted: Tue Nov 15, 2005 5:45 pm
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.
left-justify GBook instead of centered
Posted: Tue Nov 15, 2005 6:05 pm
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
Change to:
Line 656
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:
Line 526
Code: Select all
<p align="center"><b>Comments:</b><br>
Change to:
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:
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