View Full Version : How can I remove IP Search from ModCP NavBar?
Sage Knight
06-19-2011, 03:02 PM
I'm aware that we can restrict IP address viewing, but still I want to go a step ahead and remove the IP Search option Navigation from the ModCP templates. Could anyone please help me on this?
LifesGreatestGift
06-19-2011, 03:09 PM
Open file /modcp/index.php
Find:
if (can_moderate(0, 'canviewips'))
{
$canuser = true;
construct_nav_option($vbphrase['search_ip_addresses'], 'user.php?do=doips');
}
Replace with:
/* if (can_moderate(0, 'canviewips'))
{
$canuser = true;
construct_nav_option($vbphrase['search_ip_addresses'], 'user.php?do=doips');
} */
Sage Knight
06-19-2011, 04:05 PM
Novice questions sir; I have to edit the file via FTP? Or is via The AdminCP/Styles & Templates/
HMBeaty
06-19-2011, 04:07 PM
You would edit it via ftp
Sage Knight
06-19-2011, 04:09 PM
I see thank you, last question for the day, where else I'll need to edit the templates so that none of the moderators can even see any sort of IP addresses options?
HMBeaty
06-19-2011, 04:12 PM
You don't have to edit ANY templates. Just change their usergroup options so they can't view a users ip address
Sage Knight
06-19-2011, 04:14 PM
I'm aware of that, but my mods will moan for no reason, so that's why;D
HMBeaty
06-19-2011, 04:20 PM
So you would rather edit the templates vs turning the option off for them to view it?!
Sage Knight
06-19-2011, 04:30 PM
Call me crazy but both;P
It's actually due to site policy and also due to the fact we have a lot of staff shuffles. Our admins could view IPs anyways as they're more trustworthy.
LifesGreatestGift
06-19-2011, 04:31 PM
You only need to use ftp to remove the option in modcp, everything else can be done with templates, but unless you use conditionals, it will remove it from admins as well. Best option is to disable it with permissions.
Sage Knight
06-20-2011, 10:11 AM
Would it be too much for me to ask the specific codes I'll need to edit? Either way thank you for the help so far.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.