Forums

Referral registration

fmark 28 Mar, 2017
Hello,

I have a website where I would like to create a registration form with referrals. The goal would be that each user after registration receive a unique id / link with their own referral link to the site. When someone opens the link it shows the website (ideally not the registration form at first but the start page) then when they go to the registration form they will have their referral link/code already filled in (from the link they clicked). Is it possible to do so?

Regards,
Mark
GreyHead 28 Mar, 2017
Hi Mark,

Yes that is possible. In CFv5 you can set a menu item that accepts a variable so you could have a URL like some_domain/refer/xx9999 that would open a form and read and show the referral link value.

Bob
fmark 28 Mar, 2017
Hi Bob,

Thank you very much for your quick reply. Could you show me a detailed guide on this process? From creating a menu that accepts the variable (user ID) to assigning new user id to new members? I know it's a complex question any help would be appreciated🙂

Mark
GreyHead 28 Mar, 2017
Hi Mark,

To assign a User ID you can either use the Joomla! User ID - simple to do but not secure, or generate a unique random ID (I have a custom action for CFv5 that will do that) and use a database table that will let you link up the Joomla User ID and the unique random ID.

Create a form with a readonly input for the UID and a name off say 'uid'; Create a menu item of type ChronoForms and test with a link using the menu name with ?uid=. . . at the end.

That's about all there is.

Bob
This topic is locked and no more replies can be posted.