##########################################################################################
## 
## Hack Title:       Staff Site
## Hack Version:     2.2.3 (phpBB 2.0.x)
## optional Part:    Version 1.0.2
## Author:           Acid
##
## Description:      Some additional infos/features..
##
##########################################################################################
## 
## Note: 
## First always make a backup from the files that you're going to edit. 
##
##########################################################################################
##
## Versions:
##
## 1.0.2   - variable changed
## 1.0.1   - 'exclude any user' added
## 1.0     - optional part added
##########################################################################################


##############################     add another area    ###################################
# 
#---------[ OPEN ]----------------------------------------------------------------------
# 
# language/lang_english/lang_main.php
# 
#---------[ FIND (if already added) ]-------------------------------------------- 
# 
$lang['Staff_level'] = array('Administrator', 'Moderator');

# 
#---------[ IN-LINE FIND ]------------------------------------------------------
# 
'Moderator'

# 
#---------[ IN-LINE ADD (before ); ) ]--------------------------------------------------
# 
, 'Special Users'


# 
#---------[ OPEN ]----------------------------------------------------------------------
# 
# staff.php
# 
#---------[ FIND ]-------------------------------------------- 
# 
		else if( $level_cat['1'] )
		{
			$where = 'user_level = '. MOD;
		}

# 
#---------[ BELOW, ADD ]-------------------------------------------- 
# 
# enter user ids at the beginning of staff.php ($special_users)

		else if( $level_cat['2'] )
		{
			$where = 'user_id IN ('. $special_users .')';
		}

# resp. if Super MOD or Junior Admin (old version)
# 
#---------[ or BELOW, ADD ]-------------------------------------------- 
# 
# If youre using the Junior Admin Hack replace "LESS_ADMIN" with "JUNIOR_ADMIN" (without
# quotes). (This applies only to the old version of the Junior Admin Hack; if youre 
# using the newer version you have to add the users ID (see above)).

		else if( $level_cat['2'] )
		{
			$where = 'user_level = '. LESS_ADMIN;
		}


############################     change order of areas    ################################
# 
#---------[ OPEN ]----------------------------------------------------------------------
# 
# language/lang_english/lang_main.php
# 
#---------[ FIND (if already added) ]-------------------------------------------- 
# 
$lang['Staff_level'] = array('Administrator','Moderator');

# Order of 'x' ('x' means for instance 'Administrator' or 'Moderator') can be changed.
# Remember that 1st entry means '0', 2nd entry means '1' and so on (its important for
# changings in staff.php).


# 
#---------[ OPEN ]----------------------------------------------------------------------
# 
# staff.php
# 
#---------[ FIND ]-------------------------------------------- 
# 
		if( $level_cat['0'] )
		{
			$where = 'user_level = '. ADMIN;
		}
		else if( $level_cat['1'] )
		{
			$where = 'user_level = '. MOD;
		}

# The order of both (or further) "if" resp. "else if" statements can be changed (the
# 1st statement has to start with "if" and the other ones with "else if").
# The digits are related to the entries in the language array (e.g. '0' is 'Administrator').
# It has to be minded and if necessary to be adapted.


#############################     exclude any user     ###################################
#
# enter user ids at the beginning of staff.php ($exclude_users)

# if you added another area (e.g. 'Super Moderator') and some users are displayed in
# two or more areas (e.g. in 'Super Moderator' and 'Moderator') you can exclude them
# from one or more areas.
# 
#---------[ OPEN ]----------------------------------------------------------------------
# 
# staff.php
# 
#---------[ FIND e.g. ]--------------------------------------------------
# 
		else if( $level_cat['1'] )
		{
			$where = 'user_level = '. MOD;
		}

# 
#---------[ REPLACE WITH ]--------------------------------------------------
# 
# enter user ids at the beginning of staff.php ($exclude_special_users)

		else if( $level_cat['1'] )
		{
			$sql_exclude_special_users = ( !empty($exclude_special_users) ) ? ' AND user_id NOT IN ('. $exclude_special_users .')' : '';
			$where = 'user_level = '. MOD . $sql_exclude_special_users;
		}

##########################################################################################
##########################################################################################
##########################################################################################