Seite 2 von 2

Re: Deativiertes Board Information auf Login Seite

Verfasst: 25.04.2012 23:19
von the_zoker_09
Wir zwar angezeigt aber dazu noch ein bisschen mehr:
Das Board ist wegen einem Serverumzug offline.[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4791: Cannot modify header information - headers already sent by (output started at /index.php:29)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4793: Cannot modify header information - headers already sent by (output started at /index.php:29)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4794: Cannot modify header information - headers already sent by (output started at /index.php:29)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4795: Cannot modify header information - headers already sent by (output started at /index.php:29)

Re: Deativiertes Board Information auf Login Seite

Verfasst: 25.04.2012 23:22
von BNa
Die Fehlermeldumng ist egal. Kannst wieder rausnehmen. War nur ein Test. Geht doch. Lies mal mein letztes Post > F5.

Re: Deativiertes Board Information auf Login Seite

Verfasst: 25.04.2012 23:25
von BNa
Aha, ist ja garnicht in der functions.php definiert

Dann geht auch

includes/functions.php

Code: Alles auswählen

	// The following assigns all _common_ variables that may be used at any point in a template.
	$template->assign_vars(array(
Dahinter einfügen

Code: Alles auswählen

'MESSAGE_TEXT_LOGIN' => $config['board_disable_msg'], 
Dann im Template aber

Code: Alles auswählen

{MESSAGE_TEXT_LOGIN}


statt

Code: Alles auswählen

{L_MESSAGE_TEXT_LOGIN}
Btw. in der functions.php muss $config nicht globalisiert werden.

Re: Deativiertes Board Information auf Login Seite

Verfasst: 25.04.2012 23:31
von the_zoker_09
Funktioniert.

Vielen Vielen Dank.

Mit einem solchen Support Forum und so einer Community macht Forum bauen einfach Spass :D

Re: Deativiertes Board Information auf Login Seite

Verfasst: 25.04.2012 23:37
von BNa
Coole Sache

Code: Alles auswählen

'MESSAGE_TEXT_LOGIN' => $config['board_disable_msg'], 
So wird der Text nur angezeigt, wenn das Board tatsächlich gesperrt ist

Code: Alles auswählen

'MESSAGE_TEXT_LOGIN' => ($config['board_disable'] == 1) ? $config['board_disable_msg'] : false,

Re: Deativiertes Board Information auf Login Seite

Verfasst: 25.04.2012 23:40
von the_zoker_09
Habs in der login_body.html mit

Code: Alles auswählen

<!-- IF S_BOARD_DISABLED -->
gemacht.

Und damit zwei verschiedene Layouts aufgestellt
Eins, wenn das Board aktiviert und eins wenn es deaktiviert ist.