vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Stop moderators seeing admin ip address (https://vborg.vbsupport.ru/showthread.php?t=259379)

rbecking 02-24-2011 12:20 PM

Stop moderators seeing admin ip address
 
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

Code:

<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:

Code:

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

Quote:

Originally Posted by rbecking (Post 2166237)
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 ..


All times are GMT. The time now is 09:05 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01087 seconds
  • Memory Usage 1,714KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete