Re: Parent / Childrelationship in forum loop
You can work around this problem by doing a scan of the $forums global before entering the main loop and checking the “rank” or “type” of forum for each listing.
In fact you can replace the loop entirely with your own routine, as long as you global $forum
you can set the $forum to any which one you want and the internal functions will still work.
So essentially do a pre-loop through the forums, build your own array of how you’d like the output, and then do the main loop to output the forums in the order/design that you’d like. Just be sure to set $forum
to the current forum you are working with before calling any of the forum functions.
ps. You *can* access
$bb_forums_loop->first_child
$bb_forums_loop->last_child
$bb_forums_loop->bb_root
if you wish. Just do a global $bb_forums_loop;
outside of the loop, then inside the loop they are available to you.