News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Question Here Guys ( Any Help Would Be Great )

Started by XxRedxNeckxX, May 01, 2014, 08:14:37 PM

Previous topic - Next topic

XxRedxNeckxX

How can i hide everybody's ip address from each other? A member of my site asked me if could hide it. Any help would be great

mashby

I took a look at Display.template.php and the area where the IP address appears is  this:
// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '
<a href="', $scripturl, '?action=', !empty($message['member']['is_guest']) ? 'trackip' : 'profile;area=tracking;sa=ip;u=' . $message['member']['id'], ';searchip=', $message['member']['ip'], '">', $message['member']['ip'], '</a> <a href="', $scripturl, '?action=helpadmin;help=see_admin_ip" onclick="return reqWin(this.href);" class="help">(?)</a>';
// Or, should we show it because this is you?
elseif ($message['can_see_ip'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $message['member']['ip'], '</a>';
// Okay, are you at least logged in?  Then we can show something about why IPs are logged...
elseif (!$context['user']['is_guest'])
echo '
<a href="', $scripturl, '?action=helpadmin;help=see_member_ip" onclick="return reqWin(this.href);" class="help">', $txt['logged'], '</a>';
// Otherwise, you see NOTHING!
else
echo '
', $txt['logged'];

I think I'm a moderator here and I don't even see your IP, I just see Logged.
Always be a little kinder than necessary.
- James M. Barrie

Kindred

The ip is only visible to admins and the individual user.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: