Quote:
Originally Posted by dbembibre
If you want make a link in you mod control panel only need make this.
Open modcp/index.php
Search:
Code:
if (can_moderate(0, 'canbanusers'))
{
$canuser = true;
construct_nav_option($vbphrase['ban_user'], 'banning.php?do=banuser', '<br />');
Add:
Code:
construct_nav_option('Ban IP/Mail', 'ipban.php', '<br />');
Or create a new vbphrase and replace with this
Code:
construct_nav_option($vbphrase['banIP'], 'ipban.php', '<br />');
Excuse my broken English
|
basically, yes that will add a link, but access to this is controled by a none existant permission (so its not possible to give it to mods) thus only smods+ can have access. You have added it to the cp using the banusers permission which mods can have. dosn't matter too much since they will just get a permission error on the ipban page.
now to explain this a little better:
Code:
construct_nav_option('Ban IP/Mail', 'ipban.php', '<br />');
^ that one will work fine if you add it under:
Code:
construct_nav_option($vbphrase['ban_user'], 'banning.php?do=banuser', '<br />');
however if you add a vb phrase 'banIP' you can add the line below INSTEAD of the first line to use the phrase instead, its all a matter of personal preferance.
Code:
construct_nav_option($vbphrase['banIP'], 'ipban.php', '<br />');