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 ?>
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.
No ideas. But it has something to do with bb_index.php_pre_db
( https://trac.bbpress.org/browser/trunk/index.php ) or bb_forum.php_pre_db
actions. So I just left it unchanged.