Seite 1 von 1

Haftnotiz Mod nur für Gäste sichtbar machen

Verfasst: 23.04.2004 16:02
von UnReaL1
Danke :)

jetzt noch ne frage, ich hab ne Haftnotiz Mod Installiert
zum sichtbar machen für eingeloggte

Haftnotiz nur für eingeloggte User anzeigen:

Zitat:
++ index.php:

//
// BEGIN - Board Note MOD
//

if ($board_config['board_note_enable'] == '1' && $userdata['session_logged_in'])
{
$template->assign_block_vars('switch_enable_board_note_index', array());
}

//
// END - Board Note MOD
//

//
// Generate the page
//

++ pageheader.php:

//
// BEGIN - Board Note MOD
//
if ($board_config['board_note_enable'] == '2' && $userdata['session_logged_in'])
{
$template->assign_block_vars('switch_enable_board_note', array());
}
//
// END - Board Note MOD
//

das rote wird Hinzugefügt
und ich will in für Nicht Registrierte Sichtbar machen

PS: hab schon alles mögliche ausbrobiert bekomm es aber net hin

Verfasst: 23.04.2004 21:51
von rabbit
versuch's mal mit

Code: Alles auswählen

&& $userdata['user_id'] == -1 )
evtl. funzt es dann... :roll:

Verfasst: 24.04.2004 00:18
von UnReaL1
geht
danke :grin:

warum kommt da -1 rein kann mir das mal jemand erklären

Verfasst: 24.04.2004 01:04
von andreasOymann
-1 ist die user_id für alle Gäste