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)
-   -   Close Search during high server load (https://vborg.vbsupport.ru/showthread.php?t=82628)

DementedMindz 04-16-2006 01:59 AM

question is how do we remove it? if we no longer want it?

vBB-vietnam 04-16-2006 07:00 AM

Is it only active with Linux Server ?

Bieddos 05-05-2006 07:25 AM

sorry but... where i can set the limit for search nix load???

Bieddos 05-09-2006 11:39 AM

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

DementedMindz 06-22-2006 02:43 PM

ok brad ill ask again... how do we remove it? if we no longer want it?

zooman 07-02-2006 10:57 AM

anyone tested on 3.6

Ghanem 09-01-2006 05:45 PM

Quote:

Originally Posted by zooman
anyone tested on 3.6

Any one please :)

Cybershaolin 12-12-2006 12:47 AM

Does it work with 3.6.4?

Indy 12-17-2006 10:22 PM

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')"); 


Indy 12-17-2006 10:33 PM

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????)


All times are GMT. The time now is 10:55 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.02156 seconds
  • Memory Usage 1,738KB
  • 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
  • (3)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