Log in

View Full Version : Add-On Releases - Remove announcement menu from modcp


ForceHSS
04-23-2015, 09:00 PM
This will remove the Announcements section from the modcp to stop mods making an announcement or editing the passwords to each section

Only use notepad++ (http://notepad-plus-plus.org/download/v6.7.7.html) to edit any files anything else might cause errors

Login to your FTP find the modcp folder download index.php to your desktop and starting from line 275
Change it from

if (can_moderate(0, 'canannounce'))
{
construct_nav_option($vbphrase['post_new_announcement'], 'announcement.php?do=add');
construct_nav_option($vbphrase['forum_manager'], 'forum.php?do=modify');
construct_nav_group($vbphrase['announcements']);
construct_nav_spacer();
}
To

/*
if (can_moderate(0, 'canannounce'))
{
construct_nav_option($vbphrase['post_new_announcement'], 'announcement.php?do=add');
construct_nav_option($vbphrase['forum_manager'], 'forum.php?do=modify');
construct_nav_group($vbphrase['announcements']);
construct_nav_spacer();
}
*/

Manoel J?nior
04-25-2015, 10:43 AM
Thanks

ForceHSS
04-25-2015, 11:09 AM
Thanks for installing

Stratis
05-15-2015, 07:50 AM
Very nice, thank you

alcazarx
10-22-2015, 09:36 AM
Cant this be done by denying moderators the resp. permission? :rolleyes:
Besides, why comment out each single line when you can use /* */ ? :rolleyes:
Thanks.

/* edit
Do not talk about permissions that can be used Joran. It was already denied on his "Super Mod" Mod :p
*/

Jorandh
10-22-2015, 10:31 AM
Cant this be done by denying moderators the resp. permission? :rolleyes:
Besides, why comment out each single line when you can use /* */ ? :rolleyes:
Thanks.

^This. Using permissions would be the best option..

FrozenBlast13317
12-20-2015, 06:10 PM
Cant this be done by denying moderators the resp. permission? :rolleyes:
Besides, why comment out each single line when you can use /* */ ? :rolleyes:
Thanks.

/* edit
Do not talk about permissions that can be used Joran. It was already denied on his "Super Mod" Mod :p
*/Just thought I'd mention that you can't really disable announcement privileges for super mods.