vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Allow some usergroups to bypass "server too busy" error (https://vborg.vbsupport.ru/showthread.php?t=83521)

bada_bing 02-09-2006 02:47 AM

Couple questions about this nice hack.

Is this going to be ported as a plugin for 3.5.3 ?
Also can you make this to give a server too busy search is disabled when using the search feature and suggest that if they upgrade there membership they wont get this messages.You can then control which groups are excluded from the server laod message and have the search feature disabled.

For example if you are a registered memeber and the server load is high ONLY when in trying to do a search they will get the above message. And when a registered members upgrades there membership to lets just say Premium Member they now longer will get the server load message and will be able to search at any time.

BigSoccer Tech. 02-10-2006 05:40 PM

Quote:

Originally Posted by bada_bing
Couple questions about this nice hack.

Is this going to be ported as a plugin for 3.5.3 ?
Also can you make this to give a server too busy search is disabled when using the search feature and suggest that if they upgrade there membership they wont get this messages.You can then control which groups are excluded from the server laod message and have the search feature disabled.

For example if you are a registered memeber and the server load is high ONLY when in trying to do a search they will get the above message. And when a registered members upgrades there membership to lets just say Premium Member they now longer will get the server load message and will be able to search at any time.

please who wrote this, any support?

tamarian 02-16-2006 09:27 PM

husshuss,

Are those the primary usergroup ids you tested with? Give me more details on how you tested it.

BigSoccer Tech. 02-17-2006 02:02 AM

Quote:

Originally Posted by tamarian
husshuss,

Are those the primary usergroup ids you tested with? Give me more details on how you tested it.

those are secondary 'subscription usergroups, not primary. is that th eproblem?

BigSoccer Tech. 02-17-2006 12:39 PM

Quote:

Originally Posted by husshuss
those are secondary 'subscription usergroups, not primary. is that th eproblem?

PRIMARY

<if condition="!in_array($bbuserinfo[usergroupid], array(x,y,z))">


SECONDARY AND PRIMARY

<if condition="!is_member_of($bbuserinfo, array(3,5,7))">
<if condition="is_member_of($bbuserinfo, UsergroupID)"> code here </if>




ORGINAL CODE

// Configure some usergroups to bypass "server too busy" message
// Enter the usergroup id's here, seperated by comma
// Example: $BypassGroup = '5,6';
$BypassGroup = '138,140';
// End configuration

if (in_array($vbulletin->userinfo['usergroupid'], explode(',', $BypassGroup))) {
$servertoobusy = FALSE;
}




PROPOSED MODIFIED CODE

// Configure some usergroups to bypass "server too busy" message
// Enter the usergroup id's here, seperated by comma
// Example: $BypassGroup = '5,6';
$BypassGroup = '138,140';
// End configuration

if (is_member_of($vbulletin->userinfo['usergroupid'], explode(',', $BypassGroup))) {
$servertoobusy = FALSE;
}



thoughts?

yayvb 02-20-2006 03:20 AM

I think the concept is awesome, but I'm just wondering, isn't that a message that is somehow generated by your server if you've exceeded the number of max visitors at once for your account or something? I was just wondering where the message comes from so I can understand better.

JonnyQuest 02-21-2006 12:26 AM

Quote:

Originally Posted by yayvb
I think the concept is awesome, but I'm just wondering, isn't that a message that is somehow generated by your server if you've exceeded the number of max visitors at once for your account or something? I was just wondering where the message comes from so I can understand better.

The message comes from vB. There is a setting in vB for at what level of server load you want to stop more folks from getting into the site. If the server load passes it, you get this message.

Bulent Tekcan 03-21-2006 06:17 PM

Can I use this plugin for additional usergroups ?

Thanks

Bulent Tekcan 03-30-2006 09:44 AM

Bump***

kinkdink 07-18-2006 08:32 PM

Quote:

Originally Posted by Bulent Tekcan
Can I use this plugin for additional usergroups ?

Thanks

@bulent tekcan

It appears this only works with a primary usergroup or primary usergroups as stated by tamarian in his orginal post.

I would love to be able to use this with secondry (custom) usergroups too.

@ tamarian, Is there going to be an update for this?


All times are GMT. The time now is 08:34 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.01841 seconds
  • Memory Usage 1,739KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete