Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: shadow82x - huhtikuu 14, 2007, 10:03:12 IP

Otsikko: How to edit... "Logged" or "Your ip"
Kirjoitti: shadow82x - huhtikuu 14, 2007, 10:03:12 IP
Is there a way to make this go away on each post?
Otsikko: Re: How to edit... "Logged" or "Your ip"
Kirjoitti: Oldiesmann - huhtikuu 14, 2007, 10:25:38 IP
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];
Otsikko: Re: How to edit... "Logged" or "Your ip"
Kirjoitti: shadow82x - huhtikuu 14, 2007, 10:45:40 IP
Nothing happened..
Otsikko: Re: How to edit... "Logged" or "Your ip"
Kirjoitti: codenaught - huhtikuu 15, 2007, 12:59:22 AP
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.
Otsikko: Re: How to edit... "Logged" or "Your ip"
Kirjoitti: shadow82x - huhtikuu 15, 2007, 12:31:49 IP
No im using 1.1.2 default but I only modified images on it so its the same
Otsikko: Re: How to edit... "Logged" or "Your ip"
Kirjoitti: codenaught - huhtikuu 15, 2007, 12:37:01 IP
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)
Otsikko: Re: How to edit... "Logged" or "Your ip"
Kirjoitti: shadow82x - huhtikuu 15, 2007, 02:59:57 IP
Yes