So you have a left HTML frame that should contain only the forum names and, for the names that are not simply categories, a user should be able to click the forum name and have that forum displayed in the right-hand frame?
You will want to use cache_ordered_forums to build the list of forums in the proper display order. Example:
Code:
require_once('./includes/functions_forumlist.php');
...
cache_ordered_forums();
The call to "cache_ordered_forums" without parameters specifies that you do not want any counters set and that you want only forums that are not
invisible (i.e., active). After the call, the global array "$iforumcache" will contain the list of ordered forum information.
What you are doing is similar to constructing the forum jump drop-down menu. Take a look at the function "construct_forum_jump" in "includes/functions.php".