Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Close Search during high server load Details »»
Close Search during high server load
Version: 1.0.1, by Brad Brad is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 3.5.0 Beta 2 Rating:
Released: 06-06-2005 Last Update: 07-22-2005 Installs: 57
DB Changes Uses Plugins
Re-useable Code Translations  
No support by the author.

With this plug-in installed you can disable your search engine when the server load gets to high. This plug-in add's a new vBoption in the Sever Settings page where you can define your server load.

This plug-in acts exactly like the regular server load limiter but only works on search.php.

Version History

Current Version: 1.0.1

Added installer, no other changes between this and 1.0.0. If you already have 1.0.0 installed there is no reason to upgrade!

Past Versions:

1.0.0:

Released Code to public

Show Your Support

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

Comments
  #32  
Old 04-16-2006, 02:59 AM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

question is how do we remove it? if we no longer want it?
Reply With Quote
  #33  
Old 04-16-2006, 08:00 AM
vBB-vietnam vBB-vietnam is offline
 
Join Date: Apr 2006
Posts: 56
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it only active with Linux Server ?
Reply With Quote
  #34  
Old 05-05-2006, 08:25 AM
Bieddos's Avatar
Bieddos Bieddos is offline
 
Join Date: Nov 2001
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry but... where i can set the limit for search nix load???
Reply With Quote
  #35  
Old 05-09-2006, 12:39 PM
Bieddos's Avatar
Bieddos Bieddos is offline
 
Join Date: Nov 2001
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bieddos
sorry but... where i can set the limit for search nix load???
no support for 3.5.4... this option there isn't in server option.... is not this hack compatible with 3.5.4???
Reply With Quote
  #36  
Old 06-22-2006, 03:43 PM
DementedMindz DementedMindz is offline
 
Join Date: Jan 2006
Posts: 1,474
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok brad ill ask again... how do we remove it? if we no longer want it?
Reply With Quote
  #37  
Old 07-02-2006, 11:57 AM
zooman zooman is offline
 
Join Date: Oct 2005
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

anyone tested on 3.6
Reply With Quote
  #38  
Old 09-01-2006, 06:45 PM
Ghanem's Avatar
Ghanem Ghanem is offline
 
Join Date: Aug 2004
Location: Bahrain
Posts: 122
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zooman
anyone tested on 3.6
Any one please
Reply With Quote
  #39  
Old 12-12-2006, 12:47 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it work with 3.6.4?
Reply With Quote
  #40  
Old 12-17-2006, 10:22 PM
Indy Indy is offline
 
Join Date: Jun 2002
Location: Indianapolis, IN
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I just got it working in my test/dev 3.6.4. forum and will be installing in my live forums. Works like a champ too!

I had to make the following changes to the loo_sql_searchplug.php though. (Please note) I'm not the author so I hope it is OK to show how I got it to work, plus I can not support either. Sorry.

Too bad this is not a standard "out-of-the-box" feature for vB.


Original
PHP Code:
// add phrases to master set
$db->query_write("INSERT INTO " TABLE_PREFIX "phrase (languageid, phrasetypeid, varname, text) VALUES ('-1', '5000', 'setting_searchloolimit_desc', 'Just like the *NIX load limit setting, but only prevents access to searching when the server load is too high')");

$db->query_write("INSERT INTO " TABLE_PREFIX "phrase (languageid, phrasetypeid, varname, text) VALUES ('-1', '5000', 'setting_searchloolimit_title', 'Search Server Load Limit')"); 
NEW
PHP Code:
$db->query_write("INSERT INTO " TABLE_PREFIX "phrase (languageid, phraseid, varname, text, product, fieldname) VALUES ('-1', '5000', 'setting_searchloolimit_desc', 'Just like the *NIX load limit setting, but only prevents access to searching when the server load is to high', 'vbulletin', 'vbsettings')");

$db->query_write("INSERT INTO " TABLE_PREFIX "phrase (languageid, phraseid, varname, text, product, fieldname) VALUES ('-1', '5001', 'setting_searchloolimit_title', 'Search Server Load Limit', 'vbulletin', 'vbsettings')"); 
Reply With Quote
  #41  
Old 12-17-2006, 10:33 PM
Indy Indy is offline
 
Join Date: Jun 2002
Location: Indianapolis, IN
Posts: 28
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Since this will display the same busy message, I also changed my "toobusy" phrase to:

Quote:
If you tried to perform a search and received this message, then the server load is a little too high to complete your request at this time.

If you were not conducting a search, then the server load has reached a critical point and needs to unload. Please try again in a few minutes.
I would have to track down fetching of the error code to display a different message solely for this hack, but I think I may leave things as they are. (Is it worth the time figuring it out just to have a separate message????)
Reply With Quote
Reply


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 11:50 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.04854 seconds
  • Memory Usage 2,308KB
  • Queries Executed 25 (?)
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
  • (2)bbcode_php
  • (3)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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