seems all works well... when users send invitations they are awarded the points I assigned...

then the invitations appear in this user's invitation list... once the one that is invited joins... this is also registered in this list... so this works well to.

but the points are not assigned for the registration.

when will this be fixed ?

CommentFileSizeAuthor
#3 userpointsscrshot.jpg19.01 KBHansR

Comments

divagater’s picture

I resolved this by editing userpoints_invite.module and changing the 3 places where you see this:

if (!$_COOKIE['upi']) {
  userpoints_userpointsapi($params);
}

To just this:

userpoints_userpointsapi($params);

Basically the code is saying that is you have this cookie dont set the points. I happened to always have the cookie. Haven't found any problems with the updated code yet.

Cheers,
Billy

kbahey’s picture

Status: Active » Needs review

HansR

Can you implement the change suggested and see if it fixes your problem?

If it does, then I will make it a permanent fix in the code.

HansR’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new19.01 KB

Hi...

first comment : you mention 3 places... hehehe... could only find 2 places to change it. So I did.

How my system is set up:

Reward 50 points for every invite you send.
Reward 25 points to the one that is invited and accepts the invitation.
Reward 500 points to the inviter when the invitation is succesful and results in a registration.

What worked before: registering the invitation. the other 2 didn't work.
Now after these 2 code changes, I'm happy to let you know that everything (the 3 rewards) are registered, can be moderated, approved and then show up in the accounts of the respective members.

Added the screenshot for your reference.

So... THANKS A LOT !

kbahey’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Thanks. Should be in the tarball in about 9 hours from now.

HansR’s picture

thanks a lot

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.