PDA

View Full Version : server load mods excluded


hollyboy
11-10-2005, 08:22 AM
Hi,

when the server load gets level 10 I get all the users see this message: "server load is too much at the moment, get back to the forum later"

Only admins don't see this. How can I do so that also moderators can stay logged when server load is reached?

Thanks

Marco van Herwaarden
11-10-2005, 08:43 AM
You could try the following:

in ./global.php find:
if ($servertoobusy AND !($permissions['adminpermissions'] & CANCONTROLPANEL) AND THIS_SCRIPT != 'login')And replace by:if ($servertoobusy AND !($permissions['adminpermissions'] & CANCONTROLPANEL) AND THIS_SCRIPT != 'login' AND !($vbulletin->userinfo['usergroupid'] == 5 OR $vbulletin->userinfo['usergroupid'] == 7))
The above will only work for primairy usergroups.

hollyboy
11-10-2005, 08:47 AM
thanks marco

You could try the following:

in ./global.php find:
if ($servertoobusy AND !($permissions['adminpermissions'] & CANCONTROLPANEL) AND THIS_SCRIPT != 'login')And replace by:if ($servertoobusy AND !($permissions['adminpermissions'] & CANCONTROLPANEL) AND THIS_SCRIPT != 'login' AND !($vbulletin->userinfo['usergroupid'] == 5 OR $vbulletin->userinfo['usergroupid'] == 7))
The above will only work for primairy usergroups.

doesn't work, my mods have just said they got the "server load" message

hollyboy
11-12-2005, 07:37 AM
up :)