[問題] 論壇管理團隊頁面 Staff Site安裝疑雲

phpBB 2 MOD Support
無論是官方或非官方認證之外掛,安裝與使用問題討論。
(發表文章請按照公告格式發表,違者砍文)

版主: 版主管理群

主題已鎖定
jeffyuan
星球公民
星球公民
文章: 173
註冊時間: 2005-04-21 22:47

[問題] 論壇管理團隊頁面 Staff Site安裝疑雲

文章 jeffyuan »

問題外掛: 論壇管理團隊頁面 Staff Site
參考連結:http://phpbb-tw.net/phpbb/viewtopic.php ... Staff+Site
使用版本:phpBB 2.0.17
網站位置:http://www.j-kst.com

此外掛應如何安裝呢?
我修改第一個檔案就出問題了
找不到此區段\r
#---------[ 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 id愀 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 you愉e 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 you愉e
# using the newer version you have to add the user愀 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 (it愀 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 id愀 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 id愀 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;
}
主題已鎖定

回到「外掛問題討論」