Derzeit wird für die Admins nur der Standardsatz bei Boardabschaltung angezeigt, jedoch aber nicht die eingestellt Information.
Auch werden die Texte im ACP unter "Board deaktivieren" nicht gehalten bzw. das Eingabefenster ist immer wieder leer.
Der Mod "Admin ignore board disabled" verlegt die Abfrage in den page_header.php bzw. overall_header.tpl. Ich poste mal beide Modsinstalanleitung, hab leider kein Webspace derzeit.
Wie kann ich beide Mods miteinander sauber verbinden, sodas auch die Admins die tatsächliche eingestellte Boardinformation lesen ohne ihre besonderen Zugangsrechte zu verlieren?
Code: Alles auswählen
##############################################################
## MOD Title: Admin ignore board disabled
## MOD Author: Leuchte < mail@leuchte.net > http://www.leuchte.net
## MOD Description: The admin could access the board even if it is disabled.
##
## MOD Version: 1.0.1
##
## Installation Level: Easy
## Installation Time: 5 Minutes
## Files To Edit: 3
common.php, page_header.php, overall_header.tpl
## Included Files: 0
##############################################################
## For Security Purposes, Please Check: http://www.leuchte.net/mods/ for the
## latest version of this MOD.
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
## MOD History:
##
## 2004-08-17 - Small Fix
## 2004-07-12 - Version 1.0.0
##
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
common.php
#
#-----[ FIND & DELETE ]------------------------------------------
#
//
// Show 'Board is disabled' message if needed.
//
if( $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN") )
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
'L_SEARCH_UNANSWERED' => $lang['Search_unanswered'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
'L_BOARD_DISABLE' => $lang['Board_disable'],
#
#-----[ FIND ]------------------------------------------
#
$template->pparse('overall_header');
#
#-----[ REPLACE, WITH ]------------------------------------------
#
if ( $board_config['board_disable'] && $userdata['user_level'] == ADMIN )
{
$template->assign_block_vars('switch_admin_disable_board', array());
}
$template->pparse('overall_header');
if ($userdata['user_level'] != ADMIN && $board_config['board_disable'] && !defined("IN_ADMIN") && !defined("IN_LOGIN"))
{
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
}
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/overall_header.tpl
#
#-----[ FIND ]------------------------------------------
# At the bottom of the File
</tr>
</table></td>
</tr>
</table>
<br />
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- BEGIN switch_admin_disable_board -->
<table width="100%" cellspacing="0" cellpadding="10" border="0" align="center">
<tr>
<td class="forumline" align="center"><span class="gen"><b>{L_BOARD_DISABLE}</b></span></td>
</tr>
</table>
<!-- END switch_admin_disable_board -->
#
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Code: Alles auswählen
##############################################################
## MOD Title: Einstellbare 'Board Disable' Message
## MOD Author: Dwing < dwing@weingarten-net.de > (Dimitri Seitz) http://www.dseitz.de
## MOD Description: Mit diesem Mod, könnt Ihr im Adminpanel die Standard 'Board deaktiviert' Nachricht anpassen
## MOD Version: 1.0.0
##
## Installation Level: leicht
## Installation Time: 2-3 Minuten
## Files To Edit: 2
## Included Files: 1 admin_install.php
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes:
##
## http://www.dseitz.de
## Bitte registriert den Mod
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
common.php
#
#-----[ FIND ]------------------------------------------
#
message_die(GENERAL_MESSAGE, 'Board_disable', 'Information');
#
#-----[ REPLACE WITH ]------------------------------------------
#
message_die(GENERAL_MESSAGE, $board_config['disable_msg'], 'Information');
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_board.php
#
#-----[ FIND ]------------------------------------------
#
$html_tags = $new['allow_html_tags'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$disable_msg = $new['disable_msg'];
#
#-----[ FIND ]------------------------------------------
#
"SERVER_NAME" => $new['server_name'],
#
#-----[ AFTER, ADD ]------------------------------------------
#
"DISABLE_MSG" => $new['disable_msg'],
"L_DISABLE_MSG" => $lang['disable_msg'],
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
$lang['disable_msg'] = 'This message will be displayed, if the board is disabled';
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_BOARD_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES} <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
</tr>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<tr>
<th class="thHead" colspan="2">{L_DISABLE_BOARD}</th>
</tr>
<tr>
<td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_BOARD_EXPLAIN}</span></td>
<td class="row2"><input type="radio" name="board_disable" value="1" {S_DISABLE_BOARD_YES} /> {L_YES} <input type="radio" name="board_disable" value="0" {S_DISABLE_BOARD_NO} /> {L_NO}</td>
</tr>
<tr>
<td class="row1">{L_DISABLE_BOARD}<br /><span class="gensmall">{L_DISABLE_MSG}</span></td>
<td class="row2"><input type="text" value="{DISABLE_MSG}" name="disable_msg"></td>
</tr>
<tr>
<th class="thHead" colspan="2">{L_GENERAL_SETTINGS}</th>
</tr>
#
#-----[ SAFE & Close all files]------------------------------------------
#EoM