Hi there, I have a website I'm working on.

Anyways, I wish to show all the users, with the corresponding points. This works great, but right now it's only currently showing users with 1 or more points. Why is it not showing zero point users? I have this checked off in the settings, I've ran cron, update what's going on?

Please help. Thanks, Justin

Comments

mile23’s picture

Version: 5.x-3.7 » 6.x-1.x-dev
Component: Other » Code: userpoints API

It seems to be the case that userpoints only 'knows about' users who have had points assigned or removed. In 6.x-1.x-dev, you can add a point to a user then remove the point, and that user will show up in the /userpoints page as having 0 points.

There might be reasonable performance reasons for generating the list this way.

Bilmar’s picture

You can use Views to achieve a list of all users with their corresponding points.
The field for Points will show 0 for users with zero points.

isellakuria’s picture

Isn't there a way to modify this setting in the userpoints module? I see that a variable hs been defined for that in the userpoints.module file: define('USERPOINTS_REPORT_DISPLAYZERO', 'userpoints_report_displayzero');

I guess I could change the code but isn't there a way to change this setting through a menu?

phantom21’s picture

Component: Code: userpoints API » Code: userpoints

Hi Bilmar,
Can you show you setup your view for this?

Thanks.

manuel.adan’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this as outdated, 6.x version is no longer maintained.