I am looking for a way to display userpoints from Monday at noon to the next Monday at noon. Userpionts Top Contributors does this, however I'm looking for the points to "reset" every Monday at noon. The rolling total of Top Contributors I think is confusing my users. We are giving away free merchandise to the person with the most points every week, so resetting to zero after the contest ends is vital. I have a few ideas on how it could be achieved, but I don't know HOW to make it happen.
Here are my thoughts;
1. I've created a "weekly points" vocabulary that I could assign all the points to. Is it possible to move those points to default after the contest period.
2. Create a view that shows strictly Monday through Monday.
I need the points to stay because we have other free items we give away at certain levels, so I couldn't just reset them every week completely.
Thanks
Comments
Comment #1
wthomas commentedHas this been sorted out. I need to do the same thing.
Comment #2
amirhosseinR commented+1 subscribe
Comment #3
queryblitz commentedNot sure yet how to reset weekly, but to have points automatically roll into another category, you can use Rules.
Create two points categories (weekly, and default). Set up a rule with the Rules module that is triggered when a user is granted points. Add a condition that checks the points category (making sure it only fires when points are from category 1), and for the transaction amount (make sure it's more than or equal to 1), and have it grant UserPoints in the second category. For the amount, put this:
echo $userpoints_transaction['points'];I doubt that helps because now your stuck with both categories, but if you can figure out how to delete the weekly category, then you've got it.
edit: Check this out for resetting... http://drupal.org/node/549640
What I'm thinking is you can check the current points in a certain category and grant an opposite amount so it'll zero out.
Comment #4
manuel.adanClosing this as outdated, 6.x version is no longer maintained.