Skip to:
Content
Pages
Categories
Search
Top
Bottom

Categories at the top?

  • @rgregory1

    Member

    Is there an easy way to put the categories at the top of the board?

Viewing 7 replies - 1 through 7 (of 7 total)
  • @ipstenu

    Moderator

    For the front page or the whole site?

    @rgregory1

    Member

    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

    @rgregory1

    Member

    Bump…

    @hanratty

    Member

    can u give me details to make catagories on top

    @kawauso

    Member
    <?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

    @rgregory1

    Member

    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.

    @kawauso

    Member

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.
Skip to toolbar