I have got a problem with the fivestar average ratings in my comments. Basically, I would like to display the average vote if the user hasn't voted, and if they have, then just show their vote. So, I have set the configuration to show the smart display and smart text. However, the problem is, when the page loads and it shows a comment which the user hasn't voted on yet (meaning the average vote should be displayed), the stars are displaying incorrectly. If the average rating was 3.5 out of 5 stars, then it will round to the next star and show 4 stars instead of showing 3 stars and half of the 4th star. The average text displays correctly, but it is the stars that are not displaying correctly.
It works perfectly if I display both the user vote and average votes individually. I don't want to show stars for both as it takes up too much space on my comments. I would like to show either or, but the problem is it displays incorrectly with the smart display. It actually displays correctly if I am logged out as well, when there is no user vote to show. I have attached a couple of images to demonstrate the problem. A fix for this would be highly appreciated. Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| not-displaying-correctly.png | 2.43 KB | shabana.navas | |
| displaying-correctly.png | 3.22 KB | shabana.navas |
Comments
Comment #1
whiteph commentedSee Widget Stars Not Displaying Fractional Ratings (Rounding Up)