Download & Extend

Average Value instead of the HTML

Project:jRating
Version:4.7.x-1.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

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?

Comments

#1

You'll need to override theme_jrating_average_rating in your theme. You can probably copy the existing function and just return $mean_rating after the line $mean_rating = $rating['rating'];

This will stop the average rating stars being displayed in the rating form as well though...