Change rating average to total points

Forum rules
Support ended: 31.12.2011

Change rating average to total points

Postby dan filipi » Sat Dec 17, 2011 5:20 pm

Gallery Version: 1.1.4
phpBB Version: 3.0.9
Gallery-Link: http://classicgoldwings.com/forum/gallery/index.php

PHP Version: 5
Database Version: 5


Error message:

Error description and message
I have made the edits found here tracker.php?p=7&t=730
so now contest rates are added up as total points instead of averages in a contest to decide the winner like I want however the rating is still displayed as the average, not the total points.

I want the displayed final rating (total) to reflect the total points number instead of it's average rating.
How can I do this?
Thanks
dan filipi
Posts > 50
Posts > 50
 
Posts: 80
Topics: 19
Images: 4
Joined: Mon Jul 05, 2010 8:28 pm

Re: Change rarting average to total points

Postby nickvergessen » Sat Dec 17, 2011 5:27 pm

If you use 1.1.4 you dont need to do that changes.

You need to change includes/gallery/contest.php
find:
Code: Select all
static private $mode = self::MODE_AVERAGE;

and replace it with:
Code: Select all
static private $mode = self::MODE_SUM;
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: Change rating average to total points

Postby dan filipi » Sat Dec 17, 2011 6:20 pm

Yes I made that change before this test contest which results in the pull from the database of the total rates to decide the winner like I want.
That is working good but what is being displayed at the contest end is still the average.


Image

Image

So say the winner got a total rating of 40 and second place got a total rating of 35, I want displayed under "Rating" those total numbers instead of the averages.
dan filipi
Posts > 50
Posts > 50
 
Posts: 80
Topics: 19
Images: 4
Joined: Mon Jul 05, 2010 8:28 pm

Re: Change rating average to total points

Postby dan filipi » Sun Dec 18, 2011 8:59 pm

Any ideas how to do this?

I'd be ok with all gallery images displaying the total points instead of the average, not just those in a contest if that makes it any easier.

I've searched and found a old thread when Gallery was in RC but the files have changed significantly since then.

Please excuse my ignorance if I'm missing something simple which is often the case.
dan filipi
Posts > 50
Posts > 50
 
Posts: 80
Topics: 19
Images: 4
Joined: Mon Jul 05, 2010 8:28 pm

Re: Change rating average to total points

Postby nickvergessen » Mon Dec 19, 2011 11:47 am

Can you please post it into the tracker: tracker.php?p=6
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


Return to Support & Administration

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 1 guest