I think this is simple enough to bring to 7. I'm working on it right now, brb with a patch.

Comments

diwant’s picture

Status: Active » Needs review
StatusFileSize
new875 bytes

Patch'd. I ran this patch from the root of userpoints_contrib, but it only makes changes to the contained userpoints_reset module.

diwant’s picture

Status: Needs review » Needs work

I'm trigger happy, forgot to test it. Stand by.

diwant’s picture

Status: Needs work » Needs review
StatusFileSize
new3 KB

Ok now try it.

druppiedesign’s picture

Issue summary: View changes

Works perfect tnx

jim22’s picture

I can't get this working.

I downloaded:

  1. the patch (https://www.drupal.org/node/1842102#comment-6737872)
  2. and the latest User Points Contributed 7.x-1.x-dev

I patched the userpoints_reset module (which converts it to D7), enabled it, and nothing. It doesn't enable any admin pages, permissions, etc.

Any advice would be greatly appreciated.

Alternatively, I've built a Rules component to use with VBO which is trying to accomplish the same thing. It finds the current user's point total, creates a negative variable of that integer, which then creates a new userpoints transaction with that negative integer that zero-out that userpoint total. However, it's only working when I have selected the "All Points" taxonomy category. For some reason, it doesn't work with any other category. And I'm not able to reset all categories at once that I can find. I've even tried making the transaction "Category" an input on the VBO form.