Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 1999
Posts: 3,039
Guru
Guru
Offline
Joined: May 1999
Posts: 3,039
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.
Attachments
110647-maxonline.txt (0 Bytes, 86 downloads)

Last edited by Scream; 03/23/2004 10:50 PM.
Sponsored Links
Entire Thread
Subject Posted By Posted
Beta-[6.2-6.3-6.4] MaxOnline 1.2 Rick 03/23/2004 11:43 PM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 JoshPet 03/23/2004 11:49 PM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Slurpee 03/23/2004 11:52 PM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 slayer60 03/24/2004 12:02 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 ericgtr 03/24/2004 12:03 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Rick 03/24/2004 12:08 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Rick 03/24/2004 12:09 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Rick 03/24/2004 12:10 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 ericgtr 03/24/2004 12:16 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 slayer60 03/24/2004 12:35 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Rick 03/24/2004 12:47 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Slurpee 03/24/2004 2:03 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Rick 03/24/2004 2:25 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Rick 03/24/2004 2:44 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Slurpee 03/24/2004 3:27 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Rick 03/24/2004 3:44 AM
Re: Beta-[6.2-6.3-6.4] MaxOnline 1.0 Slurpee 03/24/2004 6:34 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Gizmo
Gizmo
Portland, OR, USA
Posts: 5,833
Joined: January 2000
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)