Scenario to reproduce:
A invites B [First Bug: A's Userpoint doesn't go up]
B accepts invite [Second Bug: A's userpoint doesn't go up, instead admin's userpoint goes up!]
[Third Bug: When B joins, a message is displayed stating 'Admin's userpoint is now xx'. This should not be shown to B. Cosmetic bug]
I'm using the latest (cvs) Userpoint module.
Am I the only one seeing these errors? Can anyone else confirm these serious errors?
Thanks,
Zack
Comments
Comment #1
sja1 commentedI am experiencing exactly the same errors in the 4.7 version of the module.
Comment #2
sja1 commentedHere are some of the things I have done to resolve some of these problems:
Userpoints module: made a small change so that when the user getting points isn't the current user, don't show the points awareded message
Invite.module – added 2 lines to create a hook for other modules to react when users send invitations. Made small mod to a translation function to make translation work for help text. Rewrote function _invite_check_invited to add check for already registered users, and to make check for already invited users more efficient. Added translation function for “Expired” text. Added translation function for “User (user@user.com) has joined this site.”
Userpointsinvite.module – As this didn't exist, I wrote it based on the buddylistinvite.module. This module awards points upon sending invitations, and accepting invitations.
I'm currently debugging a couple problems with my modifications, but will try to post some code/patches in the next day or two...
Comment #3
sja1 commentedI have just posted 4 patches to the invite module as 4 separate issues. Two of them resolve the problem you are having with the user points (everything except for the invitee being shown the message that the inviter is awarded points). The two issues containing the patches you need are titled:
1 - Two important bugs preventing code from working properly
2 - Patch to allow userpoints module to award points
Be sure to install the newest version of userpoints, these were tested with userpoints version 1.30.2.13.
Comment #4
Nick Wilson commentedMarked as a minor task. If anyone wants to submit a patch to userpoints/invite, please do.
thanks
Comment #5
AjK commentedI'm fairly sure I fixed up all the module_invoke_all() calls so this should be fixed. Please re-open if there's still a problem.
Comment #6
(not verified) commented