Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: superj707 on September 04, 2014, 12:01:41 AM

Title: display IP to user (even if guest)
Post by: superj707 on September 04, 2014, 12:01:41 AM
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.
Title: Re: display IP to user (even if guest)
Post by: Burke ♞ Knight on September 04, 2014, 12:10:18 AM
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';