Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: bbRatings need help with the bb_top_topics() Function


wmarcy
Member

@wmarcy

Jim Lynch came to the rescue, here is what is necessary:

This code gos into the front-page.php file:

<table id="highest">
<tr>
<th>Highest Rating</th>
<th>Rating</th>

</tr>

<?php $topics=bb_top_topics();
foreach ($topics as $topic) : ?>
<tr<?php alt_class('forum'); ?>>
<td><a href="<?php topic_link(); ?>"><?php topic_title(); ?></a>
</td>
<td class="num"><div class="rating-holder"><?php bb_rating();?>
<span class="count"><?php bb_rating_count(); ?>
</span>
</div>
</td></tr>
<?php endforeach; ?>
</table>

Also very important not to forget to include “my-plugins/bb-ratings.css” in your template header file. That should look something like this:

<link rel='stylesheet' href='http://YOUR_PATH_TO_BBPRESS/my-plugins/bb-ratings.css' type='text/css' />

Skip to toolbar