Page 1 of 1

Remove Guestbook Image and Captcha

Posted: Mon Jan 25, 2010 9:42 pm
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

Posted: Mon Jan 25, 2010 11:52 pm
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

Posted: Tue Jan 26, 2010 2:01 am
by logan87
Thanks for the fast reply! Going to work on that now :D

Posted: Tue Jan 26, 2010 8:40 am
by Klemen
Just my 2 cents: I would recommend leaving at least the SPAM question or you might start getting SPAM to your guestbook.

Posted: Tue Jan 26, 2010 2:44 pm
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

Posted: Tue Jan 26, 2010 3:08 pm
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.

Posted: Tue Jan 26, 2010 5:59 pm
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

Posted: Tue Jan 26, 2010 10:10 pm
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!

Posted: Tue Jan 26, 2010 10:27 pm
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