I am wondering is it possible to have it where a link that could be posted on an user's own personal website and when someone that is a user clicked on it they had to input their username and it would credit the user who clicked the link a specified number of points. Which would in turn subtract from the user's points that owned the website where the link was located.

It would be to provide users a way of giving user/customer loyalty, sort of you, if you browse through my site and you find a loyalty link, I will give you ten points. But this transaction would have to be done behind the scene and would not require any approval from the user giving away the points. But once a link was clicked it would expire and no longer be valid.

Let me know if it would be possible or if there was already modules available that would make that possible. By the way, this would be for 4.7.X

Comments

jredding’s picture

Project: User Points » User Points Contributed modules
Version: 4.7.x-1.x-dev » 5.x-2.0
Component: Code: userpoints_basic » Miscellaneous

I'm moving this over to userpoints_contrib as its best suited over here. To the best of my knowledge this has not been implemented although there was some discussion about doing coupons. Ex. come to my site and enter a special code, the code then grants you (or someone else) x points, the coupon is then expired and can't be used again).

I haven't seen code to do this so the short answer to your request is "I don't think it exists, sorry".
The longer answer is that it could definitely be done on 4.7 or 5 without much work.

Crediting the points is the easy part using the userpoints_userpointapi. Other than that you need to create a module that creates these links and tracks their use, that's the longer part. Perhaps this could be wrapped in with the referral module somehow.. dunno.

englandd’s picture

Title: Odd Request » Add on to the post titled Odd Request
Project: User Points Contributed modules » User Points
Version: 5.x-2.0 » 4.7.x-1.x-dev
Component: Miscellaneous » Code: userpoints_basic

As far as the link is concerned, you would need to be able to produce more than one link. Something like a coupon in the ecommerce module, so the links would end up being something like this, http://www.yourweb.com/user1/xxxx . The xxxx would be randomly generated numbers for example.

jredding’s picture

Title: Add on to the post titled Odd Request » An Odd Request
Project: User Points » User Points Contributed modules
Version: 4.7.x-1.x-dev » 5.x-2.0
Component: Code: userpoints_basic » Miscellaneous

changing back... refer to my previous post.

If you have some dev skills I'd highly recommend taking a stab at it.

englandd’s picture

I am little less than a novice at developing modules, I have figured out how to go into them and modifiy them to meet my needs. Right now I think this one is beyond my skill set, I guess I can start to try to put something together, but if anyone out there that could be able to assist it would be appreciated. My idea is that someone could utilize my site to help promote their site and in turn provide other users a reward of points to visit his/her site.

Thank you very much for your insight and I will take a stab at it.

jredding’s picture

I'd check out the affiliate module
http://drupal.org/project/affiliate

seems close to what you are doing.. maybe you could tie in somehow.

Good Luck!

berdir’s picture

Sorry for pinging the participants.

Now that Drupal 7 is out, there is no support for Drupal 5 and the
corresponding modules anymore. Therefore, I'm closing all old issues
which are still open.

I suggest you upgrade to Drupal 6 or 7 and figure out if you're feature
is still needed or the bug still exists and open a new issue in that
case.

berdir’s picture

Status: Active » Closed (won't fix)