Is it possible to use this module for "was this useful ?" system ?

crea - August 31, 2009 - 07:11
Project:Vote Up/Down
Version:6.x-2.x-dev
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:active
Description

There's very nice thing I want to implement: amazon-style simple rating system on reviews - 1 question "was this review useful ?" and 2 answers - Yes + No. I wonder is it possible to implement such type of voting using this module ?
My thoughts on this: "vote up" would be "Yes" and "vote down" would be "No", then I would need to implement separate voting widget that outputs this question and 2 answers. Then there will be 2 issues:
1) with hiding voting controls and outputting in plce of them something like "Thank you for voting"
2) with counting votes, since this type of voting requires to count ratio as (Number of "yes" votes / Total number of votes).

#1

ingo86 - September 6, 2009 - 13:53
Version:6.x-1.0-beta6» 6.x-2.x-dev

The new vote up down module should have the ability to change widget easier than the 1.x branch. I move this issue to that, you could have more luck.

#2

davedg629 - September 18, 2009 - 16:19

yes i am very interested in this feature. I want to have yes/no voting for a certain node type. The widget stuff is easy as long as you have a little experience with theming/css. I am getting stuck with calculating the total number of yes (up) votes and total number of no (down) votes.

There is an issue (http://drupal.org/node/413980) that gives a possible solution, but it is for the 1.x branch. Plus after I implemented this solution I had some problems with the display of the results and clearing the old results. Not to mention the anonymous voting for the 2.x branch is awesome!

There has to be a fairly easy patch (for someone who knows module development) where you can count the number of yes (up) votes and the number of no (down) votes. I'll play with the files and see if I can come up with anything, but to be honest I don't really know what I am doing.

The next step would be integrating these yes/no results into a view.

#3

crea - September 18, 2009 - 16:26

Well i'm sure you don't need any patch for getting number of votes. Getting number of votes should be easy with standard VotingAPI functions, i.e. votingapi_select_results().
If you managed to get this voting widget to work can you please post your steps ?

#4

davedg629 - September 18, 2009 - 17:01

well I am having a extremely hard time figuring this out. I'd post my code but just really have no idea what im doing.

 
 

Drupal is a registered trademark of Dries Buytaert.