How do you list entries with zero votes using exp:favorites:rank?
Posted: 01 October 2007 11:52 AM   [ Ignore ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-12

Hello, we’re using the Favorites module (2.0.9) on our site - http://plan4preschool.org

Specifically, we’re using it to rank our “documents” (entries) by how many “gold stars” (votes) they’ve received.  But we have many documents that have zero votes, and are likely to stay that way, so is it possible to have them to show up when we use the {exp:favorites:rank} tag to display the list of documents?

Profile
 
 
Posted: 04 October 2007 02:32 PM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-12

Any ideas?  I’m at a loss here :( 

What I’m doing now is listing the favorited entries first, then doing another {exp:weblog:entries} tag sorted by date.  The result is that the starred articles are double-listed, which will quickly look bad as more and more articles receive votes.

Profile
 
 
Posted: 05 October 2007 07:20 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Icesar,

This has been a challenge with the Favorites module as it wasn’t designed for this purpose. Though I completely agree with your need to have it work the way you describe. The module package includes an extension that you can use to alter the behavior of the weblog:entries tag itself. This would solve your problem. Trouble is, you need to add an extension hook to the file mod.weblog.php. If you’re comfortable doing a little hacking and maintaining that hack over time as you upgrade EE, I’d be glad to help. Just don’t tell the EE guys that I am defacing their code. smile

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 08 October 2007 10:44 AM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-12

Yes, let’s do it.  I promise not to tell!

Profile
 
 
Posted: 08 October 2007 11:07 AM   [ Ignore ]   [ # 4 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

I’ll PM you.

mk

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 08 October 2007 11:12 AM   [ Ignore ]   [ # 5 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  736
Joined  2004-03-30

Well, PM didn’t work.

Email me and I’ll send you the instructions.

mitchell at solspace.com

 Signature 

Mitchell Kimbrough

Profile
 
 
Posted: 08 October 2007 12:10 PM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-12

Yeah, for some weird reason it says my forum inbox is full.  Emailing you now.  Thanks for the help Mitchell, I appreciate it.

Profile