thanks for a great module. I was looking through the Views integration and can't see how to do what I would like: create some time-based views with userpoints integrations.
so for example a View such as "last 30 days' Userpoints" which would show a rolling list of the biggest points earners in the last 30 days". Is that possible?
Comments
Comment #1
kbahey commentedNot at the moment.
Any query on points that has a time/date dimension has to use the userpoints_txn table to do so. Depending on the size of the site, this can pose some scalability issues.
Comment #2
esllou commentedOK, great, no problems. It isn't really that important, just thought it would be a nice thing to add. How about a sql query to find out biggest userpoint earners for last X days? Would that be simple? I could then add that block in my online newsletter.
Comment #3
kbahey commentedYes, you can do that too.
It still has to sift through the userpoints_txn because of the time dimension of the query.
If you do that, then cache the results and refresh them once an hour or once a day so it does not add a lot of load on the database.
Comment #4
kmillecam commentedYou may want to check out the User Points Top Contributors module. It can be configured to generate lists of points earned in a designated period.
It creates its own table (using data from userpoints_txn) that gets refreshed at cron time.
Comment #5
jredding commentedTop contributors module seems to fix this issue so I'm closing it.