The orderby parameter values? 
Posted: 25 May 2007 01:21 AM   [ Ignore ]
Newbie
Rank
Total Posts:  29
Joined  2006-09-16

I would like to sort the rating reviews in order of their total count. Is there a value I can use for the orderby parameter such as an equivalent for “comment_total”?

I have tried a few things without successful results like this:

Thank you again. smile

EDIT: I think the value would be “overall_count”. If that is the correct value, then here, too, I cannot sort it in ascending order, only in descending order. If I add this:

{exp:rating:rankings weblog="{master_weblog_name}" dynamic="off"  limit="8"  rdf="off" sort="asc" orderby="overall_count" disable="member|trackbacks"}
my content 
...
{/exp:rating:rankings}

I get an abundance of errors:

NoticeTrying to get property of non-object in ../modules/rating/mod.rating.php on line 830

Warning
Invalid argument supplied for foreach() in ../modules/rating/mod.rating.php on line 830

Notice
Trying to get property of non-object in ../modules/rating/mod.rating.php on line 830

Warning
Invalid argument supplied for foreach() in ../modules/rating/mod.rating.php on line 830

Notice
Trying to get property of non-object in ../modules/rating/mod.rating.php on line 830

Warning
Invalid argument supplied for foreach() in ../modules/rating/mod.rating.php on line 830

Notice
Trying to get property of non-object in ../modules/rating/mod.rating.php on line 830

Warning
Invalid argument supplied for foreach() in ../modules/rating/mod.rating.php on line 830

Notice
Trying to get property of non-object in ../modules/rating/mod.rating.php on line 830

Warning
Invalid argument supplied for foreach() in ../modules/rating/mod.rating.php on line 830

Notice
Trying to get property of non-object in ../modules/rating/mod.rating.php on line 830

Warning
Invalid argument supplied for foreach() in ../modules/rating/mod.rating.php on line 830

Notice
Trying to get property of non-object in ../modules/rating/mod.rating.php on line 830

Warning
Invalid argument supplied for foreach() in ../modules/rating/mod.rating.php on line 830

Notice
Trying to get property of non-object in ../modules/rating/mod.rating.php on line 830

Warning
Invalid argument supplied for foreach() in ../modules/rating/mod.rating.php on line 830

Notice
Undefined propertystdClass::$num_rows in ../modules/rating/mod.rating.php on line 852

Profile
 
 
Posted: 25 May 2007 10:13 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  701
Joined  2004-03-30

Maleika,

Thank you for filing such good bugs. I have corrected a problem in the module. Go ahead and download 2.0.9 again from solspace.com/mine. The errors you were seeing should go away. They are appearing because no results are being found for your set.

You can use the overall_count value in the orderby parameter now that the bug is corrected. Let us know if the module still misbehaves.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 25 May 2007 11:37 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  29
Joined  2006-09-16

Wonderful, thank you!

Profile