Extra Voting Forms + Userpoints integration.

phonydream2 - April 19, 2008 - 16:30
Project:User Points Voting API
Version:5.x-1.1
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

I'd appreciate it if somebody could help me figure out how to use the Extra Voting Forms module with Userpoints.

Extra Voting Forms uses the Voting API. Userpoints doesn't use the Voting API, so that's where I figured this module would come in...as a 'bridge' between these two modules.

Unfortunately, when I use the extra voting forms widget to award 'credits' to a user, there is no corresponding increase in userpoints.

I'm pretty stumped as I've followed all the install instructions.

#1

kmillecam - April 20, 2008 - 18:53

Hi phonydream2,

Unfortunately, I'm having a difficult time getting Extra Voting Forms to run in my environment.

It's a complex install for a module ... copy an unsupported version of jquery.js to your /misc directory. Modify -- by hand -- your page.tpl.php file.

I'm getting voting widgets (one at the top of my articles and another, different one, at the bottom) but neither seems to work.

I can tell you that userpoints_votingapi is triggered by two voting_api calls: votingapi_insert() and votingapi_delete(). When a voting module makes one of these calls, userpoints_votingapi steps in and adds (or subtracts) points from a user's user point account.

Kevin

#2

phonydream2 - April 20, 2008 - 20:07

I'm confused! How is the 'votingapi_insert' function called in the first place? It isn't called by either extra voting forms or voting api.

Related to your Ajax issue, have you seen this:

http://drupal.org/node/204379#comment-787323

#3

kmillecam - April 21, 2008 - 02:56

Here's a list of the votingapi hooks: http://drupal.org/node/68877

I (currently) leverage hook_votingapi_insert($vote) and hook_votingapi_delete($vote) in the userpoints_votingapi module.

Kevin

#4

kmillecam - June 9, 2008 - 17:13
Status:active» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.