Seite 1 von 1

Zusammengeklappte Foren auf der Index Seite

Verfasst: 14.02.2004 16:20
von Dwing
Beschreibung: Die Foren werden standardmäßig zusammengeklappt (collapsed) angezeigt.
phpBB Version: 2.0.x (getestet mit 2.0.6)
Author: netzmeister

Code: Alles auswählen

#
#-----[ Öffne ]------------------------------------------
#
index.php

#
#-----[ Finde ]------------------------------------------
#
$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : -1;

#
#-----[ Ersetze mit ]-------------------------------------------
#
$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : 'c';

#
#-----[ Finde ]------------------------------------------
#
if ( $viewcat == $cat_id || $viewcat == -1 )

#
#-----[ Ersetze mit ]-------------------------------------------
#
if ( $viewcat == $cat_id || $viewcat == -1 && $viewcat != 'c') 

Verfasst: 22.11.2004 20:00
von PhilippK
Soll standardmäßig eine bestimmte Kategorie angezeigt werden:

Code: Alles auswählen

# 
#-----[ Öffne ]------------------------------------------ 
# 
index.php 

# 
#-----[ Finde ]------------------------------------------ 
# 
$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : -1; 

# 
#-----[ Ersetze mit ]------------------------------------------- 
# 
$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : xy;
xy muss dabei durch die ID der Kategorie ersetzt werden, die standardmäßig geöffnet werden soll.