MyBB Community Forums

Full Version: How is the thread rating getting countered?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I mean, how does the thread rating stars know how many stars to show.
How does it calculate it?

And what tables is this in?
They are stored in the mybb_threadratings table. It stores the IP address of the voter, what they voted, the uid, tid and rid.
I think the OP means after like 5 different votes, how does Mybb know the overall vote.
(2011-06-21, 01:37 AM)blake Wrote: [ -> ]I think the OP means after like 5 different votes, how does Mybb know the overall vote.

Exactly
Its simple, I guess.

The system just does a simple Math calculation.

Number of star rating divided by Number of raters.

That means, if two guys rated the thread, one 5 stars, and other rated 3 stars, then here the total number of stars = 5+3 = 8 divided by total number of raters (2) = 8/2 = 4 votes in average.
Simple math.

Add up the ratings, then divide by how many ratings there are, and it gives you an average.