Average Value instead of the HTML
udvranto - November 21, 2007 - 10:52
| Project: | jRating |
| Version: | 4.7.x-1.x-dev |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
I am using views to create a block with top rated posts. But the stars break the list view and when used in a table it takes a lot of space. I would like to put the average values instead of stars in the block. How can I do this?

#1
You'll need to override theme_jrating_average_rating in your theme. You can probably copy the existing function and just
return $mean_ratingafter the line$mean_rating = $rating['rating'];This will stop the average rating stars being displayed in the rating form as well though...