Userpoints Monthly

Events happening in the community are now at Drupal community events on www.drupal.org.
techypaul's picture

Hi,

I am hoping someone with user points experience could tell me if I am able to do this...

I want my users to write blogs etc and get points to donate to one of three charities. They will select the percentages (on their profile) and at the end of each month their total monthly points will be divided as they wished between the charities. Every users points for each charity will be added together and we will then take those points and work out what money goes where (advertising revenue/total points = point value).

Is this possible? Can I have a running total of points and also a monthly points level which is reset each month (kept historically for at least one month)?

Thanks,
Paul.

Comments

userpoints_txn table has it all

kbahey's picture

The userpoints_txn table has all the info you need. You can query it based on each uid, for the sum of the points gained/lost for a time period and that is the monthly balance per user.

So you need to write a custom module that queries that table.

Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.

Drupal performance tuning, development, customization and consulting: 2bits.com, Inc..
Personal blog: Baheyeldin.com.

User Points

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: