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 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.
Edited 15 Aug, 2021, 10:40 pm by Omar G..
Files

You do not have permission to download files.

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

« see more

New thread Omar G. 3 Apr, 2025, 6:26 am

Plugin Releases Plugin Contract Thread

New thread Omar G. 3 Apr, 2025, 6:02 am

Plugin Releases Plugin Extra Forum Permissions

New reply Omar G. 3 Apr, 2025, 4:34 am

Plugin Releases Plugin Forum Cleaner

New reply Omar G. 3 Apr, 2025, 3:59 am

Plugin Releases Plugin Lock Content

New thread Omar G. 3 Apr, 2025, 3:57 am

Plugin Releases Plugin Forum Cleaner

New thread Omar G. 3 Apr, 2025, 3:35 am

Plugin Releases Plugin Lock Content

New thread Omar G. 3 Apr, 2025, 2:16 am

Plugin Releases Paid Plugin Moderator Quick Buttons

New thread Omar G. 29 Mar, 2025, 1:44 am

Plugin Releases Paid Plugin Awards Rules

New thread Omar G. 27 Mar, 2025, 5:53 pm

Plugin Releases Plugin My2FA

New reply Omar G. 23 Mar, 2025, 10:57 am

Plugin Releases Plugin Awards



Current time: 17 Apr, 2025 11:29 am