Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
Remove announcement menu from modcp Details »»
Remove announcement menu from modcp
Version: 1.3, by ForceHSS ForceHSS is offline
Developer Last Online: Sep 2022 Show Printable Version Email this Page

Category: Add-On Releases - Version: 4.x.x Rating:
Released: 04-23-2015 Last Update: Never Installs: 5
Code Changes  
No support by the author.

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();
    }
    */ 

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 04-25-2015, 10:43 AM
Manoel J?nior Manoel J?nior is offline
 
Join Date: Feb 2009
Location: SP / Brasil
Posts: 778
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks
Reply With Quote
Благодарность от:
ForceHSS
  #3  
Old 04-25-2015, 11:09 AM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for installing
Reply With Quote
  #4  
Old 05-15-2015, 07:50 AM
Stratis's Avatar
Stratis Stratis is offline
 
Join Date: Jan 2010
Posts: 738
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice, thank you
Reply With Quote
Благодарность от:
ForceHSS
  #5  
Old 10-22-2015, 09:36 AM
alcazarx's Avatar
alcazarx alcazarx is offline
 
Join Date: Jul 2014
Posts: 108
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Cant this be done by denying moderators the resp. permission?
Besides, why comment out each single line when you can use /* */ ?
Thanks.

/* edit
Do not talk about permissions that can be used Joran. It was already denied on his "Super Mod" Mod
*/
Reply With Quote
  #6  
Old 10-22-2015, 10:31 AM
Jorandh's Avatar
Jorandh Jorandh is offline
 
Join Date: Jan 2015
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alcazarx View Post
Cant this be done by denying moderators the resp. permission?
Besides, why comment out each single line when you can use /* */ ?
Thanks.
^This. Using permissions would be the best option..
Reply With Quote
  #7  
Old 12-20-2015, 06:10 PM
FrozenBlast13317 FrozenBlast13317 is offline
 
Join Date: Aug 2014
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by alcazarx View Post
Cant this be done by denying moderators the resp. permission?
Besides, why comment out each single line when you can use /* */ ?
Thanks.

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

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:41 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05615 seconds
  • Memory Usage 2,281KB
  • Queries Executed 21 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (2)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (7)postbit_onlinestatus
  • (7)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete