In drupal 5.x it was possible through the module discussed/and/developed here : http://drupal.org/node/197991#comment-728760 (see : comment #23), and attached below, to grant points from fivestar vote to node's author.
I am not familiar with drupal api and I was wondering if it is simple to transfer this module to drupal 6.x, or does this mean rewritting the code? Can anybody help ?
Thank you for your time.
| Comment | File | Size | Author |
|---|---|---|---|
| userpoints_fivestar.zip | 5.22 KB | chefarov |
Comments
Comment #1
titouilleHi,
For info, in the thread you linked I added a new version of userpoints_fivestar for D6 ;-)
Comment #2
Taxoman commentedComment #3
ericduran commentedThis is a very specific use case. I don't see why this needs to be in fivestar.
A better approach would be rules or triggers on when a votingapi vote is saved. Then you can do whatever you want when that vote is case.
Comment #4
Taxoman commentedOk, continuing over at the Userpoints module queue:
"Grant points from fivestar vote to node author"
http://drupal.org/node/1142082
Comment #5
chefarov commentedThank you so much titouille !!
It works fine !
Just a suggestion for future work if you would like.
I think it would be better if the counting depends on average rating and number of votes instead of, granting/substracting points every time a vote is being done.
Anyway, its fine as it is since someone can configure the points so that it adds/subs a small number every time instead of granting a lot of points.
Thanks again.