Simple Subforums - Einbauproblem
Verfasst: 02.02.2006 16:53
Hallo,
ich bin gerade dabei den Simple Subforums Mod manuell (per Hand) einzubauen. Als ich in der functions.php einen eintrag hinzufügen musste kam die Stelle am Ende des eintrags mit den Klammern mir irgendwie komisch vor. Möchte aber daran nicht eigenwillig etwas ausprobieren und wollte daher fragen ob das jetzt so korrekt ist oder nicht:
ich bin gerade dabei den Simple Subforums Mod manuell (per Hand) einzubauen. Als ich in der functions.php einen eintrag hinzufügen musste kam die Stelle am Ende des eintrags mit den Klammern mir irgendwie komisch vor. Möchte aber daran nicht eigenwillig etwas ausprobieren und wollte daher fragen ob das jetzt so korrekt ist oder nicht:
Code: Alles auswählen
//
// Add an array to $nav_links for the Mozilla navigation bar.
// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
//
$nav_links['chapter forum'][$forum_rows[$j]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$j]['forum_id']),
'title' => $forum_rows[$j]['forum_name']
);
// Begin Simple Subforums MOD
for( $k = 0; $k < $total_forums; $k++ )
{
if ( $forum_rows[$k]['forum_parent'] == $id && $forum_rows[$k]['cat_id'] == $category_rows[$i]['cat_id'] && $forum_rows[$k]['auth_view'] <= AUTH_REG )
{
// if ( $forum_rows[$k]['forum_parent'] == $id && $forum_rows[$k]['cat_id'] == $category_rows[$i]['cat_id'] && $is_auth[$forum_rows[$k]['forum_id']]['auth_view'] )
// {
$selected = ( $forum_rows[$k]['forum_id'] == $match_forum_id ) ? 'selected="selected"' : '';
$boxstring_forums .= '<option value="' . $forum_rows[$k]['forum_id'] . '"' . $selected . '>-- ' . $forum_rows[$k]['forum_name'] . '</option>';
//
// Add an array to $nav_links for the Mozilla navigation bar.
// 'chapter' and 'forum' can create multiple items, therefore we are using a nested array.
//
$nav_links['chapter forum'][$forum_rows[$k]['forum_id']] = array (
'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=" . $forum_rows[$k]['forum_id']),
'title' => $forum_rows[$k]['forum_name']
);
}
}
// End Simple Subforums MOD
}
}
if ( $boxstring_forums != '' )
{
$boxstring .= '<option value="-1"> </option>';
$boxstring .= '<option value="-1">' . $category_rows[$i]['cat_title'] . '</option>';
$boxstring .= '<option value="-1">----------------</option>';
$boxstring .= $boxstring_forums;
}
}
}