I didn't install the userpoints_cap module and the patch from #1133828: Drupal 7 port (userpoints_cap). But it didn't sound like a daily limit is part of that module?
I need to enforce a limit of the total points that a user can earn in a single day.
Could I do that with rules or should I modify userpoints_cap?

thanks

Comments

rudyard55’s picture

I need to do the same thing. Did you figure out how to do it?

mototribe’s picture

nope

rjbrown99’s picture

I think it would require enhancing the module. Here are a few thoughts/requirements.

  • As an admin, I want the UI to allow me to specify time period, the hour it is reset each day, and max points earned. I'd like it to be specified in hours, and defaulting to 24 hours, 0 points (off), and a reset at 12:00 midnight each day.
  • As an admin, I want this feature disabled by default until enabled. It could be enabled by changing max points earned from "0" to a positive number, or it could be a checkbox/variable in the UI.
  • As an admin, I'd like it to correct for timezone. So if you set midnight to reset points, it would reset at midnight based on the user's timezone and not the site's timezone.
  • As a developer, the database would have to keep a running total of points, and reset it back to 0 at the specified time.

Any additional thoughts or requirements?

jaffaralia’s picture

This requirement has been achieved by this module userpoints limit