group members view only

is it possible to create a function like admin view only but then for a user group
example of admin view only script
but then for example a group called beta testers.
the function would be that only beta testers can acces beta mod pages on my board and al the other members iff the visit that page get an empty page
example of admin view only script
- Code: Select all
# #-----[ OPEN ]------------------------------------------ # includes/page_header.php # #-----[ FIND ]------------------------------------------ # $template->assign_block_vars('switch_user_logged_in', array()); # #-----[ AFTER, ADD ]------------------------------------------ # // Admin Only View Mod if ( $userdata['user_level'] == ADMIN ) { $template->assign_block_vars('switch_admin_view_only', array()); } // Admin Only View Mod # #-----[ OPEN ]------------------------------------------ ### templates/subSilver/**file_you_want_to_place_swicth_in**.tpl # #-----[ FIND ]------------------------------------------ ## The code you want to remain hidden from everyone except Administrators # #-----[ BEFORE **CODE**, ADD ]------------------------------------------ # <BEGIN> <END># #-----[ AFTER **CODE**, ADD ]------------------------------------------ #
but then for example a group called beta testers.
the function would be that only beta testers can acces beta mod pages on my board and al the other members iff the visit that page get an empty page