Datei: ./styles/prosilver/template/overall_header.html
Finden
Code: Alles auswählen
<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and (U_MCP or U_ACP) -->
Code: Alles auswählen
<!-- IF S_BOARD_DISABLED and S_USER_LOGGED_IN and S_CAN_ACCESS or (S_BOARD_DISABLED and not (S_USER_LOGGED_IN) and S_CAN_ACCESS) -->
Datei: ./includes/functions.php
Finden
Code: Alles auswählen
'S_BOARD_DISABLED' => ($config['board_disable']) ? true : false,
Code: Alles auswählen
'S_CAN_ACCESS' => $auth->acl_gets('a_', 'u_disabled_ignore') ? true : false,
Datei: ./includes/sessions.php
Finden
Code: Alles auswählen
// Is board disabled and user not an admin or moderator?
if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
Code: Alles auswählen
// Is board disabled and user not an admin or allowed to use?
if ($config['board_disable'] && !defined('IN_LOGIN') && !$auth->acl_gets('a_', 'u_disabled_ignore'))
Datei erstellen:
erstellen in: ./language/de/mods/
Name: permissions_disabled_ignore.php
Bitte beachten: phpbb3 - Was bei Änderungen an Sprachdateien beachtet werden muss!
Inhalt:
Code: Alles auswählen
<?php
/**
* DO NOT CHANGE
*/
if (empty($lang) || !is_array($lang))
{
$lang = array();
}
// Adding the permissions
$lang = array_merge($lang, array(
'acl_u_disabled_ignore' => array('lang' => 'Kann das Forum im deaktivierten Zustand verwenden', 'cat' => 'misc'),
));
?>
SQL ausführen:
Code: Alles auswählen
INSERT INTO phpbb_acl_options (auth_option, is_global, is_local, founder_only) VALUES ('u_disabled_ignore', 1, 0, 0);
Änderungen an Dateien speichern, hochladen und Cache via ACP leeren
Und wie immer gilt: Auch wenn das hier getestet wurde immer vorher ein Backup machen!