Closed (fixed)
Project:
Kudos
Version:
5.x-1.7
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
12 Nov 2008 at 21:37 UTC
Updated:
13 Nov 2008 at 07:36 UTC
Hi,
I am thinking about adding User Karma (by utilizing Voting API) feature to Kudos. I will use votingapi_set_vote($type, $cid, $vote, $uid) & votingapi_unset_vote($type, $cid, $uid) to set / un-set the karma value at Voting API table.
I need suggestion. Where is the best location to put / hook these functions into Kudos code? After or before giving kudos?
Thank you in advance.
Comments
Comment #1
socki commentedHi..
It doesn't seem that you would need to add anything into the kudos module itself. You can use one of the sub-modules that come packaged along with the kudos module (kudos_userpoints for instance) as an example.
I believe that the only thing you would need to do is to implement hook_kudosapi().
Let me know if you have any issues with this.
-T
Comment #2
lismail commentedHi,
Yes, I agree with you. I think kudos_userpoints module is a good 'template' for this purpose. I close this issue, and will let you know if I need more help :)
PS
Btw, can you please look into my other issue (http://drupal.org/node/333546)?
Thank you for such great module.
Lucky