How do I disable Sticky, Announce and Calendar in users post

This is driving me crazy! <img>
How do I disable the ability for users to Post topics as Sticky, Announcement, Global Announcement and create Calendar events???
(Basiclly the same settings as here on Intergramod2.com - posting.php)
Is there a control through the ACP I'm missing?
I tried deploying a switch_admin_only mod but for some reason it didn't work?
How do I disable the ability for users to Post topics as Sticky, Announcement, Global Announcement and create Calendar events???
(Basiclly the same settings as here on Intergramod2.com - posting.php)
Is there a control through the ACP I'm missing?
I tried deploying a switch_admin_only mod but for some reason it didn't work?
- Code: Select all
############################################### ## Hack Title]http://www.phpbbhacks.com/forums[/url] for support. ############################################### ## ############################################### ## This hack is released under the GPL License. ## This hack can be freely used, but not distributed, without permission. ## Intellectual Property is retained by the hack author(s) listed above. ############################################### # #-----[ OPEN ]------------------------------------------ # includes/page_header.php # #-----[ FIND ]------------------------------------------ # // // Login box? // if ( !$userdata['session_logged_in'] ) { $template->assign_block_vars('switch_user_logged_out', array()); } else { $template->assign_block_vars('switch_user_logged_in', array()); if ( !empty($userdata['user_popup_pm']) ) { $template->assign_block_vars('switch_enable_pm_popup', array()); } } # #-----[ AFTER - ADD ]------------------------------------------ # if ( $userdata['user_level'] == MOD ) { $template->assign_block_vars('moderators_only', array()); } else if ( $userdata['user_level'] == ADMIN ) { $template->assign_block_vars('admins_only', array()); } else if ( $userdata['user_level'] == MOD || $userdata['user_level'] == ADMIN ) { $template->assign_block_vars('admins_and_moderators_only', array()); } # #-----[ STOP ]------------------------------------------ # This is where you need to determine which switches you want to add. Below is the code for ADMINS ONLY, MODERATORS ONLY and for both MODS AND ADMINS. Find the proper content that you want to hide and add the BEGIN switch just before and add the END switch just after your content. ------- ADMIN ONLY SWITCHES -------- # #-----[ OPEN ]------------------------------------------ # templates/subSilver/* # #-----[ BEFORE - ADD ]------------------------------------------ # <BEGIN> # #-----[ AFTER - ADD ]------------------------------------------ # <END> # #----------------------------------------------- # ------- MODERATOR ONLY SWITCHES -------- # #-----[ OPEN ]------------------------------------------ # templates/subSilver/* # #-----[ BEFORE - ADD ]------------------------------------------ # <BEGIN> # #-----[ AFTER - ADD ]------------------------------------------ # <END> # #----------------------------------------------- # ------- MODERATOR & ADMINS ONLY SWITCHES -------- # #-----[ OPEN ]------------------------------------------ # templates/subSilver/* # #-----[ BEFORE - ADD ]------------------------------------------ # <BEGIN> # #-----[ AFTER - ADD ]------------------------------------------ # <END> # #-----[ SAVE & CLOSE ALL FILES ]-------------------------- # #End