Verfasst: 02.11.2002 13:54
nein es gibt nur 3 andere Text files:
supermodcolors.txt
README.txt
gatekeep2.txt
supermodcolors.txt
README.txt
gatekeep2.txt
Code: Alles auswählen
#################################################################
## Mod Title: Super Moderators
## Mod Version: 2.0.0
## Author: Rawly <rawly@jrawly.co.uk> http://www.jrawly.co.uk
## Description: Allows the Administrator to add a 'Super Moderator' with
## restricted administrative controls.
##
##
## Installation Level: moderate
## Installation Time: 15 Minutes
## Files To Edit: /phpBB2/includes/constants.php
## /phpBB2/language/lang_english/lang_main.php
## /phpBB2/includes/page_tail.php
## /phpBB2/viewonline.php
## /phpBB2/includes/page_header.php
## /phpBB2/admin/admin_styles.php
## /phpBB2/language/lang_english/lang_admin.php
## /phpBB2/{TEMPLATES DIR}/index_body.tpl
## /phpBB2/{TEMPLATES DIR}/admin/styles_edit_body.tpl
##
## Included Files:[30]
## /phpBB2/templates/SubSilver/less_admin/category_edit_body.tpl
## /phpBB2/templates/SubSilver/less_admin/disallow_body.tpl
## /phpBB2/templates/SubSilver/less_admin/forum_admin_body.tpl
## /phpBB2/templates/SubSilver/less_admin/forum_delete_body.tpl
## /phpBB2/templates/SubSilver/less_admin/forum_edit_body.tpl
## /phpBB2/templates/SubSilver/less_admin/forum_prune_body.tpl
## /phpBB2/templates/SubSilver/less_admin/forum_prune_result_body.tpl
## /phpBB2/templates/SubSilver/less_admin/forum_prune_select_body.tpl
## /phpBB2/templates/SubSilver/less_admin/index_body.tpl
## /phpBB2/templates/SubSilver/less_admin/index_frameset.tpl
## /phpBB2/templates/SubSilver/less_admin/index_navigate.tpl
## /phpBB2/templates/SubSilver/less_admin/page_footer.tpl
## /phpBB2/templates/SubSilver/less_admin/page_header.tpl
## /phpBB2/templates/SubSilver/less_admin/user_avatar_gallery.tpl
## /phpBB2/templates/SubSilver/less_admin/user_edit_body.tpl
## /phpBB2/templates/SubSilver/less_admin/user_email_body.tpl
## /phpBB2/templates/SubSilver/less_admin/user_select_body.tpl
## /phpBB2/templates/SubSilver/less_admin/words_edit_body.tpl
## /phpBB2/templates/SubSilver/less_admin/words_list_body.tpl
## /phpBB2/templates/SubSilver/less_admin/index.htm (blank security)
## /phpBB2/super_mod/admin_disallow.php
## /phpBB2/super_mod/admin_forum_prune.php
## /phpBB2/super_mod/admin_forums.php
## /phpBB2/super_mod/admin_mass_email.php
## /phpBB2/super_mod/admin_users.php
## /phpBB2/super_mod/admin_words.php
## /phpBB2/super_mod/index.php
## /phpBB2/super_mod/page_footer_admin.php
## /phpBB2/super_mod/page_header_admin.php
## /phpBB2/super_mod/pagestart.php
##
#################################################################
## Security Disclaimer: This MOD Cannot Be Posted To Or Added At Any Non-Official phpBB Sites
#################################################################
##
## Author Note:
## Upload the files provided using the directory structure (phpBB2 is the default installation directory, replace this with your own)
## Make sure you upload the templates into all template directories used by your forum
##
## BECAUSE OF THE RE-WRITE IN CONSTANTS.PHP IT IS RECOMMENDED TO MANUALLY CHANGE YOUR MODERATORS IN YOUR DATABASE FROM USER_LEVEL = 2 TO USER_LEVEL = 3
## HOPEFULLY A SCRIPT WILL BE WRITTEN SOON.
##
#################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
#################################################################
##
## Revision History:
##
## v2.0.0
## - Re-wrote the code in includes/constants.php
## - Hopefull this will fix the problem with Super Moderators reverting to Moderators.
## - If you do not wish to upgrade, then you may have to deal with the problem your way.
## v1.5.7
## - Updated Super MOD Link to remove the testboard/
## - language support with $lang['Super_Mod_panel'] = "Go to Super Moderators Panel";
## v1.5.5
## - Updated Gatekeep2's updated add on for the user auth panel
## - Updated viewonline.php code
## v1.5.0
## - Updated to allow for color of super moderator name to be different.
## - Also including gatekeep2's add on for the User Auth Admin Panel (gatekeep2.txt)
## v1.0.0
## - Original Release
##
#################################################################
#
#-----[ DATABASE CHANGES ]------------------------------------------
# NOTE: phpbb_ is the default prefix for your database. Please replace with yours
ALTER TABLE phpbb_themes ADD fontcolor4 VARCHAR (6) ;
ALTER TABLE phpbb_themes_name ADD fontcolor4_name CHAR (50) ;
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/includes/constants.php
#
#-----[ FIND ]------------------------------------------
#
define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);
#
#-----[ REPLACE WITH ]------------------------------------
#
define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);
define('LESS_ADMIN', 3);
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------
#
$lang['Admin_panel'] = "Go to Administration Panel";
#
#------ AFTER, ADD ]------------------------------------
#
$lang['Super_Mod_panel'] = "Go to Super Moderators Panel";
#
#-----[ FIND ]------------------------------------------
#
$lang['Admin_online_color'] = "%sAdministrator%s";
$lang['Mod_online_color'] = "%sModerator%s";
#
#------ AFTER, ADD ]------------------------------------
#
$lang['Super_Mod_online_color'] = "%sSuper Moderator%s";
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/includes/page_tail.php
#
#-----[ FIND ]------------------------------------------
#
$admin_link = ( $userdata['user_level'] == ADMIN ) ? '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><br />' : '';
#
#-----[ REPLACE WITH ]------------------------------------
#
if ( $userdata['user_level'] == ADMIN )
{
$admin_link = '<a href="' . append_sid("admin/index.$phpEx") . '">' . $lang['Admin_panel'] . '</a><br /><a href="' . append_sid("super_mod/index.$phpEx") . '">' . $lang['Super_Mod_panel'] . '</a><br /><br />';
}
else if ( $userdata['user_level'] == LESS_ADMIN )
{
$admin_link = '<a href="' . append_sid("super_mod/index.$phpEx") . '">' . $lang['Super_Mod_panel'] . '</a><br /><br />';
}
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/viewonline.php
#
#-----[ FIND ]------------------------------------------
#
if ( $row['user_level'] == ADMIN )
{
$username = '<b style="color:#' . $theme['fontcolor3'] . '">' . $username . '</b>';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
else if ( $row['user_level'] == LESS_ADMIN )
$username = '<b style="color:#' . $theme['fontcolor4'] . '">' . $username . '</b>';
}
#
#-----[ FIND ]------------------------------------------
#
if ( !$row['user_allow_viewonline'] )
{
$view_online = ( $userdata['user_level'] == ADMIN ) ? true : false;
$hidden_users++;
$username = '<i>' . $username . '</i>';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//ONLY IF YOU WANT SUPER MODERATORS TO VIEW USERONLINE DATA WHEN USERS AREN'T ALLOWED!
else if ( !$row['user_allow_viewonline'] )
{
$view_online = ( $userdata['user_level'] == LESS_ADMIN ) ? true : false;
$hidden_users++;
$username = '<i>' . $username . '</i>';
}
//END ONLY IF YOU WANT SUPER MODERATORS TO VIEW USERONLINE DATA WHEN USERS AREN'T ALLOWED!
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
if ( $row['user_level'] == ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
else if ( $row['user_level'] == LESS_ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor4'] . '"';
}
#
#-----[ FIND ]------------------------------------------
#
//THIS IS FOR WHO VISITED BOARD TODAY MOD
if( $todayrow['user_level'] == ADMIN )
{
$todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
//THIS IS FOR WHO VISITED BOARD TODAY MOD
else if( $todayrow['user_level'] == LESS_ADMIN )
{
$todayrow['username'] = '<b>' . $todayrow['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor4'] . '"';
}
#
#-----[ FIND ]------------------------------------------
#
'L_WHOSONLINE_ADMIN' => sprintf($lang['Admin_online_color'], '<span style="color:#' . $theme['fontcolor3'] . '">', '</span>'),
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_WHOSONLINE_SUPER_MOD' => sprintf($lang['Super_Mod_online_color'], '<span style="color:#' . $theme['fontcolor4'] . '">', '</span>'),
#
#-----[ FIND ]------------------------------------------
#
'T_FONTCOLOR3' => '#'.$theme['fontcolor3'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'T_FONTCOLOR4' => '#'.$theme['fontcolor4'],
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/admin/admin_styles.php
#
#-----[ FIND ]------------------------------------------
#
$updated['fontcolor3'] = $HTTP_POST_VARS['fontcolor3'];
$updated_name['fontcolor3_name'] = $HTTP_POST_VARS['fontcolor3_name'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$updated['fontcolor4'] = $HTTP_POST_VARS['fontcolor4'];
$updated_name['fontcolor4_name'] = $HTTP_POST_VARS['fontcolor4_name'];
#
#-----[ FIND ]------------------------------------------
#
"L_FONTCOLOR_3" => $lang['fontcolor3'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"L_FONTCOLOR_4" => $lang['fontcolor4'],
#
#-----[ FIND ]------------------------------------------
#
"FONTCOLOR3" => $selected['fontcolor3'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"FONTCOLOR4" => $selected['fontcolor4'],
#
#-----[ FIND ]------------------------------------------
#
"FONTCOLOR3_NAME" => $selected['fontcolor3_name'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"FONTCOLOR4_NAME" => $selected['fontcolor4_name'],
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['fontcolor3'] = "Font Colour 3";
#
#-----[ AFTER, ADD ]------------------------------------------
#
$lang['fontcolor4'] = "Font Colour 4";
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/{TEMPLATES DIR}/index_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<tr>
<td class="row1" align="left"><span class="gensmall">{TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_SUPER_MOD} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span></td>
</tr>
#
#-----[ OPEN ]------------------------------------------
#
/phpBB2/{TEMPLATES DIR}/admin/styles_edit_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_FONTCOLOR_3}:</td>
<td class="row2"><input type="text" size="6" maxlength="6" name="fontcolor3" value="{FONTCOLOR3}"></td>
<td class="row2"><input type="text" size="25" maxlength="100" name="fontcolor3_name" value="{FONTCOLOR3_NAME}">
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<tr>
<td class="row1">{L_FONTCOLOR_4}:</td>
<td class="row2"><input type="text" size="6" maxlength="6" name="fontcolor4" value="{FONTCOLOR4}"></td>
<td class="row2"><input type="text" size="25" maxlength="100" name="fontcolor4_name" value="{FONTCOLOR4_NAME}">
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
nein, das ist der rang.Coder hat geschrieben:man gehe in den ACP -> User Admin -> Management -> username eingeben -> in dem darauf folgenden Profil gaaanz unten den Special Rang Site Admin (Administrator, je nach dem wie du den nennst) -> Abespeichern -> Fertig.
Sternengewitter hat geschrieben:nein, das ist der rang.Coder hat geschrieben:man gehe in den ACP -> User Admin -> Management -> username eingeben -> in dem darauf folgenden Profil gaaanz unten den Special Rang Site Admin (Administrator, je nach dem wie du den nennst) -> Abespeichern -> Fertig.
man muss ganz oben bei ebene admin eingeben.