If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
how to see the logged ip'es in advanced guestbook  XML
Forum Index » Support Forum
Author Message
airborne
Newbie

Joined: 26/07/2004 03:04:28
Messages: 4
Offline

hi. how can i see/find the logged ipes???
[WWW] [MSN]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Log in as admin and go to Easy Admin. The ip will be at the top of their entry.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
airborne
Newbie

Joined: 26/07/2004 03:04:28
Messages: 4
Offline

ok thx
[WWW] [MSN]
Anonymous



most of the logged addresses are hostnames and not IPs. Sure I can look them up but wouldn't it be simpler if AGB logs EVERY IP?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

It used to but for some reason the writer has chosen to use the ip to host function that is built into PHP. I am going to look at how to mod the guestbook to go back to just recording the IP as looking up the host name can slow your site down. Also it would be easier for people toblock IP's if they were shown.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

OK quick mod to have AG 2.3.1 log the IP rather than the hostname.

Open up add.class.php then find

replace that with

it's a bit of a hack fix but does the job (hopefully as I haven't tested it).

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Trevor
Student
[Avatar]

Joined: 17/06/2004 02:53:11
Messages: 67
Location: UK
Offline

Nice one Carbonize. If I remember I'll change my GB and let you know if there's any problems.
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
SimonTuffGuy
Beginner

Joined: 08/11/2004 14:53:49
Messages: 5
Location: Central PA
Offline

Carbonize,
When someone signs my guestbook, an email is sent to me to let me know... A lot of the emails I receive come from SignerName@.MISSING-HOST-NAME.

Is there a way to set that, using this IP hack, to make it SignerName@IP.Address?

Thanks,
Simon

Simon
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

If they don't supply an email address the guestbook sends you the email from nobody@YOURHOST. In your case it sound slike it's not finding a host name to fill in. open up lib/add.class.php and find nobody@$host. Simply change this to whatever you want the from address to be when they have not supplied one. Or if you want them to always come from the same address change to changing the guestbook@mysite.com to whatever you wish.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
karlito
Beginner

Joined: 08/05/2005 10:56:08
Messages: 6
Offline

Carbonize wrote:OK quick mod to have AG 2.3.1 log the IP rather than the hostname.

Open up add.class.php then find

replace that with

it's a bit of a hack fix but does the job (hopefully as I haven't tested it).


Is it possible to see both Ip and Hostname together?
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

only by having it resolve the IP to hostname with every viewing of the guestbook which could be very slow.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
lloyd_borrett
Beginner
[Avatar]

Joined: 19/06/2004 11:58:35
Messages: 40
Location: Kilmore, Victoria, Australia
Offline

You should also make that same code change in the file comment.class.php if you want to be able to see the actual IP address there as well.
[Email] [WWW] [Yahoo!] [MSN]
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

Thanks for the reminder. Another item on the to do list for Lazarus 1.1

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum