Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Hiding subforms on your home page


_ck_
Participant

@_ck_

There are plenty of threads/posts about this, try this:

Hiding Subforums’ Subforums from Subforum Pages

You want code like this:

<?php $forum_parent=$forum_id; ?>
<?php while ( bb_forum() ) : ?>
<?php if ($GLOBALS['forum']->forum_parent==$forum_parent) { ?>
<tr<?php bb_forum_class(); ?>>
<td><?php bb_forum_pad( '<div class="nest">' ); ?><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><small><?php forum_description(); ?></small><?php bb_forum_pad( '</div>' ); ?></td>
<td class="num"><?php forum_topics(); ?></td>
<td class="num"><?php forum_posts(); ?></td>
</tr>
<?php } ?>
<?php endwhile; ?>

Skip to toolbar