Fork me on GitHub

Some questions about the Ratings module  Bottom

  • Here is the PHP code for this value:

    Code

    $items[$k]['score'] = round($v['rating']/$v['numratings'], 2);


    So the score = average rate of the current item(a number between 0 and 100) / total number of rates for the current item.

    What's the goal of this value, I can't understand...

    edit: I've another question about the way that the rates are saved into the database.

    With the ID of the item, the type of rating is saved...what's the goal to do this?
    And if I switch between the different type of rating, I will only see the rates for the current type.

    For me, regardless the type of rating, all the rates for a same items should be "mixed". We could set the type of rating as a number, a star or a percentage, it's always save the rate as a number between 0 and 100 so this value doesn't depend on the type of rating!



    edited by: Yokav, datetimebrief
  • Does not look like this value has much to say. I first thought it could be a value showing how realistic the rating is, but then it should increase and not decrease when the amount of ratings gets higher.

    --
    Guite | ModuleStudio

This list is based on users active over the last 60 minutes.