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.

CommentFileSizeAuthor
userpoints_fivestar.zip5.22 KBchefarov

Comments

titouille’s picture

Hi,
For info, in the thread you linked I added a new version of userpoints_fivestar for D6 ;-)

Taxoman’s picture

Version: 6.x-1.19 » 7.x-2.x-dev
ericduran’s picture

Status: Active » Closed (won't fix)

This 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.

Taxoman’s picture

Ok, continuing over at the Userpoints module queue:
"Grant points from fivestar vote to node author"
http://drupal.org/node/1142082

chefarov’s picture

Thank 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.