##########################################################################################
##
## Hack Title:   Staff Site
## Hack Version: 2.2.3 (phpBB 2.0.x)
## Author:       Acid
##
## Description:  An external site to display who is Mod or Admin on your board.
##		 Some additional infos. (see optional part to add other columns)
##
## Files To Edit:       6
##                      language/lang_english/lang_main.php
##                      includes/constants.php
##                      viewonline.php
##                      admin/index.php
##                      includes/page_header.php
##                      templates/xxx/overall_header.tpl
##
## Included Files:      staff.php
##                      staff_body.tpl
##                      staff.gif
##
##########################################################################################
## 
## Note: 
## First always make a backup from the files that you're going to edit. 
## 
##########################################################################################
## 
## Versions:
## 
## v2.2.3
##	- wrong variable fixed (by oxpus)
##	- update.txt added
## v2.2.2
##	- some parts rewritten
##	- last # posts added
##	- additional stats will be displayed in a popup (if you click on any username)
## v2.2.0
##	- display of forums uses the correct auth settings (I hope)
##	- userlevel partitioned
##	- *.tpl changed
##	- optional part added
## v1.0.1 - 2.0.3
##	- n/a
## v1.0.0
##	- Release
## 
##########################################################################################
# 
#-----[ OPTIONEN ]----------------------------------------------------
#  
## youll find the options in the first lines of staff.php

	$last_post_length	- post title length
	$last_post_limit	- amount of displayed posts

	(folgendes siehe staff_optional_german.txt)
	$exclude_users		- if you want to exclude users from the list
	$special_users		- if you want to add a further area
	$exclude_special_users  - if you added a further area and want to exlcude users
				  from an area

# 
#-----[ UPLOAD FILES ]---------------------------------------------------
# 
                /staff.php
                /templates/xxx/staff_body.tpl
                /templates/xxx/images/staff.gif

## Upload files to their current folders.
## staff_body.tpl can be modified (e.g. if you want to remove unnecessary parts.)



# 
#-----[ OPEN ]------------------------------------------ 
#
# language/lang_english/lang_main.php
# 
#-----[ FIND ]-------------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------

# 
#-----[ ABOVE, ADD ]----------------------------------------
#
//
// Staff Site
//
$lang['Staff'] = 'Staff Site';
$lang['Staff_about'] = 'Informations about %s'; // %s = username
$lang['Staff_level'] = array('Administrator', 'Moderator');
$lang['Staff_forums'] = 'Forums';
$lang['Staff_messenger'] = 'Messenger';
$lang['Staff_user_topic_day_stats'] = '%.2f topics per day'; // %.2f = topics
$lang['Staff_online'] = '<font color=#0000FF>online</font>';
$lang['Staff_year'] = 'year';
$lang['Staff_years'] = 'years';
$lang['Staff_week'] = 'week';
$lang['Staff_weeks'] = 'weeks';
$lang['Staff_day'] = 'day';
$lang['Staff_days'] = 'days';
$lang['Staff_hour'] = 'hour';
$lang['Staff_hours'] = 'hours';
$lang['Staff_minute'] = 'minute';
$lang['Staff_minutes'] = 'minutes';
$lang['Staff_since'] = '(since %s)'; // %s = period
$lang['Staff_ago'] = '(%s ago)'; // %s = period



# 
#-----[ OPEN ]------------------------------------------ 
#
# includes/constants.php
# 
#-----[ FIND ]-------------------------------------------------
#
define('PAGE_GROUPCP', -11);

# 
#-----[ BELOW, ADD ]---------------------------------------
#
# be aware that digit isnt already occupied

define('PAGE_STAFF', -22);



# 
#-----[ OPEN ]------------------------------------------ 
#
# viewonline.php
# 
#-----[ FIND ]-------------------------------------------------
#
				case PAGE_FAQ:
					$location = $lang['Viewing_FAQ'];
					$location_url = "faq.$phpEx";
					break;
# 
#-----[ BELOW, ADD ]---------------------------------------
#
				case PAGE_STAFF:
					$location = $lang['Staff'];
					$location_url = "staff.$phpEx";
					break;



# 
#-----[ OPEN ]------------------------------------------ 
#
# admin/index.php
# 
#-----[ FIND (2x) ]-------------------------------------------------
#
						case PAGE_FAQ:
							$location = $lang['Viewing_FAQ'];
							$location_url = "index.$phpEx?pane=right";
							break;
# 
#-----[ always BELOW, ADD ]---------------------------------------
#
                       				case PAGE_STAFF:
	                        			$location = $lang['Staff'];
                       					$location_url = "../staff.$phpEx";
			                        	break;


# 
#-----[ OPEN ]------------------------------------------ 
#
# includes/page_header.php
# 
#-----[ FIND ]-------------------------------------------------
#
	'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

# 
#-----[ BELOW, ADD ]---------------------------------------
#
	'U_STAFF' => append_sid('staff.'.$phpEx),
	'L_STAFF' => $lang['Staff'],



# 
#-----[ OPEN ]------------------------------------------ 
# templates/xxx/overall_header.tpl
# 
#-----[ FIND ]-------------------------------------------------
#
&nbsp; &nbsp;<a href="{U_GROUP_CP}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_groups.gif" width="12" height="13" border="0" alt="{L_USERGROUPS}" hspace="3" />{L_USERGROUPS}</a>&nbsp;

# 
#-----[ AFTER, ADD ]---------------------------------------
#
# Note: replace "subSilver" with the name of your template

 &nbsp;<a href="{U_STAFF}" class="mainmenu"><img src="templates/subSilver/images/staff.gif" width="12" height="13" border="0" alt="{L_STAFF}" hspace="3" />{L_STAFF}</a>&nbsp;

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