PDA

View Full Version : Possible to restrict forum access during heavy traffic?


foopy
07-31-2007, 11:08 PM
Is it possible to restrict forum access by usergroup during server heavy load times? Any help appreciated.

CyberRanger
08-01-2007, 10:32 AM
It would be possible but you'd need to tweak some vb code. If you are running a *nix type server (like Linux), there is an option under vbulletin options -> Server Settings and Optimization Options called *NIX Server Load Limit.

Once you set this, it is evaluated in global.php around line 811.

// check to see if server is too busy. this is checked at the end of session.php
if ($servertoobusy AND !($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) AND THIS_SCRIPT != 'login')
{
$vbulletin->options['useforumjump'] = 0;
eval(standard_error(fetch_error('toobusy')));
}
You could change the if condition to allow the groups you want.

foopy
08-01-2007, 11:50 AM
Thank you so much for that info.

I understand the concept of editing the if condition, however not really being a coder I don't know exactly what to change. Would you consider giving me that info in detail? During heavy load times I want only admins, mods/supermods and one usergroup named premium members to have access.

Thanks again for taking the time to help.

Chuck Holton
05-23-2008, 06:02 AM
It would be possible but you'd need to tweak some vb code. If you are running a *nix type server (like Linux), there is an option under vbulletin options -> Server Settings and Optimization Options called *NIX Server Load Limit.

Once you set this, it is evaluated in global.php around line 811.

// check to see if server is too busy. this is checked at the end of session.php
if ($servertoobusy AND !($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) AND THIS_SCRIPT != 'login')
{
$vbulletin->options['useforumjump'] = 0;
eval(standard_error(fetch_error('toobusy')));
}
You could change the if condition to allow the groups you want.

Is there a way to implement the above just tell "guests" things are too busy during high loads - allowing registered users to carry on?

AURFSCAN
11-09-2009, 04:31 AM
It would be possible but you'd need to tweak some vb code. If you are running a *nix type server (like Linux), there is an option under vbulletin options -> Server Settings and Optimization Options called *NIX Server Load Limit.

Once you set this, it is evaluated in global.php around line 811.

// check to see if server is too busy. this is checked at the end of session.php
if ($servertoobusy AND !($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']) AND THIS_SCRIPT != 'login')
{
$vbulletin->options['useforumjump'] = 0;
eval(standard_error(fetch_error('toobusy')));
}
You could change the if condition to allow the groups you want.


Hi everyone, I know this is an old post but I need to do this temporarily.

restrict usergroup 1, 2, 22

How do I rewrite the IF statement and also will this work on 3.7.3

thanks for any help and replies

regards
darren