I'm trying to set up the Voting Actions module. But I can't figure out how anything works. I'm hoping someone can post a simple sample.

The goal is to have front page content that is generated based on votes. I want users to vote on nodes, and then once node votes have reached a certain point, they get posted on the front page.

Can someone describe briefly how I could set up the site to allow this?

Thanks,

Comments

eaton’s picture

Sorry for the lack of documentation for that module. It's part of a project that I'm completing for a sponsor, and really requires another module based on the VotingAPI (SimpleVote is one example) to be useful.

If you're using the SimpleVote module to rate content, you might try the following setup. Create a Voting Action set that applies to the content type 'Node'.

Add a filter criteria with the value type 'Percentage,' a blank tag, and the function 'average'. Set the comparison to 'greater than' and the value to, say, 80%.

Add a second filter criteria with the value type 'Percentage,' a blank tag, and the function 'count'. Set the comparison to 'greater than' and the value to, say, 10.

Finally, add an action: 'Promote Node to Front Page.'

The result? whenever a user votes on a piece of content, the Voting Action set will be evaluated. If at least 10 people have voted on it, and the average vote is at least 4 out of 5 stars (80%), the node will be promoted to the front page.

I'm working on simpler ways to set up these actions -- right now, it requires some tinkering around and some knowledge of how the results of votes are stored by the Voting API. If you have any ideas on how it might be simplified, I'm all ears!

--
Jeff Eaton | I heart Drupal.

--
Eaton — Partner at Autogram

Gun-1’s picture

Hi.

(Sorry for posting in this thread).

I've just found a bug in this code, here it is:

141: $row[] = l(t('edit'), 'admin/voting_actions/edit/' . $vasid) . ' | ' . l(t('delete'), '/admin/voting_actions/delete/' . $vasid);
replace by: $row[] = l(t('edit'), 'admin/voting_actions/edit/' . $vasid) . ' | ' . l(t('delete'), 'admin/voting_actions/delete/' . $vasid);

The '/' before 'admin/voting_actions/delete' results in http:///admin/voting_actions/delete/x

doulos12’s picture

If I'm using the Vote Up/Down module, does that still use a percentage, or how would that be configured differently?

Dale
http://crossfeednews.com

chickenmcnoggin’s picture

Yea, I'm also a little lost on the voting actions. I am attempting to setup an action with up/down that promotes a node to the front page once there is one vote. Any ideas would be helpful.

B

http://www.bpshoe.com

frjo’s picture

The cvs version of the Vote up/doen Package includes a INSTALL.txt that can be of intrest.