ratings 2.10 bug or improperly documented in exp:rating:rankings parameter: orderby
Posted: 06 January 2008 04:51 PM   [ Ignore ]
Newbie
Rank
Total Posts:  4
Joined  2007-09-28

if you want to rank on anything other than overall (i.e. a single field) according to the docs “orderby=“some_custom_rating_field”
in the module on line 766 your only options seem to be overall_count, sum and avg.
I hacked it below to add my two rating fields, obviously a poor hack but it works for me right now….


  $q = array(
    ‘overall_count’ => ‘count’,
    ‘overall_sum’ => ‘sum’,
    ‘overall_avg’ => ‘avg’,
    ‘rating_avg’ => ‘avg_2’,  // hack; added
    ‘rating2_avg’ => ‘avg_3’  // hack; added
    );


-kevin

Profile
 
 
Posted: 08 January 2008 07:46 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3716
Joined  2006-10-18

Kevin,

I’m not ignoring you… I will look into this for you very shortly smile

 Signature 

Check out the new Solspace Blog!

Profile
 
 
Posted: 09 January 2008 07:58 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  3716
Joined  2006-10-18

Strange, I am unable to duplicate this bug.

What kind of data do those fields contain… exactly?

 Signature 

Check out the new Solspace Blog!

Profile
 
 
   
 
 
‹‹ Hi all      rating revisions? ››