The following warnings occurred:
Warning [2] Undefined array key "pointsview" - Line: 1442 - File: inc/plugins/newpoints/core/hooks.php PHP 8.2.11 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/newpoints/core/hooks.php 1442 errorHandler->error_callback
/inc/class_plugins.php 142 newpoints_blockview
/showthread.php 471 pluginSystem->run_hooks

This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

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:
PHP Code:
$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.