############################################### ## 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