PDA

View Full Version : How to get the IP Address of a Post?


Abhik
02-05-2012, 07:47 AM
How do I echo/return the IP address of the user?

There is a IP image at the bottom of the postbit and the IP Address gets visible while hovering mouse on it. But, I want to use that on a plugin.

Thanks

kh99
02-05-2012, 02:07 PM
If you have access to $post in your plugin, it should be in $post[ipaddress].

Abhik
02-06-2012, 03:10 AM
Amm!!!
What should I do to have access to $post in my plugin?

$templater->register('post', $post);?
Kevin, may I PM you? I'll need some more help on the plugin that I cannot discuss publicly.
Thanks

kh99
02-06-2012, 03:27 AM
It depends which hook you're using.

You can PM me, but I probably won't be able to help until tomorrow because it's late here.

Abhik
02-06-2012, 04:12 AM
Thanks Kevin, I am in no hurry.
I'll put all the data together and will PM you shortly.