User points works for everything else, but when I send an invite, my user points never go up. I have it set to give 10 user points for every invite and 50 when they join, and I have installed the invite.module. I click invite a friend or collegue and send it out, then register with the same address from the link they gave, and my userpoints never went up. Is there a bug?

Comments

freehunter’s picture

bumping this

kmillecam’s picture

I'm having a similar problem, freehunter.
I'll post this as an issue to the invite folk.

http://www.webwiseone.com
It's all about community.

https://bkjdigital.com
We make magic.

prateek’s picture

I am also having same issue. Earlier it used to work.
Once I reset the userpoints for all users,
it just doesn;t work.....

kmillecam’s picture

I've created an issue in the Invite area for this bug.

http://drupal.org/node/84810

Kevin

http://www.webwiseone.com
It's all about community.

https://bkjdigital.com
We make magic.

mediafrenzy’s picture

The author of the Userpoints module has also posted an issue in the Invite module issues section:

http://drupal.org/node/85077

ericwagner’s picture

This userpoints.module patch fixes part of the problem:

--- userpoints.module.orig 2006-10-21 12:39:40.000000000 -0700
+++ userpoints.module 2006-10-21 14:29:09.000000000 -0700
@@ -394,16 +394,16 @@ function userpoints_nodevote($nid) {
_userpoints_update_points($points, $user->uid, 'nodevote');
}

-function userpoints_invite($uid, $op) {
+function userpoints_invite($op, $args) {
switch($op) {
case 'invite':
$points = variable_get(USERPOINTS_INVITE_INVITE, '1');
break;
- case 'register':
+ case 'escalate':
$points = variable_get(USERPOINTS_INVITE_REGISTER, '1');
break;
}
- _userpoints_update_points($points, $uid, $op);
+ _userpoints_update_points($points, $args['inviter']->uid, $op);
}

function userpoints_karma_rate($rater_add_points, $rated_add_points, $rated_uid) {

Note that the invite case still doesn't work as invite doesn't seem to be invoking it.

More info here: http://drupal.org/node/85077