Hi,
great module, very useful in a voting related community site.
I'm building a site drupal based like this that wants reward authors of best content (fivestar rating + userpoint).
I found in "userpoints integration with votingapi module" issue (http://drupal.org/node/197991) the Userpoints_Fivestar module that's just what i need to complete voting system on my site (youdemocracy.org), but once installed the module i can't use fivestar (when i click on a star to rate it write "not vote yet").
Once activated module and grant access, i setup the author tab above fivestar tab in content type administration and after that i test rating system, but it won't works and i can't rate anything.
I attach my modules conf, access and fivestar's tab in admin content type.
Thank you in advance.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kbahey’s picture

Project: User Points » User Points Voting API
Version: 5.x-3.4 » 5.x-1.0
Component: Code: userpoints API » Code
skyweb’s picture

FileSize
27.81 KB

Thank's for your help.
I've already installed this module (it's in User Points Contributed modules).
I mean content author earns userpoints because a user votes his content with fivestar rating, like the following scenario:
a) User 1 creates Story 1 and earns some points about it, e.g. 5 points.
b) User 2 votes for Story 1 using Voting API and Fivestar UI, e.g. gives 5 stars for Story 1.
c) User 2 earns some points for voting Story 1, e.g. 5 points.
d) User 1 earns some points too because his Story was voted by another user, e.g. 5 points (1 userpoint=1 star).
e) In ranking block User 1 has 10 userpoints and User 2 has 5 userpoints.
So my community site wants reward users that create good contents (rated by others), for ranking list "best authors" and "best contents".
In issue (http://drupal.org/node/197991) on #23 user "mpaler" attached a great module that is the best solution for a voting related community site drupal based, in addition fivestar and userpoint modules.
I attach the great addition in Fivestar UI admin setting content (userpoints for author).
My problem is that once installed the "Userpoints_Fivestar" module, all rating system won't works and i can't rate anything.
How i can solve this problem?
Thanks.

kmillecam’s picture

Status: Active » Closed (fixed)

Hi skyweb,

The functionality you need it probably beyond the scope of this userpoints_votingapi module but user mpaler did create a module that does what you're describing. I don't know if he's published an official release but he did post his code here: http://drupal.org/node/197991#comment-728760

Hope this helps.
Kevin

skyweb’s picture

Thanks Kevin,

Now it works! I've only need Devel module and the changes that you advise in http://drupal.org/node/197991#comment-728922
The author earns userpoints if a user votes his content by Fivestar module.
I hope user mpaler will publish an official release of his "userpoints_fivestar" module: very useful in drupal based comunity.

sammos’s picture

Assigned: skyweb » Unassigned
Status: Closed (fixed) » Active

Hi I'm trying to do the same exact thing as skyweb - that is, award points to people who vote but ALSO award points to the author of a post that was voted upon.

The code at http://drupal.org/node/197991#comment-728760 does provide this functionality but when I install it, the fivestar widget stops working (people can't vote anymore).

Right now I have the following modules installed:
userpoints 5.x-3.7
userpoints contributed modules 5.x-3.0
userpoints voting api 5.x-2.2
User Points Fivestar Integration - the one at http://drupal.org/node/197991#comment-728760

Help!
Any help much appreciated. Rightnow, as long as this last module is turned off, everything works great and the feature I need to add is the ability to award points to the author of a post that was voted upon.

Prodigy’s picture

Any updates on this? This seems pretty cool!

Virr’s picture

My module.
http://dvrock.ru/userpoints_votingapi4author.zip

Installation: Just activate it.

Made from userpoints_votingapi.

kbahey’s picture

@Virr

Please work with kmillicam to include that module with the userpoints_votingapi, so it is part of the download.

Anonymous’s picture

srinikasturi’s picture

Category: support » bug

I installed this on D5 and got the following error on clicking the admin link:
Fatal error: Cannot redeclare userpoints_votingapi_install() (previously declared in /home/yoursite/www/dev/sites/all/modules/userpoints_votingapi/userpoints_votingapi.install:8) in /home/yoursite/www/dev/sites/all/modules/userpoints_votingapi4author/userpoints_votingapi4author.install on line 10

Please can you help?

Thanks
Srini

jazzdrive3’s picture

Looks like it uses the same name at the userpoints_votingapi. Does it replace it, or add to it? Looks like you can't use both at the same time.

Virr’s picture

Status: Active » Fixed

Upgraded version (fixed problem in #10 comment):
http://dvrock.ru/userpoints_votingapi4author.zip

kbahey’s picture

@Virr

Please contribute the code to drupal.org. Apply for a CVS account, create a project and commit the code to CVS.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

batje’s picture

Bump. Post #13 is right: this is a very nice feature and deserves its own module.

RikiB’s picture

will #12 work in Drupal 6? This really should be a supported module! :)

RikiB’s picture

Looks like this doesnt work in Drupal 6 :(