Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Abandoned Jerks Posted June 29, 2020 Posted June 29, 2020 (edited) In IPB3, I used a hook called "(DP34) Referrals System", which was great. I'd like similar functionality in IPB 4.5. Seems like 4.5 does include a referral system, but it would need to be modified in a couple ways: 1) The referral links would need to have a random value (currently referral links appear to send a key=value of _rid=[uid] where uid is the user id of the person generating the referral link), I would like it to be something like _rid=[random string] 2) The registration system would need to be modified to only permit users to register that had valid referral codes, and keep track of when a code was used and expire it, so it couldn't be used multiple times. I'm willing to pay for this to be done, and if you want to sell the hook or give it away to others after the fact, that's fine with me. Send me a PM if you'd like to talk more! e: Now that I think about it a bit more, I don't think the referral code needs to be random, it just needs to be long enough and user-specific, so instead of the uid it would be a hash of something unique. I was initially thinking the username but that can changed. Hashing the uid is probably not going to result in enough entropy. Either way, doesn't have to be "random", or expiring, but must be unique. Edited June 30, 2020 by Michael Warren
DawPi Posted June 30, 2020 Posted June 30, 2020 5 hours ago, Michael Warren said: In IPB3, I used a hook called "(DP34) Referrals System", which was great. Hmm.. 5 hours ago, Michael Warren said: 1) The referral links would need to have a random value (currently referral links appear to send a key=value of _rid=[uid] where uid is the user id of the person generating the referral link), I would like it to be something like _rid=[random string] 5 hours ago, Michael Warren said: 2) The registration system would need to be modified to only permit users to register that had valid referral codes, and keep track of when a code was used and expire it, so it couldn't be used multiple times. Type: Force Expire: xtech 1
Abandoned Jerks Posted June 30, 2020 Author Posted June 30, 2020 Aha, interesting. Well, it's not quite the 4.5 modification I was looking for but it looks like the spiritual successor to the IPB3 version. :) I will give it a whirl. Thanks for the link! DawPi 1
Recommended Posts