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
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

bradfordcp - February 24, 2009 - 05:38

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

TwistedLincoln - February 24, 2009 - 16:17

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

bradfordcp - February 24, 2009 - 16:53

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

overall - July 11, 2009 - 01:29
Status:active» postponed

#5

overall - July 11, 2009 - 01:30
Title:Feature Request: Add support for userpoints based on share ratio» Add support for userpoints based on share ratio
 
 

Drupal is a registered trademark of Dries Buytaert.