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
Restrict search when the server load is high Details »»
Restrict search when the server load is high
Version: 1.00, by dbembibre dbembibre is offline
Developer Last Online: Jul 2013 Show Printable Version Email this Page

Version: 3.5.2 Rating:
Released: 12-12-2005 Last Update: Never Installs: 41
Uses Plugins
 
No support by the author.

This is a 3.5 port of the OK JIMBO Version of this hack
https://vborg.vbsupport.ru/showthread.php?t=76456

This plugin allow to you disable searches when the load average reaches a defined level.
Only administrators are excempt from this.

I tested this plugin during one mounth in my forums that have 400 constants users online and work well.

Simply install as product and go to ACP->Restrict Search Config and put a load value.

The plugin work with linux, freeBSD and unix servers not in WINDOWS

Be sure that you allow access to /proc/loadavg in open_basedir in php.ini


For the next version
*Exclude Groups of the Restrictions
*Enabled Google search when the Restriction is in Effect

Show Your Support

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

Comments
  #22  
Old 09-26-2006, 06:35 PM
Mudvayne's Avatar
Mudvayne Mudvayne is offline
 
Join Date: Dec 2005
Location: /dev/null/
Posts: 393
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry but is this work with vB 3.6.1 ? Also same question as Bofoo.
Reply With Quote
  #23  
Old 12-12-2006, 12:39 AM
Cybershaolin Cybershaolin is offline
 
Join Date: Nov 2006
Posts: 300
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UK Jimbo View Post
Replace

Code:
if (( $vbulletin->userinfo['usergroupid'] <> 6  ) )
with

Code:
if (( $vbulletin->userinfo['usergroupid'] <> 6  && $vbulletin->userinfo['userid'] != 12345 ) )
where 12345 is your other users's id
What about if the other groups I have are 5,7,9 and 13? How would I put that in the last part of the code?

Also, is this working with 3.6.4?
Reply With Quote
  #24  
Old 07-23-2007, 04:45 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by UK Jimbo View Post
Replace

Code:
if (( $vbulletin->userinfo['usergroupid'] <> 6  ) )
with

Code:
if (( $vbulletin->userinfo['usergroupid'] <> 6  && $vbulletin->userinfo['userid'] != 12345 ) )
where 12345 is your other users's id
Thanks, but do I just put commas in? 1, 2, 3, 4, 5 ) or something else?

Thanks.
Reply With Quote
  #25  
Old 07-23-2007, 07:21 AM
UK Jimbo's Avatar
UK Jimbo UK Jimbo is offline
 
Join Date: Sep 2002
Posts: 249
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what are you trying to do?
Reply With Quote
  #26  
Old 12-12-2007, 03:57 PM
dtv100 dtv100 is offline
 
Join Date: Apr 2007
Location: in the south of the north
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can this work with 3.6.8?
Reply With Quote
  #27  
Old 04-01-2008, 07:32 PM
eido eido is offline
 
Join Date: May 2007
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by dtv100 View Post
can this work with 3.6.8?
can it??
Reply With Quote
  #28  
Old 11-07-2008, 09:24 PM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

do you still intend to do the next version?
Reply With Quote
  #29  
Old 12-06-2008, 10:40 PM
Medtech's Avatar
Medtech Medtech is offline
 
Join Date: Oct 2007
Posts: 310
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed on vb 3.8.0 candidate1, lets see if it works properly.
Reply With Quote
  #30  
Old 12-28-2008, 03:25 PM
d.j.carusso d.j.carusso is offline
 
Join Date: Jul 2007
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I received this message on vb 3.6.10

Parse error: syntax error, unexpected ',' in /home/----------/public_html/search.php(1773) : eval()'d code on line 8

I put users with commas.
Do somebody knows what is problem ?
Reply With Quote
  #31  
Old 01-08-2009, 07:11 AM
Artes_Marciales Artes_Marciales is offline
 
Join Date: Jun 2007
Posts: 278
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great mod
?it work on 3.7??

Thanks!!
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 09:09 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.06021 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
  • (4)bbcode_code
  • (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