new module: mediumvote

jl79 - February 16, 2006 - 22:24

Hello,

I just added to CVS my first attempt at a module, mediumvote:

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/mediumvote/

From README.txt:

MediumVote is based on Eaton's excellent SimpleVote module.

In learning SimpleVote and VotingAPI I wanted to extend some of the features provided by SimpleVote, so I created MediumVote to:

1) Add ajax functionality using drupal.js included in the 4.7 releases.
2) Add multi-criteria voting (on either nodes or comments)
3) A menu option to select voting mode (percentages vs scores)

MediumVote has only been tested on version 4.7, as drupal.js is required.
Also, like SimpleVote, it requires the VotingAPI module, and won't run without it.
It also requires a CSS-capable browser, or the stars voting widget (used when percentage voting option is selectd) won't display properly.

I suggest you familiarize yourself with SimpleVote, VotingAPI and the ajax Handbook tutorials, as the work on MediumVote is largely lifted from that excellent work.

As this is my first attempt, I'd love to hear any feedback - I hope the module can be useful to others.

Very cool

veridicus - February 16, 2006 - 22:50

Very cool! I may test this out soon for one of my sites. Thanks!

---
Gadgets Wanted - Geeks Want Gadgets
DocForge - News, articles, and links for software developers

Looks great

_-dave-_ - February 26, 2006 - 11:15

Very nice peice of work however I cannot for the life of me work out how to add multi-criteria voting - any suggestions?

Thanks
Dave

Multi-criteria

jl79 - February 26, 2006 - 16:38

Hi Dave,

Thanks for the compliment.

For multi-criteria voting, look for VOTINGAPI_COMMENT_TAG_TAG1 and VOTINGAPI_COMMENT_TAG_TAG2 - these are used in the comments and provide 2 criteria. I left single criteria on nodes (with a default tag), and created 2-criteria voting on comments (using VOTINGAPI_COMMENT_TAG_TAG1 and VOTINGAPI_COMMENT_TAG_TAG2 as the tags).

I thought this would provide an example for using different criteria on different elements, but do see how it could be a bit confusing this way.

Hope that helps.

Thanks

_-dave-_ - February 26, 2006 - 18:38

Thats great - I am new to this php/drupal game but that sould give me some focus...

Multi-Criteria Voting

mrpattoo - June 28, 2006 - 20:35

For fear of sounding foolish, how would you provide multi-criteria (say 3 tags) for node voting.

I too like the MediumVote module.

OOPs

mrpattoo - June 29, 2006 - 03:49

I downloaded the cvs version. It is great. Does exactly what I hoped for. I guess I did end up looking foolish.

Anyway, superb module!

.

roseline43 - February 7, 2007 - 20:34

.

 
 

Drupal is a registered trademark of Dries Buytaert.