Beta-[6.2-6.3-6.4] MaxOnline 1.2 - 03/23/2004 11:43 PM
Mod Name / Version: MaxOnline 1.2
Description: This limits the maximum number of users that can be on your forum at any given time.
Working Under: UBB.Threads 6.2-6.3-6.4
Mod Status: Beta
Any pre-requisites:
Author(s): Scream
Date: 03/23/04
Credits:
Files Altered: ubbt.inc.php
New Files:
Database Altered:
Info/Instructions: Just add this bit of code into the authenticate function in the ubbt.inc.php file. Change the $maxonline variable to the maximum number of users that can be online for your site.
Change $adminuser to your admin user number to bypass this check for that user so they can always login. In order for this bypass to work, when logging in you must choose the "Remember me" box.
Change $goodscripts to include any scripts that you want to bypass this check, seperate them with a |.
Once the maximum threshold has been reached users will get an error stating that there are too many users online at that time, and to please try back later. Once a user is logged in they are excluded from this check, so the error message will only be given to guests that haven't logged in yet.
Note, that this does add one extra query per page for any users that aren't currently logged in.
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: This limits the maximum number of users that can be on your forum at any given time.
Working Under: UBB.Threads 6.2-6.3-6.4
Mod Status: Beta
Any pre-requisites:
Author(s): Scream
Date: 03/23/04
Credits:
Files Altered: ubbt.inc.php
New Files:
Database Altered:
Info/Instructions: Just add this bit of code into the authenticate function in the ubbt.inc.php file. Change the $maxonline variable to the maximum number of users that can be online for your site.
Change $adminuser to your admin user number to bypass this check for that user so they can always login. In order for this bypass to work, when logging in you must choose the "Remember me" box.
Change $goodscripts to include any scripts that you want to bypass this check, seperate them with a |.
Once the maximum threshold has been reached users will get an error stating that there are too many users online at that time, and to please try back later. Once a user is logged in they are excluded from this check, so the error message will only be given to guests that haven't logged in yet.
Note, that this does add one extra query per page for any users that aren't currently logged in.
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.