IP ADDRESS

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

IP ADDRESS

Post by mirnot »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

does the "IP" option allow me to see where the spam came from?
when i set up my gbook i deleted the "IP" image.

wondering if i put it back on, is there anyway to block messages coming frim specific addresses?

is so how do i reinstate it?

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

Post by Henrie »

mirnot wrote:does the "IP" option allow me to see where the spam came from?
Yes, when clicking the IP image you will be able to see the IP-address of the poster of the message, after you have entered your admin password.
mirnot wrote:wondering if i put it back on, is there anyway to block messages coming frim specific addresses?
When clicking the IP image, you also get the option to ban this IP address.
mirnot wrote:is so how do i reinstate it?
You should copy the original comments.php file from the GBook you downloaded from www.phpjunkyard.com. It is placed in the templates/default/ folder.
Or you could add

Code: Select all

<a href="gbook.php?a=viewIP&num=<?php echo $i; ?>"><img src="<?php echo $settings['tpl_path']; ?>images/ip.gif" alt="<?php echo $lang['t09']; ?>" class="gbook_nobrd" title="<?php echo $lang['t09']; ?>" /></a>
to your current comments.php file.

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.
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

Post by mirnot »

i have gbook 1.43
i dont see an option to ban the ip

could i?
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello mirnot,

No you can not see an option to ban the IP when you are using GBook 1.43. The ban IP function was added in GBook version 1.5.
You did not say what version you were using, so i presumed you were using the latest version (which is version 1.7).

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.
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

Post by mirnot »

OK
if i want to update do i have to overwrite my gbook.php script or are there newer files to upload?
there is a lot of html on the look and set up of my gbook in the php script.

i dont know php well and i always get messed up fixing htings up.

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

Post by Henrie »

Hello mirnot,

As you did not post a link to your guestbook, I can not see how much you changed. But with GBook version 1.7 a template function was introduced, so you would have to totally redo your guestbook. The only thing you can re-use are the entries.txt (or whatever you have named it), header.txt and footer.txt files (and possibly the badwords file en.php).

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.
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

Post by mirnot »

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

Post by Henrie »

It would require some editing as you have moved some texts. But I don't think it would be to hard to do.
But you have to edit it, so it really is your call. I would prepare the new version in a different folder untill you have it as you want it to be and only than replace the old version.
And you can always ask here in the forum when you have problems.

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.
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

Post by mirnot »

Thanks
I will give it a try.
Post Reply