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 
email notification on new entry with ip adress?  XML
Forum Index » Advanced Guestbook Forum
Author Message
jesperj
Beginner

Joined: 14/04/2005 15:05:22
Messages: 6
Offline

Greetings fellow Advanced Guestbook users (and developer/s perhaps!),

I use Advanced Guestbook 2.3.1 and I wonder if it is possible to customize it so that when I get an email notification of a new guestbook entry, the email will not only contain the message but also the ip adress and date/time. This would be useful in the way that I could first remove the abusive entries and then check the email for info of the abuser. It has happened that I just erase them and later realize I want to look up who did it but too late (as I didn't cut & paste or noted the abusers ip and date/time before erasing the entry).

Any help with this would be very much appreciated.

Thank you for an otherwise great product.

Best regards,
Jesper J
Carbonize
Master
[Avatar]

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

It already should include the persons hostname.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 14/04/2005 15:05:22
Messages: 6
Offline

it should? It does not. It looks like the following (my email and url replaced by MYEMAIL and MYSITE):

- - -

From Paris.Hilton@csea02.cliche.se Thu Apr 14 01:22:56 2005
X-Apparently-To: MYEMAIL via 217.12.10.180; Wed, 13 Apr 2005 18:22:58 -0700
Authentication-Results: mta134.mail.dcn.yahoo.com from=csea02.cliche.se; domainkeys=neutral (no sig)
X-Originating-IP: [195.249.40.66]
Return-Path: <MYEMAIL>
Received: from 195.249.40.66 (EHLO csea02.cliche.se) (195.249.40.66) by mta134.mail.dcn.yahoo.com with SMTP; Wed, 13 Apr 2005 18:22:58 -0700
Received: (from virtual@localhost) by csea02.cliche.se (8.11.6/8.11.6) id j3E1MuP31629; Thu, 14 Apr 2005 03:22:56 +0200
Datum: Thu, 14 Apr 2005 03:22:56 +0200
Message-Id: <200504140122.j3E1MuP31629@csea02.cliche.se>
X-Authentication-Warning: csea02.cliche.se: virtual set sender to MYEMAIL using -f
Till: MYEMAIL
Ämne: New guestbook entry
Från: Paris.Hilton@csea02.cliche.se,
X-Mailer: Advanced Guestbook 2
Content-Length: 515

Paris Hilton


just wanted to say you have a nice site. Also check out mines:

SPAM MESSAGE HERE

- - -

It says From Paris.Hilton@csea02.cliche.se, and all email notification shows first.lastname@csea02.cliche.se. Cliche.se is my webhotell. Is this where the host of the poster should be instead or where?
Carbonize
Master
[Avatar]

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

If they haven't supplied an email address the @BLAH should be their hostname. Anyway open up add.class.php found in the lib folder.
Replace

with


Not tested it but should work.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 14/04/2005 15:05:22
Messages: 6
Offline

Thank you very much for the time and effort.

After your fix the email looks like this:

- - -
NAME
IP

CONTENTS OF GUESTBOOK MESSAGE
- - -

which is great :) Thank you very much. The dream sollution however, but I think it will take too much effort and time to get working would be if it looked something like:

- - -

NAME: NAME
IP: IP
DATE : (date complete with time like "Thu, 14 Apr 2005 03:22:56 +0200")

MESSAGE: MESSAGE

- - -

I guess one really needs the exact date and time also incase of abuse.
Perhaps this could be implemented in future versions of the guestbook?

Again thank you very much. Now I can see the senders ip atleast in email.
Carbonize
Master
[Avatar]

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



for more details on formatting the time read http://uk.php.net/manual/en/function.date.php

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 14/04/2005 15:05:22
Messages: 6
Offline

Thank you very much :)

Where exactly should I put this line of code? I feel uncomfortable trying to just put it where I think "looks right" as I really wouldn't know what I would be doing.
Carbonize
Master
[Avatar]

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

Where you put the initial code.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 14/04/2005 15:05:22
Messages: 6
Offline

Please excuse my ignorance. I was just scared of messing it up.

Thank you very very much it works perfectly!
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum