View Full Version : Mini-Hack: Remove Search IP Addresses Option from Mod CP
Erwin
01-10-2004, 10:00 PM
This is a simple hack requested by Cerebro here:
https://vborg.vbsupport.ru/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! :)
FleaBag
01-11-2004, 02:08 PM
Simple but effective! Never liked the idea of Mods having access to IP's anyway. :)
Mike Gaidin
01-11-2004, 03:19 PM
It didn't work for me. I received a parse error.
Erwin
01-11-2004, 09:24 PM
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.
the3jams
01-25-2004, 06:29 PM
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.
duncan99
01-26-2004, 12:35 PM
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.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.