I wrote my own custom blocks to list latest / top rated stuff from my site (I didn't use views because I needed more control over mysql queries).

The last thing I need to do is to display jrating widget for average score. I have nid, votingapi_cache average score and votingapi_cache count value. I've looked through jrating.module code and I'm really confused. Which function should I call to get the html code of an average score widget?

Comments

hickory’s picture

Probably theme_jrating_average_rating.

hickory’s picture

Or theme_jrating_static($value) if you don't need the Average Rating text.

hickory’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)