Tutorial  Force referral at registration
It is possible to request a referral within the registration page for new users. However, it isn't possible to require or force the referral in order...

It is possible to request a referral within the registration page for new users. However, it isn't possible to require or force the referral in order to register.


Attached is a Hooks file, once you import the attached file to the Hooks plugin system you will be able to:
  • Require new users to fill the referral field within the registration page.

If you want to add multi language support for the error message, just add the force_referral_empty language key to your language file, for instance adding the following to the global.lang.php file should work:
$l['force_referral_empty'] = "A referrer is required to register, please fill the referral field.";

If you don't want to use multi language support, you can simply edit the hook after importing it in order to edit the error message.
This post was last modified: 15 Aug, 2021, 10:40 pm by Omar G.. Edited 1 time in total.
Files

You need to rate this thread in order to view hidden content.

There are currently no posts to display. Be the first one to leave a reply.

Current time: 27 Sep, 2021, 6:44 am

This forum uses Lukasz Tkacz MyBB addons.