Quote:
Originally Posted by meissenation
Has anyone actually implemented it? I had to change
$forumbits2b = construct_forum_bit(45,1,0);
to
$forumbits2b = construct_forum_bit(45);
for the forums to display correctly. I noticed that in my index.php file, directly above the pieces we add, my $forumbits = construct_forum_bit($forumid);
|
yes, a lot of members have this already installed and running prior to it being released. Both ways will work. What version of vB are you running?
the construct_forum_bit function is located in the functions_forumlist.php
If you just send 45, then it defaults to (45,0,0) and 0 will be a forum depth of 2
Code:
// ###################### Start makeforumbit #######################
// this function returns the properly-ordered and formatted forum lists for forumhome,
// forumdisplay and usercp. Of course, you could use it elsewhere too..
function construct_forum_bit($parentid, $depth = 0, $subsonly = 0)
{
global $vbulletin, $stylevar, $vbphrase, $show;
global $imodcache, $lastpostarray, $counters, $inforum;
// this function takes the constant MAXFORUMDEPTH as its guide for how
// deep to recurse down forum lists. if MAXFORUMDEPTH is not defined,
// it will assume a depth of 2.