Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comments
Comment #1
kmillecam CreditAttribution: kmillecam commentedHi 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
Comment #2
2c CreditAttribution: 2c commentedI'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
Comment #3
kmillecam CreditAttribution: kmillecam commentedHere'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
Comment #4
kmillecam CreditAttribution: kmillecam commented