The automatic system is currently unavailable.

If there is something some payment pending for you please let me know. I'm reading unread PM, emails, and messages on various platforms as fast as possible but it is possible I missed a message from you if there was any.

Send me a message on Discord Omar G.#6117 and a PM over at the MyBB.com community so I don't miss your message.

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..
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 Nov, 2022, 5:52 pm

This forum uses Lukasz Tkacz MyBB addons.