Gift Site User Points

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by dewolfe001 on May 4, 2013 at 11:10pm

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!

Categories: ,

Comments

You could create a node type

Posted by fehin on May 13, 2013 at 1:21pm

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

Posted by socialnicheguru on January 29, 2015 at 5:43pm

User Points

Group organizers

Group notifications

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

AltStyle によって変換されたページ (->オリジナル) /