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. 31 Jul, 2025, 12:23 am

Plugin Releases Plugin Announcement Bars

New thread Omar G. 31 Jul, 2025, 12:22 am

Plugin Releases Plugin Announcement Bars

New reply Omar G. 19 Jul, 2025, 2:37 pm

Plugin Releases Plugin Advanced Post Edit

New thread Omar G. 19 Jul, 2025, 2:29 pm

Plugin Releases Plugin Advanced Post Edit

New reply Omar G. 15 Jul, 2025, 7:50 am

Plugin Releases Paid Plugin Awards Rules

New reply Omar G. 15 Jul, 2025, 2:46 am

Plugin Releases Plugin Awards

New thread Omar G. 13 Jul, 2025, 12:28 am

Plugin Releases Plugin Theme File Templates

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



Current time: 31 Aug, 2025 11:36 am