Simple Subforums - Fehler im Administrations Bereich
Verfasst: 08.04.2007 22:51
Nach sehr langen suchen habe ich die Simple Subforums Mode 1.0.2 gefunden.
Nachdem ich es Installeirt habe, bekomme ich einen fehler im Adminstrations Bereich!
Wenn ich auf Forum/Einstellungen gehe bekomme ich diese Fehlermeldung:
Line 124:
Ich habe die eXtreme Styles Mod erfolgreich installiert!
Hier noch meine functions_admin.php:
functions_admin.php
Auszug aus der install.txt für die Mod:
Nachdem ich es Installeirt habe, bekomme ich einen fehler im Adminstrations Bereich!
Wenn ich auf Forum/Einstellungen gehe bekomme ich diese Fehlermeldung:
Code: Alles auswählen
Parse error: syntax error, unexpected T_CASE in /usr/export/www/hosting/locou/phpBB2/includes/functions_admin.php on line 124
Code: Alles auswählen
case 'all topics':
Ich habe die eXtreme Styles Mod erfolgreich installiert!
Hier noch meine functions_admin.php:
functions_admin.php
Auszug aus der install.txt für die Mod:
Code: Alles auswählen
#-----[ OPEN ]------------------------------------------
#
includes/functions_admin.php
#
#-----[ FIND ]------------------------------------------
#
$sql = 'SELECT f.forum_id, f.forum_name
#
#-----[ IN-LINE FIND ]------------------------------------------
#
f.forum_name
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
, f.forum_parent
#
#-----[ FIND ]------------------------------------------
#
$forum_list = '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
// Begin Simple Subforums MOD
$list = array();
// End Simple Subforums MOD
#
#-----[ FIND ]------------------------------------------
#
while( $row = $db->sql_fetchrow($result) )
{
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin Simple Subforums MOD
$list[] = $row;
}
$forum_list = '';
for( $i = 0; $i < count($list); $i++ )
{
if( !$list[$i]['forum_parent'] )
{
$row = $list[$i];
$parent_hidden = true;
// End Simple Subforums MOD
#
#-----[ FIND ]------------------------------------------
#
$forum_list .= '<option value="' . $row['forum_id'] . '"' . $selected .'>' . $row['forum_name'] . '</option>';
#
#-----[ AFTER, ADD ]------------------------------------------
#
// Begin Simple Subforums MOD
$parent_hidden = false;
}
if ( $is_auth_ary[$row['forum_id']]['auth_read'] )
{
$parent_id = $row['forum_id'];
for($j=0; $j<count($list); $j++)
{
$row = $list[$j];
if( $row['forum_parent'] == $parent_id && $is_auth_ary[$row['forum_id']]['auth_read'] && $ignore_forum != $row['forum_id'] )
{
if( $parent_hidden )
{
$forum_list .= '<option value="" disabled="disabled">' . $list[$i]['forum_name'] . '</option>';
$parent_hidden = false;
}
$selected = ( $select_forum == $row['forum_id'] ) ? ' selected="selected"' : '';
$forum_list .= '<option value="' . $row['forum_id'] . '"' . $selected .'>-- ' . $row['forum_name'] . '</option>';
}
}
}
// End Simple Subforums MOD
#