For the front page or the whole site?
I’d like to know for both if it’s just as easy to post, but probably the front page for the project I’m working on.
Thanks
can u give me details to make catagories on top
<?php if ( bb_forums() ) : // List forums ?>
<ul class="cat_list">
<?php while ( bb_forum() ) : ?>
<?php if (bb_get_forum_is_category()) : ?>
<li><a href="<?php forum_link(); ?>"><?php forum_name(); ?></a><li>
<?php endif; ?>
<? endwhile; ?>
</ul>
<?php endif; // bb_forums() ?>
Put that in header.php
or frontpage.php
respectively and use CSS to format .cat_list li
Thanks mate, and then I remove the similar code at the bottom? Because if I understand correctly, I will then have two listings of forums.
Hmm? I accidentally left the comment saying // List forums
in there, but in actual fact that will only return categories, not forums in them because it does the bb_get_forum_is_category()
check. If you’re referring to the normal forum code in frontpage.php
, taking that out will take out the normal list of forums you see there, so I’m not sure if that’s what you want to do.