Userpoints to the author of a node that is voted

skyweb - April 1, 2008 - 10:37
Project:User Points Voting API
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

AttachmentSize
modules.gif156.3 KB
Userpoints_Fivestar.gif27.81 KB
access.gif54.62 KB

#1

kbahey - April 1, 2008 - 16:16
Project:User Points» User Points Voting API
Version:5.x-3.4» 5.x-1.0
Component:Code: userpoints API» Code

Try using this module instead http://drupal.org/project/userpoints_votingapi

#2

skyweb - April 2, 2008 - 09:50

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.

AttachmentSize
Userpoints_for_author.gif 27.81 KB

#3

kmillecam - April 6, 2008 - 21:20
Status:active» closed

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

#4

skyweb - April 24, 2008 - 07:34

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.

#5

sammos - July 24, 2008 - 18:49
Assigned to:skyweb» Anonymous
Status:closed» 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.

#6

Prodigy - August 9, 2008 - 21:48

Any updates on this? This seems pretty cool!

#7

Virr - October 7, 2008 - 07:16

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

Installation: Just activate it.

Made from userpoints_votingapi.

#8

kbahey - October 7, 2008 - 14:59

@Virr

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

#9

kristyb2008 - October 26, 2008 - 17:25

What about "http://dvrock.ru/userpoints_votingapi4author.zip" for D6?

#10

srinikasturi - November 17, 2008 - 11:07
Category:support request» bug report

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

#11

jazzdrive3 - December 3, 2008 - 22:27

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.

#12

Virr - January 7, 2009 - 14:49
Status:active» fixed

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

#13

kbahey - January 7, 2009 - 15:54

@Virr

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

#14

System Message - January 21, 2009 - 16:00
Status:fixed» closed

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

#15

batje - February 2, 2009 - 13:32

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

#16

RikiB - September 18, 2009 - 01:47

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

#17

RikiB - September 18, 2009 - 01:51

Looks like this doesnt work in Drupal 6 :(

 
 

Drupal is a registered trademark of Dries Buytaert.