News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

display IP to user (even if guest)

Started by superj707, September 04, 2014, 12:01:41 AM

Previous topic - Next topic

superj707

I have a DMCA form that I am putting up where people can submit copyright notifications they may find on my site. I would like to show the user that I have captured their IP to help prevent fraudulent claims. It will inform them that their IP address will be submitted with their copyright claim.

Problem: I don't know how to capture the users IP using php.
Should be simple enough. Any help?
thank you in advance.

Burke ♞ Knight

#1
In any post done, even by guests, the IP is logged, even if they can not see it.
You can still state that it is logged, and even though they can not see it, they can see where it is logged, and will know it.

As can be seen in inage I attached of your post here, as looks to anyone but you and staff.

Edit:

I do believe you could change the text to make it a little more obvious as to what is logged:

Themes/default/languages/index.english.php

Code (Find) Select
$txt['logged'] = 'Logged';

Code (Replace With) Select
$txt['logged'] = 'IP Logged';

Advertisement: