[Elgg 1.8-1.12 & 2.X - 4.X: Elggx Userpoints] v1.10.15

Release Notes

  • Fixed: correctly substract userpoints on deletion of group content of a group member by the group admin who isn't a site admin.
  • I installed elggx_userpoints in elgg 1.11.4 (development site), then add some points for some users.The points added successfully

    After I leave the website for some days, then I back, I see that all points are gone. So, no one has point there.

    Anyone face similar issue? and, how to fix that?

  • I'm not aware of any bug that would cause such an issue.

    The only way users can lose all points is either due to resetting their points (either for a single user or all users) or if the expirationdate plugin is installed and the userpoints plugin is configured to expire userpoints after a specific interval automatically. Are you sure that none of these two possibilities can explain your problem?

    The settings page of the userpoints plugin shows a list of all actions resulting in users getting points. The list also includes assinging points manually. Does the listing still show the assigning of the userpoints for the corresponding users or is the list empty? Can you reproduce the issue, i.e. repeat adding points to a users and they vanish again?

  • Thank for the answer.

    After did some tests, I found that this issue comes when I fill wrong username in add-point admin page (ie. https://mydomain.com/admin/administer_utilities/elggx_userpoints?tab=add)

    After check code repository, in https://github.com/iionly/elggx_userpoints/blob/master/actions/add.php, it is : $user = get_user_by_username($params['username']);
    userpoints_add($user->guid, $params['points'], $params['description'], 'admin');

    Maybe, we just need to modify to 
    if ($user = get_user_by_username($params['username'])) ... else ...


  • @IvyTies Thanks for investigating why it failed for you and reporting back the reason. Yes, I think your suggestion should work and I'll add the fix in the next release (also with displaying an error message if a non-existing username has been entered).


  • Category: Misc
  • License: GNU General Public License (GPL) version 2
  • Updated: 2023-9-16
  • Downloads: 16702
  • Recommendations: 47

Other Projects

View iionly's plugins