Uutiset:

Wondering if this will always be free?  See why free is better.

Main Menu
Advertisement:

How to edit... "Logged" or "Your ip"

Aloittaja shadow82x, huhtikuu 14, 2007, 10:03:12 IP

« edellinen - seuraava »

shadow82x

Is there a way to make this go away on each post?
Colin B
Former Spammer, Customize, & Support Team Member

Oldiesmann

Yes, it's quite easy:

Themes/default/Display.template.php

Find and remove the following code (Lines 477-495 in a default install):

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[511], '</a>';
// Otherwise, you see NOTHING!
else
echo '
', $txt[511];
Michael Eshom
Christian Metal Fans

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

codenaught

Are you using a custom theme? If so you will probably have to edit Themes/theme_name/Display.template.php and remove that code there as most themes have their own Display template so they do not use the default theme's one.
Dev Consultant
Former SMF Doc Coordinator

shadow82x

No im using 1.1.2 default but I only modified images on it so its the same
Colin B
Former Spammer, Customize, & Support Team Member

codenaught

Well it should work as that is definitely the template code that outputs those things. Did you upload it to the proper place over the existing file? (Themes/default)
Dev Consultant
Former SMF Doc Coordinator

shadow82x

Colin B
Former Spammer, Customize, & Support Team Member

Advertisement: