vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Exempt all administrators, supermoderators, and moderators from server load messages (https://vborg.vbsupport.ru/showthread.php?t=56630)

Gary King 08-30-2003 10:00 PM

Exempt all administrators, supermoderators, and moderators from server load messages
 
What does this hack do?

It exempts all administrators, supermoderators, and moderators from the server load messages. Usually, ALL users except for administrators get the "server is too busy at the moment" message when the server load is higher than the *NIX Load Limit specified in vBulletin Options.

With this hack, all staff (admin, supermod, mod) will be able to browse the board without seeing the message, even if the server load is higher than the amount specified.

I hope this helps you out in some way! :)

Dodger 09-04-2003 01:10 PM

nice hack
may be smb need that, but not me

tnguy3n 09-05-2003 03:27 AM

sounds cool!!!
how come there're very few hacks for vb 2.3.2??

Gary King 09-05-2003 06:48 PM

Quote:

Today at 12:27 AM tnguy3n said this in Post #3
sounds cool!!!
how come there're very few hacks for vb 2.3.2??

Because not many code changes between version, say, 2.2.1, and 2.3.2 (that don't affect too many hacks anyways.)

Mb81 09-09-2003 05:12 PM

Does this Hack work under VB 2.3.2 ?
I get still the Error Message.

Gary King 09-09-2003 06:52 PM

It was made for 2.3.2

X-Fan 09-13-2003 05:30 AM

Does it work on 2.3.0?

Gary King 09-13-2003 01:21 PM

Quote:

Originally Posted by X-Fan
Does it work on 2.3.0?

It should, it doesn't require too many code changes.

X-Fan 09-13-2003 01:26 PM

Quote:

Originally Posted by Gary W
It should, it doesn't require too many code changes.

It's not. Myself and my fellow admins still get the "server busy" message.

Gary King 09-13-2003 01:39 PM

Quote:

Originally Posted by X-Fan
It's not. Myself and my fellow admins still get the "server busy" message.

Then you did something wrong, because by default, vBulletin still allows all administrators to view the forum regularly even if the server load is too high ;)

X-Fan 09-17-2003 08:54 AM

Well the install instructions were pretty simple. I doubt anyone could follow them incorrectly, so I really don't know what it could be.

JonP 09-17-2003 08:32 PM

Doesn't work for me either. Installed correctly.

Gary King 09-17-2003 08:35 PM

Quote:

Originally Posted by JonP
Doesn't work for me either. Installed correctly.

What problem do you have after installation?

JonP 09-18-2003 04:49 PM

The server load message appears for everybody, including administrators, which is of course supposed to be off by default.

Perhaps there is a setting which overrides this? Or maybe there is an inconsistency with grabbing the user levels from the style?

Any help to resolve this is greatly appreciated. Thanks.

Gary King 09-18-2003 07:15 PM

Quote:

Originally Posted by JonP
The server load message appears for everybody, including administrators, which is of course supposed to be off by default.

Perhaps there is a setting which overrides this? Or maybe there is an inconsistency with grabbing the user levels from the style?

Any help to resolve this is greatly appreciated. Thanks.

That's pretty strange, the modification works fine for me (just re-tested it now.)

rikku3978 03-09-2004 01:37 AM

Is there a way to get it to work with regular users also?

Gary King 03-09-2004 11:16 AM

Quote:

Originally Posted by rikku3978
Is there a way to get it to work with regular users also?

Replace
PHP Code:

if ($servertoobusy AND $bbuserinfo['usergroupid'] != AND $bbuserinfo['usergroupid'] != AND $bbuserinfo['usergroupid'] != 7) { 

with
PHP Code:

if ($servertoobusy AND $bbuserinfo['usergroupid'] != AND $bbuserinfo['usergroupid'] != AND $bbuserinfo['usergroupid'] != and $bbuserinfo[usergroupid] != 2) { 


huss 03-10-2004 09:34 PM

its not working for me either.
sould there be parens around the user groups and the ands in those parens become ors?

huss 03-10-2004 10:13 PM

this is my code

if ($servertoobusy and $bbuserinfo['usergroupid'] != 6 and $bbuserinfo['usergroupid'] != 5 and $bbuserinfo['usergroupid'] != 132 and $bbuserinfo['usergroupid'] != 137) {

where the usergroups you don't recognize are my subscribers who pay for this priveldge. it used to work and today stopped when i upgraded to 2.34

Gary King 03-10-2004 10:57 PM

Quote:

Originally Posted by huss
this is my code

if ($servertoobusy and $bbuserinfo['usergroupid'] != 6 and $bbuserinfo['usergroupid'] != 5 and $bbuserinfo['usergroupid'] != 132 and $bbuserinfo['usergroupid'] != 137) {

where the usergroups you don't recognize are my subscribers who pay for this priveldge. it used to work and today stopped when i upgraded to 2.34

Wow you sure have a lot of usergroups if you reached 137 :) Anyways, that sounds strange, maybe you replaced the code completely when upgrading and didn't upgrade correctly?

parajsa 03-11-2004 10:07 AM

I am using the vbulletin 2.3.4 and it does not work for me either. I placed the code correctly and it does not allow even the administrators there are allowed by default!

Any help?

Bulent Tekcan 11-23-2005 06:13 PM

Is it available for 3.5.1 ?

zagman76 05-16-2007 12:15 AM

i hate to bump such an old thread, but is there any way this can be ported to 3.5.4 or 3.6.x?

Hornstar 07-23-2007 04:53 AM

I am requesting the same, would be a great feature for 3.6.x :)


All times are GMT. The time now is 04:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02003 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (8)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete