Hi Paul. (BTW, Happy Belated Birthday!)
Before diving into this, let me clarify what I am doing, and then maybe you can help me figure out the best approach to take...
I just added the ability for members to rate Comments by other members.
Beneath each Comment is a drop-down where a member can do a one-time vote on said Comment. After submitting things, my PHP inserts that in the database and then calculates a new "Average Rating" for said Comment.
Right now my PHP is returning a decimal result with a text label (e.g. "4.3 Stars") for the Average Rating, but I figure that having something visual is more likely to catch people's attention.
In an earlier thread of mine, I asked How to show Stars?
What are your thoughts on that point?? :-/
At this point, I am leaning towards showing between 1 to 5 yellow stars to reflect my "Average Rating" calculation, although I am not sure what to do if the Average Rating = 4.3
I just need a visual representation of how good or bad other people feel a member's Comment is.
It seems like a happy medium might be to create a sprite in 1/2 Star increments (e.g. 1/2 star, 1 star, 1 1/2 stars,..., 4 1/2 stars, 5 stars), and then have my PHP either round up or down the Average Rating and then pick which Star-strip to show.
So, for example, maybe my PHP would say that an Average Rating = 4.3 would display the "4 Star strip", whereas an Average Rating = 4.6 would show the "4.5 Star strip"...
I'm going to shut up now and let you enlighten me (as always)!!! :lol: