After installing this module, I had 4 users with points followed by 46 pages of users with zero points. I've modified userpoints.module to only show users who actually have points on this page. Here is my patch.

CommentFileSizeAuthor
userpoints_5.patch1.6 KBjenlampton

Comments

jredding’s picture

Status: Needs review » Needs work

Patch uses a >0 WHERE clause which will ignore users with negative points.

additionally it may be desirable to display users with a zero point balance as these users must have acquired points in the past to be displayed in the list at all. This would be better implemented if there was an option (either in the admin area or on the page itself) to turn on/off the "hiding" of users with zero points.

jredding’s picture

Assigned: jenlampton » jredding

Although patch is incorrect in current state I implemented the "spirit" of the patch by providing an option to "hide" users with zero points (must be exactly zero and not negative to be hidden). This was checked into cvs tag DRUPAL-5--3. no official release yet.

jenlampton’s picture

Great Idea, thanks! :-)

jredding’s picture

Status: Needs work » Closed (fixed)

closing... hope to finish up version 3.x soon. Life is getting in the way.

Ddorda’s picture

Component: Code: userpoints » Code: userpoints API

erm.. the bug still affects, using D6. going to be fixed soon?
Thanks! :)

kbahey’s picture

Try 6.x-1.x-dev. If there is still a problem, open a new issue rather than posting in a closed one.