Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons

Reply
 
Thread Tools
Deny Unregistered Users When Load Is High - Load Deny (*Nix) Details »»
Deny Unregistered Users When Load Is High - Load Deny (*Nix)
Version: 1.1, by Jafo232 Jafo232 is offline
Developer Last Online: Oct 2022 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.6.8 Rating:
Released: 11-13-2007 Last Update: 11-19-2007 Installs: 108
Uses Plugins
 
No support by the author.

Remember, if you use this hack:


This hack works very similar to the "*NIX Server Load Limit" setting in your Vbulletin options except it only applies to unregistered/not logged in users.

You set the load, and if the server is over that load, all guests will be prompted to log in or register.

I did use an extra attempt that the "*NIX Server Load Limit" option does not use (exec('uptime')) for those with basedir issues. However, just like with the built in option in VB, if your not running a Unix/Linux variant, or cannot get the server load due to safe mode or other restrictions, then this may not work for you.

Not mandatory, but you should edit your phrase "toobusy" when using this. See Readme for more details.

Changelog:

Version 1.1 - 11.20.07 - Changed hook location from global_start to global_setup_complete so styling still displays when user is denied.

If you use this, please:


Nominate for Mod Of The Month!

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 11-14-2007, 09:11 AM
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Location: Switzerland
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi first of thanks for sharing this!
My question: I have a microstat that shows server load etc... is that the same as *nix value?
Reply With Quote
  #3  
Old 11-14-2007, 02:18 PM
Weapon-x Weapon-x is offline
 
Join Date: Jan 2005
Location: USA
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hmmmm interesting mod. Going to try it now.
Reply With Quote
  #4  
Old 11-14-2007, 02:41 PM
msu2k msu2k is offline
 
Join Date: Jan 2003
Posts: 61
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've been waiting for this mod for a LONG TIME! Thanks!

I installed this and tried it out. I logged out of my board in a different browser, and briefly changed the Load Deny settings to 1 so that it would trip it. It did, but for some reason it looks like my board styles are broken on the "too busy" page it loaded. Is that intentional with this mod? The "too busy" page looks fine using VB's built in "*NIX Server Load Limit" option.
Reply With Quote
  #5  
Old 11-14-2007, 02:44 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by tanyeri24 View Post
Hi first of thanks for sharing this!
My question: I have a microstat that shows server load etc... is that the same as *nix value?
Yes, exactly the same as the first load report in the microstats plugin.
Reply With Quote
  #6  
Old 11-14-2007, 03:01 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by msu2k View Post
It did, but for some reason it looks like my board styles are broken on the "too busy" page it loaded. Is that intentional with this mod? The "too busy" page looks fine using VB's built in "*NIX Server Load Limit" option.
Yeah, I am not exactly sure why it is doing this here. I may need to adjust the hook location to one further down in global.php. I did this plugin originally for a project where I am pruning out plugins because the board load is crazy and I could not get anything done. The goal was to stop people as soon as possible if they were not registered.

You could test it yourself by going to the plugins page and finding the only plugin for the load deny product, click edit, and change the hook location in the drop down to: global_setup_complete.
Reply With Quote
  #7  
Old 11-16-2007, 07:32 PM
Seiyaboy Seiyaboy is offline
 
Join Date: May 2006
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't quite understand what this does. Does it generate a vbulletin error message saying that the server load is currently too high and stop registration that way? Or does it also prevent all forum images from loading to guests as well? A couple of screenshots would always be a nice addition.
Reply With Quote
  #8  
Old 11-16-2007, 08:11 PM
tanyeri24 tanyeri24 is offline
 
Join Date: Feb 2005
Location: Switzerland
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Houston I have the same styles problem but the addon technique is functionation, good job! maybe you can fix the styles problem?
Reply With Quote
  #9  
Old 11-16-2007, 11:50 PM
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Posts: 1,122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Seiyaboy View Post
I don't quite understand what this does. Does it generate a vbulletin error message saying that the server load is currently too high and stop registration that way? Or does it also prevent all forum images from loading to guests as well? A couple of screenshots would always be a nice addition.
Generates error message saying server load is too high, basically, come back later, or register/login to view the content.

It is basically the same as the "NIX Server Load Limit" option in VB, except ONLY applies to guests.
Reply With Quote
  #10  
Old 11-17-2007, 03:07 AM
Seiyaboy Seiyaboy is offline
 
Join Date: May 2006
Posts: 100
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Jafo232 View Post
Generates error message saying server load is too high, basically, come back later, or register/login to view the content.

It is basically the same as the "NIX Server Load Limit" option in VB, except ONLY applies to guests.
Thanks for answering so quickly. I'll be sure to try this out. Thanks a bunch.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:14 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07020 seconds
  • Memory Usage 2,293KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete