Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Create a blank page

You need to format the return array of bb_top_topics() on your own.

<?php
/*
Page Name: Highest rated
2007-11-29 14:47:26
*/
$sidebar_area = "forum";
// $sidebar_ibox = "topic";
require_once('./bb-load.php');
bb_get_header();
?>
<div id="content" class="narrowcolumn">
<h2>Most highly rated topics</h2>
<table id="latest">
<tr>
<th><?php _e('Topic'); ?> — <?php new_topic(); ?></th>
<th><?php _e('Posts'); ?></th>
<th><?php _e('Last Poster'); ?></th>
<th><?php _e('Freshness'); ?></th>
</tr>
<?php if ( $topics = bb_top_topics() ) : foreach ( $topics as $topic ) : ?>
<tr<?php topic_class(); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a></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; ?>
</table>
</div>
<?php
bb_get_footer();
?>

Skip to toolbar