vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Possible to restrict forum access during heavy traffic? (https://vborg.vbsupport.ru/showthread.php?t=153942)

foopy 07-31-2007 11:08 PM

Possible to restrict forum access during heavy traffic?
 
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.

PHP Code:

// 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

Quote:

Originally Posted by CyberRanger (Post 1306976)
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.

PHP Code:

// 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

Quote:

Originally Posted by CyberRanger (Post 1306976)
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.

PHP Code:

// 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


All times are GMT. The time now is 05:31 AM.

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.01093 seconds
  • Memory Usage 1,736KB
  • 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
  • (3)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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