Contest ranking on identical rating

Support for Administration, Installation, Update & Conversion
Locked until 1.1.0 was released.

Contest ranking on identical rating

Postby cstolzenbach » Thu Jun 14, 2012 4:56 pm

Gallery Version: 1.1.4
phpBB Version: 3.0.10
Link zur Gallery http://www.sensor-und-film.de/gallery


Fehlerbeschreibung und Nachricht
A question I received from a user: when in a contest two (or more) pictures have the same rating what will the next information been taken in order to make a ranking? Will it be the number of voters, the timestamp of the picture being uploaded or something else? Am I right that the overall rating is rounded to the second decimal place? Will the precise overall rating been taken for the ranking or the rounded one?
cstolzenbach
Donator
Donator
 
Posts: 18
Topics: 6
Joined: Thu Apr 14, 2011 12:52 pm
phpBB.de: cstolzenbach
phpBB.com: cstolzenbach

Re: Contest ranking on identical rating

Postby nickvergessen » Thu Jun 14, 2012 5:21 pm

cstolzenbach wrote:A question I received from a user: when in a contest two (or more) pictures have the same rating what will the next information been taken in order to make a ranking? Will it be the number of voters, the timestamp of the picture being uploaded or something else? Am I right that the overall rating is rounded to the second decimal place? Will the precise overall rating been taken for the ranking or the rounded one?

As only the rounded value is stored, this. As option when the values are the same the image_id (equivalent to time but unique) is chosen: https://github.com/nickvergessen/phpbb- ... st.php#L71
cheers nickvergessen :geek:

Member of phpBB Development-Team
No Support via PM
User avatar
nickvergessen
Administrator
Administrator
 
Posts: 5748
Topics: 217
Images: 139
Joined: Mon Oct 15, 2007 4:15 pm
phpBB.de: nickvergessen
phpBB.com: nickvergessen

Re: Contest ranking on identical rating

Postby cstolzenbach » Thu Jun 14, 2012 5:42 pm

Thanks. If I do understand the code right the second value taken into consideration are the total points an image has received, isn't it? I.e. the picture with the higher number of voters wins if the average of points is the same on both pictures.

Code: Select all
case self::MODE_AVERAGE:
   return 'image_rate_avg DESC, image_rate_points DESC, image_id ASC';
cstolzenbach
Donator
Donator
 
Posts: 18
Topics: 6
Joined: Thu Apr 14, 2011 12:52 pm
phpBB.de: cstolzenbach
phpBB.com: cstolzenbach


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest