Log in

View Full Version : Stop moderators seeing admin ip address


rbecking
02-24-2011, 12:20 PM
Moderators can see user's ip address' in posts, they can also see admin's ip address in their posts, is there a way to stop them seeing admin's ip address?

kh99
02-24-2011, 02:16 PM
It doesn't look like there's a setting for that, just one for moderators able to see ips or not. I'm not familiar with what mods are out there so I don't know if there's an existing mod for this (and of course you can't search for 'ip'). But you could edit template postbit_ip and add a line at the beginning

<if condition="!is_member_of($post, 6) OR is_member_of($bbuserinfo, 6)">


and an extra </if> at the end. But that will only stop the icon from showing up next to admins' posts. It wouldn't stop a moderator from going directly to the page that displays the ip and host name (like when you click on the icon).

There's a threadmanage_getip hook where you could make a plugin to handle that, but you can't do the same logic because at that point the post user info isn't available (You could make it available, but it gets a little more complicated). But what you could do it stop moderators from using that function altogether by using plugin code something like:

if (!is_member_of($bbuserinfo, 6))
{
print_no_permission();
}

I'm not sure if there's anywhere else a moderator can get admin ip info (like in the moderator control panel maybe?). You'd have to handle that separately of course.

I guess a different approach would be to stop logging of ips for admins, although I guess there could be situations where you'd want that info.

Fivestones
02-25-2011, 02:31 AM
Moderators can see user's ip address' in posts, they can also see admin's ip address in their posts, is there a way to stop them seeing admin's ip address?

You can go to each users groups and set it to where they cant see I P ..