Add support for userpoints based on share ratio
TwistedLincoln - February 24, 2009 - 05:03
| Project: | BitTorrent |
| Version: | 6.x-9.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed |
Jump to:
Description
I'm sure this is a long way off, but I'd love to see the new Drupal 6 version of this module to integrate with Userpoints. The idea is that you could specify an amount of points to award or subtract based on a user's share ratio.
Example: Users who have a ratio of over a set amount (say 1.0) are awarded a set amount of points (say 100). If they drop below a set amount (say 0.7), they lose a set number of points (say 150).
An ideal setup would allow admins to set all the above values for full control.

#1
How often would these "points" be updated. This needs to be fleshed out a little bit more. I think I get the general gist thought, it sounds like a good idea. I am working a bit of code into the tracker module to load the user information into the object. So you may access / calculate the user's ratio in real-time.
#2
Updating in real time would be awesome, but I imagine that would strain the server more than it would be worth.
If the ability to calculate the ratio at any time is on its way, then I'd probably just update the userpoints for all users whenever cron is run. Basically it would take whatever ratio each user has at the time of cron and post the userpoints accordingly based on that figure.
The system would only be as accurate as how often you set cron to run, but since that's up to the admin it shouldn't matter.
#3
Now that I have the big picture this wouldn't be too difficult to implement. I am up to my eyeballs in getting a stable release out, but this will go on the list of things to be put in shortly thereafter.
#4
#5