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 reply Omar G. 3 Jul, 2025, 3:12 am

Plugin Releases Plugin Feedback

New thread Omar G. 3 Jul, 2025, 2:55 am

Plugin Releases Plugin Feedback

New reply Omar G. 2 Jul, 2025, 1:13 am

Plugin Releases Plugin Lock Content

New reply Omar G. 30 Jun, 2025, 6:12 am

Plugin Releases Plugin Extra Forum Permissions

New reply Omar G. 30 Jun, 2025, 4:21 am

Plugin Releases Plugin Awards

New reply Omar G. 18 Jun, 2025, 11:05 am

Plugin Releases Plugin Awards

New thread Omar G. 23 Apr, 2025, 4:03 am

Plugin Releases Plugin Online Users List

New reply Omar G. 22 Apr, 2025, 7:35 pm

Plugin Releases Paid Plugin Discord Connect

New thread Omar G. 22 Apr, 2025, 7:35 pm

Plugin Releases Paid Plugin Discord Connect

New reply Omar G. 21 Apr, 2025, 5:36 am

Plugin Releases Plugin Custom Rates



Current time: 5 Jul, 2025 5:19 pm