We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

sum of rates is not correct! - Top users plugin by Oxwall CandyStore | Forum

Hadi Kamell
Hadi Kamell Mar 6 '13
hi

i have 100 * 4 rates

you have 1*5 rates

your rate is upper than me..

this is not correct, the average is incorrect...

Saif
Saif Mar 16 '13
Yes this must be addressd 
Oxwall CandyStore
Oxwall CandyStore Mar 16 '13
Average for you: 100 * 4 / 100 = 4
Average for me: 1 * 5 / 1 = 5
5 is greater than 4

So guys what is your formula of calculating the average? Please suggest one
Hadi Kamell
Hadi Kamell Mar 17 '13
Quote from Oxwall CandyStore Average for you: 100 * 4 / 100 = 4
Average for me: 1 * 5 / 1 = 5
5 is greater than 4

So guys what is your formula of calculating the average? Please suggest one

Hi and thanks!

your cute plugin was a popular plugin in my site, but all my users have problem with its formula bcoz it is not like Democracy laws! (:D) bcoz when i have 50 friends that rated me as 5, then a person rated me 1; my score should be above my person that have 1 rate at value of 5 , isn't it?


ben
ben Mar 22 '13
Average for you: 100 * 4 = 400
Average for me: 1 * 5 = 5
400 is greater than 5 not rate but total score
Hadi Kamell
Hadi Kamell Mar 31 '13
yes, thAT is...

please take changes :\

Lech Sakhar
Lech Sakhar Jul 8 '13
proposal : total points (person x rating) / number of persons who rated


The Forum post is edited by Lech Sakhar Jul 8 '13
Hadi Kamell
Hadi Kamell Jul 26 '13
what changes i should made to this file for mine customize ?

ocs_topusers/components/total_score.php

Mawan A. Nugroho
Mawan A. Nugroho Dec 9 '13
In another words, if you don't like a famous celebrity, give him a lowest rate as possible and then give 5 stars to someone who never get rating.

Famous Celebrity: 5 + 5 + 5 + 5 + 5 + … + 4 = 4.9999
Someone: 5 = 5 <-- He will become top user.
Mawan A. Nugroho
Mawan A. Nugroho Dec 9 '13
I think Oxwall should make another system, for example: The most rated user.
Hadi Kamell
Hadi Kamell Dec 9 '13

Quote from Mawan A. Nugroho I think Oxwall should make another system, for example: The most rated user.

this is not a base plugin of oxwall my friend, but photo , blog and other rates of oxwall are like this..
Patricia Zorrilla Leader
Patricia Zorrilla Dec 10 '13
I want the total number of stars received and the number of voters see, averages and graphs are ornaments. The total star I see voters if fundamental. As you are now is a disaster, a single 4 star 5 star feedback rating 9999 brings you below one vote of 5.
Mohammad
Mohammad Jan 19 '14
@Oxwall CandyStore: maybe I have some idea for rating system,Where is the function which calculate rates ? 
ben
ben Feb 5 '14

Quote from Mohammad @Oxwall CandyStore: maybe I have some idea for rating system,Where is the function which calculate rates ? 

maybe on total score.php
        $info['width'] = !isset($info['avg_score']) ? null : (int) floor((float) $info['avg_score'] / $maxRate * 100);

I try to change this but not working:D
Oxwall CandyStore
Oxwall CandyStore Feb 5 '14
The code you want to change is here
ow_plugins/ocs_topusers/bol/service.php
You do not have permission to reply this topic