Removing ip address & logged in post page

Started by krashok1990, January 06, 2009, 12:49:59 PM

Previous topic - Next topic

krashok1990

Removing ip address & logged in post page

I am using smf 2.0 beta 4. i don't like ip address & logged being displayed in post page. can anyone say me how to remove ip address & logged.
Message Forum [nofollow] | Freeware Files [nofollow]

jaffaman

The I.P is not showen to everyone the IP addresses are shown to administrators and moderators to facilitate moderation and to make it easier to track people up to no good.
Members are also allowed to see their own IPs.

krashok1990

Quote from: jaffaman on January 06, 2009, 12:56:23 PM
The I.P is not showen to everyone the IP addresses are shown to administrators and moderators to facilitate moderation and to make it easier to track people up to no good.
Members are also allowed to see their own IPs.


oh, thanks, i don't know this, but i want to remove logged and ip address
Message Forum [nofollow] | Freeware Files [nofollow]

greyknight17

So you still want it removed? Make a backup copy of /Themes/default/index.template.php:

Code (Search for and delete or comment out the following) Select
// Can we issue a warning because of this post?  Remember, we can't give guests warnings.
if ($context['can_issue_warning'] && !$message['is_message_author'] && !$message['member']['is_guest'])
echo '
<a href="', $scripturl, '?action=profile;u=', $message['member']['id'], ';sa=issueWarning;msg=', $message['id'], '"><img src="', $settings['images_url'], '/warn.gif" alt="', $txt['issue_warning_post'], '" title="', $txt['issue_warning_post'], '" border="0" /></a>';
echo '
<img src="', $settings['images_url'], '/ip.gif" alt="" border="0" />';

// 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=trackip;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'];

Advertisement: