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

socki’s picture

Hi..

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

lismail’s picture

Status: Active » Closed (fixed)

Hi,

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