diff options
author | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-11-26 12:09:37 +0000 |
---|---|---|
committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-11-26 12:09:37 +0000 |
commit | 8e50e5eb4e9ffc37e1d97aa39c22295086212f6a (patch) | |
tree | 9fe6c27d9b9aa2fdac8a62cc1311f7205560ac21 /phpBB/includes/functions.php | |
parent | dabc3a4b843b8de7badeac75af100f40458fd873 (diff) | |
download | forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.tar forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.tar.gz forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.tar.bz2 forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.tar.xz forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.zip |
Implemented Navigation bar in Mozilla
git-svn-id: file:///svn/phpbb/trunk@1452 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 4c93d6a6f7..063cc8027b 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -119,6 +119,7 @@ function get_userdata($username) { function make_jumpbox($match_forum_id = 0) { global $lang, $db, $SID; + global $nav_links, $phpEx; $sql = "SELECT c.cat_id, c.cat_title, c.cat_order FROM " . CATEGORIES_TABLE . " c, " . FORUMS_TABLE . " f @@ -160,6 +161,16 @@ function make_jumpbox($match_forum_id = 0) { $selected = ( $forum_rows[$j]['forum_id'] == $match_forum_id ) ? "selected=\"selected\"" : ""; $boxstring .= '<option value="' . $forum_rows[$j]['forum_id'] . '"' . $selected . '>' . $forum_rows[$j]['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[$j]['forum_id']] = array ( + 'url' => append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=". $forum_rows[$j]['forum_id']), + 'title' => $forum_rows[$j]['forum_name'] + ); + } } } |