Helpful Information
Home
Categories
Contact us
Category: vBulletin 3.0
Mini-Hack: Remove Search IP Addresses Option from Mod CP
This is a simple hack requested by Cerebro here:
http://www.vbulletin.org/forum/showpost.php?p=460452&postcount=6
Too simple really.
Open modcp/index.php:
Find:
construct_nav_option($vbphrase['search_ip_addresses'], 'user.php?do=doips');
And DELETE it.
Done! :)
Simple but effective! Never liked the idea of Mods having access to IP's anyway. :)
It didn't work for me. I received a parse error.
It didn't work for me. I received a parse error.
You didn't copy everything in that window. :) You need to delete the ; bits too. It should work.
Doesn't that just remove the link for ip searching? They would still be able to do ip searches if they know to run user.php?do=doips.
To do the way people used to.
In the modcp/index.php find :
if (can_moderate(0, 'canviewips'))
{
$canuser = true;
construct_nav_option($vbphrase['search_ip_addresses'], 'user.php?do=doips');
}
if ($canuser)
{
construct_nav_group($vbphrase['users']);
construct_nav_spacer();
}
Replace with this :
if (can_moderate(0, 'canviewips'))
{
$canuser = true;
//construct_nav_option($vbphrase['search_ip_addresses'], 'user.php?do=doips');
}
if ($canuser)
{
//construct_nav_group($vbphrase['users']);
construct_nav_spacer();
}
Thats it ! Hope this help.
privacy (GDPR)