Finished-[6.2-6.3] Registration Off 1.0.0 - 07/31/2003 2:15 AM
Mod Name / Version: Registration Off 1.0.0
Description: Adds a configuration parameter for turning off new user registration.
Working Under: UBB.Threads 6.2-6.3
Mod Status: Finished
Any pre-requisites: none
Author(s): Dave_L
Date: 07/30/03
Credits:
Files Altered: newuser.php
New Files:
Database Altered: no
Info/Instructions:
This probably works for 6.0-6.1 as well as 6.2-6.3, but that's not verified.
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.
Description: Adds a configuration parameter for turning off new user registration.
Working Under: UBB.Threads 6.2-6.3
Mod Status: Finished
Any pre-requisites: none
Author(s): Dave_L
Date: 07/30/03
Credits:
Files Altered: newuser.php
New Files:
Database Altered: no
Info/Instructions:
This probably works for 6.0-6.1 as well as 6.2-6.3, but that's not verified.
Code
In newuser.php, find:<br />---------------------<br /><br />// ------------------------------------------------------<br />// If we are checking ages, the we need to do this first<br /> if ( ($config['checkage']) && ($p != "y") ) {
Code
Insert before:<br />--------------<br /><br />// Added config option to disable new user registration.<br /> if ($config['registration_off']) {<br /> $html -> not_right("We are not accepting new user registrations at this time. Please try again later.",$Cat);<br /> }
Code
Usage:<br />------<br /><br />To turn off registration, add to the "extra variables" box in the config settings:<br /><br />$config['registration_off'] = 1;<br /><br />To re-enable registration, either remove that from the extra variables box, or change it to:<br /><br />$config['registration_off'] = 0;
Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.
Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.