News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Help with IP viewing problem

Started by neonsyrup, June 02, 2013, 10:17:11 AM

Previous topic - Next topic

neonsyrup

I want to make it so my moderators can view peoples IP's in all boards but a specific one. Is there anyway I can do that? Thanks.

margarett

Actually I think that is pointless...

If they cannot see the the IP in that board, they just need to open the user's profile and it's there...

Anyway, if you go to Display.template.php and find this:

// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']))
echo '

replace it with:

// Show the IP to this user for this post - because you can moderate?
if ($context['can_moderate_forum'] && !empty($message['member']['ip']) && (($context['current_board'] != 1) || $user['is_admin']))
echo '


You need to set the correct board ID in

$context['current_board'] != 1


I think it should do the trick... But, again, I believe it's useless...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Advertisement: