Adapt it for Digg-style Voting?
Posted: 27 June 2007 12:55 PM   [ Ignore ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-12

Hello, I want to know, if it is possible, how you could adapt this module to provide a Digg-style voting system for entries.  Could you then sort by votes?  If not, does anyone know of a module / plugin out there that allows this?  I spent most of an afternoon looking but found nothing….

Thanks!

Profile
 
 
Posted: 27 June 2007 01:02 PM   [ Ignore ]   [ # 1 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Forgive my ignorance, but what exactly is digg-stlye voting? A binary yes/no system?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 27 June 2007 02:39 PM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-12

That could work, although I’m thinking of something even more basic.  On each entry, you’re given the option of saying “I like this.“  An entry’s popularity is then determined by the number of “thumbs up” votes.  No need for “Thumbs down” votes.  The essence of social bookmarking.  I did look at the Favorites module, and it’s close to what I want, except that I think the set of a user’s “Favorites” is much smaller than what they would vote as “Thumbs up.“  Hope this is clear =)

Profile
 
 
Posted: 27 June 2007 02:58 PM   [ Ignore ]   [ # 3 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

If you want ultra-basic, go with the comment module. No, seriously: You wouldn’t call it “comments”, and there doesn’t have to be a field for an actual comment, but clicking the thumbs-up button would add a comment, and you could count those and order by number of comments. Makes sense?

 Signature 

Ingmar Greil

Profile
 
 
Posted: 27 June 2007 04:38 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-12

That does make sense, but then can I still use the comments module to allow users to leave regular comments?  In effect this would be like having two sets of comments for each entry right? 

Thanks for the ultra-fast replies!

Profile
 
 
Posted: 27 June 2007 10:17 PM   [ Ignore ]   [ # 5 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

There are a number of ways, of course. Increasing a counter in the database every time a link is clicked is not all that difficult, really, and seems all that is needed in your case. If you do want to use comments, and want to use “regular comments” as well, it would probably require a bit of applied logic, and perhaps a few lines of PHP oder even an SQL query ot two. What you could do is have your “vote” comments have a fixed name, eg. (that would be set by you via an <input type=“hidden”> field), and only use comments with this commenter’s name. I am kind of brainstorming, really, but I think that’s feasible.

 Signature 

Ingmar Greil

Profile
 
 
Posted: 28 June 2007 01:28 PM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  12
Joined  2007-04-12

Thanks Ingmar, I’m going to give the Favorites module a try, and if that doesn’t work out I’m coming back to bug you guys smile

Profile
 
 
Posted: 28 June 2007 01:45 PM   [ Ignore ]   [ # 7 ]
Sr. Member
Avatar
RankRankRankRank
Total Posts:  336
Joined  2005-07-09

Be our guest smile The Favorites module, of course, should be able to handle that easily…

 Signature 

Ingmar Greil

Profile