perhaps… front-page.php? Just a hunch (without reading the thread)
I think more people have this problem?
will somebody please write a clear way to do this?
I don’t get it either…
This is quick solution but not perfect. Find <?php while ( bb_forum() ) : ?>
in front-page.php
and replace it with
<?php while ( bb_forum() ) : global $forum; if ($forum->forum_parent != 0) continue;?>
It only hides the subforums, so visitors have to click on a top level forum to see if there is any subforum within the top level forum.
I have a different, but related problem – I only want to hide the descriptions for the sub forums on the homepage, not the whole table row. What if statement do I wrap around <?php forum_description(); ?> to do that?
<?php global $forum; if ($forum->forum_parent == 0) forum_description(); ?>
Quick explanation of the code: When $forum
‘s forum_parent
is 0
, that means $forum
is a top-level forum; if not, it is a sub-forum of another forum whose forum_id
equals $forum
‘s forum_parent
.
Ahhh… great, thanks. Next question, just about on topic, has anyone modified their front page bb_forum() loop so that sub-forums appear like they do on http://www.avforums.com/forums/index.php – just the title, but in the same row as the parent?
Thanks,
That’s exactly what I was after – thanks.