Skip to:
Content
Pages
Categories
Search
Top
Bottom

Front page stickies on forum pages?


  • Ben L.
    Member

    @nightgunner5

    How can I get the front page “super_stickies” to show up on each of the forums pages?

Viewing 3 replies - 1 through 3 (of 3 total)

  • livibetter
    Member

    @livibetter

    This should work:

    <?php
    if ( !$bb_db_override ) :
    $super_stickies = get_sticky_topics();
    endif;
    ?>
    <?php if ( $super_stickies ) : foreach ( $super_stickies as $topic ) : ?>
    <tr<?php topic_class(); ?>>
    <td><?php bb_topic_labels(); ?> <big><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></big></td>
    <td class="num"><?php topic_posts(); ?></td>
    <td class="num"><?php topic_last_poster(); ?></td>
    <td class="num"><small><?php topic_time(); ?></small></td>
    </tr>
    <?php endforeach; endif; // $super_stickies ?>


    Ben L.
    Member

    @nightgunner5

    What’s the bb_db_override for?

    Edit: it works, except for the fact that all the stickys on my forums show up, but not the ones that are front-page.


    livibetter
    Member

    @livibetter

    No ideas. But it has something to do with bb_index.php_pre_db ( http://trac.bbpress.org/browser/trunk/index.php ) or bb_forum.php_pre_db actions. So I just left it unchanged.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.