bbPress

Simple, Fast, Elegant

bbPress support forums » Plugins

bb Ratings - Stars vertical instead of horizontal

(3 posts)
  • Started 1 year ago by actorjiml
  • Latest reply from actorjiml
  • This topic is not resolved
  1. I've installed the bb Ratings plugin and put the following code on the front page:
    <h2><?php _e('Highest Ratings'); ?></h2>
    <table id="highest"><col class="wide" />
    <tr>
    <th>Highest Rating</th>
    <th>Rating</th>
    </tr>
    <?php 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>

    The stars show up, the counts are correct, but instead of displaying horizontally which would allow the color to display properly the stars are stacked one on top of the other with the count at the very bottom.

    I know the display works on the plugin repository page, but I haven't been able to track down what I've been doing wrong.

    Posted 1 year ago #
  2. Never mind. I had forgotten to link to the plugin css file.

    Posted 1 year ago #
  3. One thing it's not doing is displaying the topics in descending order. If anyone is using this function and can point me in the right direction I will appreciate it.

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.

Code is Poetry.