Staff Site Mod sorunum ?

Eklentiler ile ilgili soru, sorun ve tartışmalar.

Staff Site Mod sorunum ?

İleti IcEman 05.12.2006, 19:35

[syntax="html"]Hack Title: Staff Site
## Hack Version: 2.2.3 (phpBB 2.0.x)
## optional Part: Version 1.0.2
## Author: Acid[/syntax]

Bu modun normal kurulumunu yaptım sorun olmadı fakat "staff_optional_english.txt" dosyasındaki değişlikleri yaparken olmuyor.. Gruplamalar yapmaya çalıştığımda örneğin bir üyenin ID sını yazdığımda oluşturmuş olduğum tüm gruplarda çıkıyor... Bu sitedeki gibi nasıl gruplama yapabilirim...

Aşağıdaki dosyada "LESS_ADMIN" with "JUNIOR_ADMIN" yeri nasıl düzenecek çünkü bunlar yok .. yada color groups a göre ayarlanmış olan mod ve S.Modlar nasıl ayrılacak birbirinden.. yardımlar için tşk ederim şimdiden..

[syntax="php"]##########################################################################################
##
## 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 id´s 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´re 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´re
# using the newer version you have to add the user´s 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´s 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´s 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´s 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;
}

##########################################################################################
##########################################################################################
##########################################################################################[/syntax]
Kullanıcı avatarı
IcEman
Üye
Üye
 
İleti: 239
Kayıt: 04.12.2005, 13:43
Konum: İstanbul

Soru(n)lar & Tartışmalar



Kimler çevrimiçi

Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir

cron