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!
"Un"-centering of the Guestbook
left-justify GBook instead of centered
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-639Change to
Line 646Change to:
Line 656Change to:
Line 661Change to:
For the Sign guestbook page:
Line 490Change to:
Line 526Change to:
Lines 534-535Change to:
For the Anti-SPAM check page:
Line 176Change to:
Lines 185-186Change to:
Line 205Change to:
I think that's everything.
Greetings,
Henrie
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>
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>
Code: Select all
echo "</center>
Code: Select all
echo "
Code: Select all
echo "<hr width=\"95%\">
Code: Select all
echo "<hr width=\"95%\" align=\"left\">
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
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
Line 490
Code: Select all
<h3 align="center">Sign guestbook</h3>
Code: Select all
<h3>Sign guestbook</h3>
Code: Select all
<p align="center"><b>Comments:</b><br>
Code: Select all
<p><b>Comments:</b><br>
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>
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>
Line 176
Code: Select all
<h3 align="center">Anti-SPAM check</h3>
Code: Select all
<h3>Anti-SPAM check</h3>
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>";}
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>";}
Code: Select all
<p align="center"><input type="submit" value=" Continue "></p>
Code: Select all
<p><input type="submit" value=" Continue "></p>
Greetings,
Henrie