Download & Extend

How to allow only new user registration from referral links?

Project:User Referral
Version:6.x-1.x-dev
Component:Code: other
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

Hello, I have already a good amount of users and I'd like to install a new policy, that is that from now on new users will be accepted only if they sign up from a referral link.
In your opinion, how can it be done?

Comments

#1

Status:active» closed (won't fix)

This requires some custom code.

For example a hook_form_alter() that disables the "Create new account" button when the $_SERVER['referer'] dopes not contain a valid referral link that maps to a valid user on the system.

#2

Thank you for your suggestion about how to go about implementing such a solution and for confirming that there isn't yet an easy to do way to do it, like a module someone else already made because he wanted the exact same functionnality.

Cheers,
James

#3

I would also like to know this....

Thanks!