News:

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

Main Menu

How to hide ip shown under post

Started by DSK-Googler, July 01, 2011, 01:27:19 PM

Previous topic - Next topic

DSK-Googler

In smf if a user is posting a reply means  under the reply his ip is shown to him and also to admin.... I dnt wanna let my users to knw thier ip displayed under his post ....


How to do this in smf 2.0
Be my friend on facebook 


   
http://facebook.com/profile.php?id=100001290082093

Sir Osis of Liver

You can edit out that field in Display.template.php.  In default theme -

Find this:



// 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;area=issuewarning;u=', $message['member']['id'], ';msg=', $message['id'], '"><img src="', $settings['images_url'], '/warn.gif" alt="', $txt['issue_warning_post'], '" title="', $txt['issue_warning_post'], '" /></a>';
echo '
<img src="', $settings['images_url'], '/ip.gif" alt="" />';

// 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?




Change to this:



// 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;area=issuewarning;u=', $message['member']['id'], ';msg=', $message['id'], '"><img src="', $settings['images_url'], '/warn.gif" alt="', $txt['issue_warning_post'], '" title="', $txt['issue_warning_post'], '" /></a>';
echo '
<!--img src="', $settings['images_url'], '/ip.gif" alt="" /-->';

// 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?

{/code]
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

DSK-Googler

Be my friend on facebook 


   
http://facebook.com/profile.php?id=100001290082093

Advertisement: