vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Add-On Releases - Remove announcement menu from modcp (https://vborg.vbsupport.ru/showthread.php?t=318400)

ForceHSS 04-23-2015 09:00 PM

Remove announcement menu from modcp
 
1 Attachment(s)
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++ 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
PHP Code:

     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
PHP Code:

    /*
    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

Quote:

Originally Posted by alcazarx (Post 2557431)
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

Quote:

Originally Posted by alcazarx (Post 2557431)
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.


All times are GMT. The time now is 11:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01990 seconds
  • Memory Usage 1,728KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete