Skip to:
Content
Pages
Categories
Search
Top
Bottom

bb Ratings – Stars vertical instead of horizontal

  • @actorjiml

    Participant

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • @actorjiml

    Participant

    Never mind. I had forgotten to link to the plugin css file.

    @actorjiml

    Participant

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar