Log in

View Full Version : Private Message IP address


brtev
01-22-2012, 09:42 PM
Is there a way to find out? If no, is there a mod or template edit for this? If no, would someone help me make a plugin. I'll pay for this feature.

kh99
01-22-2012, 10:54 PM
The ip address isn't saved when a private message is sent. I did a couple searches but I can't find any mod for this (which doesn't mean it doesn't exist - maybe someone else will know). If you have a specific message you're curious about you might be able to figure it out by looking in the web server logs for someone accessing private.php at the time the message was sent.

brtev
01-23-2012, 12:55 AM
Sorry. My vbulletin technical knowledge isn't very strong. Can you guys explain in greater detail? Thanks.

kh99
01-23-2012, 01:29 AM
Sorry. My vbulletin technical knowledge isn't very strong. Can you guys explain in greater detail? Thanks.

Like I mentioned above, the ip address is not saved for a PM like it is for a post. So a mod could be made that saves the ip for each PM written, then displays it like it's displayed for a post - I don't think it's a particularly difficult mod. But of course it won't give you the information for PMs that have already been sent.

brtev
01-23-2012, 07:34 AM
Sounds good. Do you guys have any recommendations for who can make this mod?

Boofo
01-29-2012, 02:24 AM
The IP for PMs is pulled using:
$post['ipaddress']


The IP for Posts is pulled using:
$post['ip']


No need for any queries. And it DOES work on already sent PMs.

kh99
01-29-2012, 02:56 AM
The IP for PMs is pulled using:
$post['ipaddress']


The IP for Posts is pulled using:
$post['ip']


No need for any queries. And it DOES work on already sent PMs.

$post['ipaddress'] is the registration ip address of the user who wrote the PM, not the address the pm was sent from. So yeah, you could display that, but I don't see the point.

Boofo
01-29-2012, 03:15 AM
I don't see your point. He wanted the IP of the PM. This is how vb does it.

nerbert
01-29-2012, 03:15 AM
Just stuck this in postbit


{vb:raw post.ipaddress}#########{vb:raw post.ip}



The first checks out as registration ip. The second I assume is the ip for when it was posted.

EDIT: Checked PMs and {vb:raw post.ip} doesn't have a value

Boofo
01-29-2012, 03:16 AM
But they were wanting that in PMs. post.ip does not work in PMs.