Remove Guestbook Image and Captcha

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
logan87
Posts: 5
Joined: Mon Jan 25, 2010 9:34 pm

Remove Guestbook Image and Captcha

Post by logan87 »

I'd like to remove the guestbook post-it image (book.png) at the top of the page. I looked through all of the files looking for anything that could relate to the image, but couldn't find it.

I would also like to remove the captcha so users don't have to enter anything when signing my guestbook. I don't know PHP, so I don't want to go through deleting things I shouldn't.

If someone can help, that'd be great, thanks!


Logan
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Logan,
I'd like to remove the guestbook post-it image (book.png) at the top of the page
Find the file style.css in templates/default folder. Search for this line (GBook version 1.7)

Code: Select all

#gbook_header{width:600px; height:150px; margin:0 auto; background-image:url(images/book.png); background-repeat:no-repeat;}
and remove the

Code: Select all

background-image:url(images/book.png);
part.
I would also like to remove the captcha so users don't have to enter anything when signing my guestbook.
Open the settings.php file and set

Code: Select all

$settings['autosubmit']=0;
You also might want to disable the anti-spam question by setting:

Code: Select all

$settings['spam_question']='';
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
logan87
Posts: 5
Joined: Mon Jan 25, 2010 9:34 pm

Post by logan87 »

Thanks for the fast reply! Going to work on that now :D
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Just my 2 cents: I would recommend leaving at least the SPAM question or you might start getting SPAM to your guestbook.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
logan87
Posts: 5
Joined: Mon Jan 25, 2010 9:34 pm

Post by logan87 »

Klemen wrote:Just my 2 cents: I would recommend leaving at least the SPAM question or you might start getting SPAM to your guestbook.
I'll re-add the spam things if I start getting any. Just trying to simplify it a little bit for a guestbook on a wedding site.

Now another question: I deleted the image and now the links and title on top are a little off center. Anything I could do to change that?

Here's the link to my guestbook.

And here's the link to the page I would like the guestbook on, so you can see it in the frame.

And if you guys are bored and still want to help me...The comment box could be not as tall, considering the frame it will be in is rather small.

Thanks for the help guys, this is a great little guestbook :D
logan87
Posts: 5
Joined: Mon Jan 25, 2010 9:34 pm

Post by logan87 »

And if you guys are bored and still want to help me...The comment box could be not as tall, considering the frame it will be in is rather small.
I figured that out :) Now I'll keep playing around with the rest.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Logan,

If you want to center the title and links on top, change the following in style.css file:
Change current #gbook_header {} to

Code: Select all

#gbook_header{height:100px; margin:0px auto; text-align:center; }
Change current #gbook_top_links{} to

Code: Select all

#gbook_top_links{height:50px; margin:auto; margin-top:10px;}
and change current h1{} to
h1{margin:0; padding-top:5px; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; color:#010097; font-weight:bold; font-size:20px;}

And i see that you have changed in overall_header.php
<div id="gbook_top_links"> to <div id="gbook_top_links" align="center">
You should change it back to <div id="gbook_top_links">

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
logan87
Posts: 5
Joined: Mon Jan 25, 2010 9:34 pm

Post by logan87 »

One last question and I should be done bugging you :)

The view guestbook and sign guestbook pages both have different space after the links on top. How would I make them the same?

Probably going to have to buy you a drink for helping me :lol:

Thanks again!

Forgot to include a link to the guestbook!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Logan,

No need to bribe me :wink:

There are 2 possible ways to solve this:
  1. Read my response here: viewtopic.php?p=12523#12523
  2. In style.css file remove height:50px; in #gbook_header{} and #gbook_top_links{}
I hope you will have a beautiful wedding day, although it is still a long time before it is that time.

Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply