News:

Support the VirtueMart project and become a member

Main Menu

Show IP Address

Started by batboiko, September 27, 2012, 17:05:07 PM

Previous topic - Next topic

batboiko

Hi All ,

Is there any way to show user IP address in the Virtuemart email form when someone is register to our Shop ?
We want when we receive the email to have the user IP address

bytelord

Hello,

You need to create a user plugin that is triggered by the joomla onUserLogin event (http://docs.joomla.org/Plugin/Events/User#onLoginUser)
Plugin can record the value of the server variable $_SERVER['REMOTE_ADDR'] to a custom field and saved with the order.
Needs a little bit work but could be done.

You could search also on JED to find any plugin that logs user ip address and a way to trigger it...

Regards

Production: Joomla 2.5.8 | VM 2.0.14 | PHP 5.3.13
Testing     : Joomla 2.5.8 | VM 2.0.16 | PHP 5.3.8
Testing     : Joomla 2.5.8 |    VM 2.1   | PHP 5.3.8

- Don't Forget to mark thread as solved when it is solved!
- Please do not PM with support questions, use the forum!