Gift Site User Points

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

I am working on a gift giving site. I wanted to use user points to negotiate the transfer of user points from one member to another member.
Eg.
Bill wants a pony. (worth 500 points).
Jenny wants Bill to have a pony (click on a button and Bill get 5 points towards his pony deducted from Jenny's balance).

Is there a module or a recipe that exists that allows this to happen? I know how to build something like this and tie it into the Userpoints API, but I would rather not re-invent the wheel, if I could.

Thanks in advance!

Comments

You could create a node type

fehin's picture

You could create a node type for this. Use entity reference field for the recipient and an integer field for the amount to send value. Then create a rule that reacts on node being saved and grant point to the user in the reference field based on the value in the integer field. Add another action to remove same amount of points from node author. I used the patch here http://drupal.org/node/1109992 to check if user has enough points.

If you want the recipient and point value to be prepopulated, you could use views to create the button link and prepopulate it with Bill and the point value.

Good luck!

There is a module

socialnicheguru's picture

There is a module http://drupal.org/nodegift

User Points

Group organizers

Group notifications

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