vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Private Message IP address (https://vborg.vbsupport.ru/showthread.php?t=277394)

brtev 01-22-2012 09:42 PM

Private Message IP address
 
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

Quote:

Originally Posted by brtev (Post 2291205)
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:
Code:

$post['ipaddress']

The IP for Posts is pulled using:
Code:

$post['ip']

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

kh99 01-29-2012 02:56 AM

Quote:

Originally Posted by Boofo (Post 2293664)
The IP for PMs is pulled using:
Code:

$post['ipaddress']

The IP for Posts is pulled using:
Code:

$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

HTML Code:

{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.


All times are GMT. The time now is 05:27 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00993 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_html_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete