bbPress

Simple, Fast, Elegant

bbPress support forums » Troubleshooting

Front page stickies on forum pages?

(4 posts)
  • Started 7 months ago by Nightgunner5
  • Latest reply from livibetter
  • This topic is not resolved

Tags:

  1. How can I get the front page "super_stickies" to show up on each of the forums pages?

    Posted 7 months ago #
  2. 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 ?>
    Posted 7 months ago #
  3. 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.

    Posted 7 months ago #
  4. 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.

    Posted 7 months ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.