Sorry, it's not possible ( yet ) to collect the IP address of a specific User.
Only of the current User, using:
- Code: Select all
<?php echo S2MEMBER_CURRENT_USER_IP; ?>
However, this IS going to be possible, starting with s2Member v3.6. We've been reluctant to do this, because we feel it's something that WordPress should do at it's core. But since WordPress has not implemented this either, we are going to go ahead and do so in s2Member v3.6.
I'm flagging this thread so it's updated once this change is ready. At that time, I'll provide instructions on how to obtain this information from within WordPress. Until then, you CAN implement this on your own, through the
custom="" Attribute in your Shortcode.
custom="www.your-domain.com|<?php echo $_SERVER["REMOTE_ADDR"]; ?>"This way s2Member will store the IP address in your database. I've done a video tutorial covering integration with iDevAffiliate, and this was something that I went over in detail in that video. So even though you might not be integrating iDev, this video may prove helpful in this regard. You can watch it here:
http://www.s2member.com/idevaffiliate-i ... ion-video/@FLAG @TODO: This is already completed in the development version, soon to be released.