How to allow only new user registration from referral links?

alliax - September 27, 2009 - 06:39
Project:User Referral
Version:6.x-1.x-dev
Component:Code: other
Category:support request
Priority:normal
Assigned:Unassigned
Status:won't fix
Description

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?

#1

kbahey - September 27, 2009 - 14:42
Status:active» 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

alliax - September 27, 2009 - 14:57

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

 
 

Drupal is a registered trademark of Dries Buytaert.