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)
-   -   Restrict search when the server load is high (https://vborg.vbsupport.ru/showthread.php?t=102882)

dbembibre 12-12-2005 10:00 PM

Restrict search when the server load is high
 
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

Mastar 12-13-2005 06:40 PM

Installed!

dieselpowered 12-13-2005 06:41 PM

How does this work different from what is built within vBulletin? I know you can disable searches within the admincp :) Maybe the ability to enter your own value for the load?

dbembibre 12-13-2005 06:44 PM

Quote:

Originally Posted by Mastar
Installed! Where are the options?

Admin CP->vBulletin Options ->Restrict Search Config

dbembibre 12-13-2005 06:50 PM

Quote:

Originally Posted by xtremeoff-road
How does this work different from what is built within vBulletin? I know you can disable searches within the admincp :) Maybe the ability to enter your own value for the load?

The unix load limit of vBulletin block the forums to new users if rich the predefined value, this is for servers with high traffic, searches on large forums can slow the server down a lot.

dieselpowered 12-13-2005 08:58 PM

Ahhh it is for registrations...not for search. Roger that :)

redtailboa 12-14-2005 02:28 PM

Suggestion:
Give the ability to turn this on per group basis. For me this would work great. Supporters , Premium, moderators and the admin groups are exempt from this. Registered users and other groups are not

Gryphon 12-14-2005 04:49 PM

Nice, maybe add the ability to search via Google (or other engine if there is such a thing) when the vb search is unavailable.

dbembibre 12-15-2005 08:52 AM

Quote:

Originally Posted by redtailboa
Suggestion:
Give the ability to turn this on per group basis. For me this would work great. Supporters , Premium, moderators and the admin groups are exempt from this. Registered users and other groups are not

Good sugestion, i take in consideration

UK Jimbo 12-18-2005 10:55 PM

Quote:

Originally Posted by xtremeoff-road
Ahhh it is for registrations...not for search. Roger that :)

No. It's for search not registrations!

MentaL 12-19-2005 12:11 AM

Awesome

Installed!

lazytown 12-21-2005 11:58 PM

How is this different than the other 3.5 mod that does the exact same thing?

-vissa

UK Jimbo 12-22-2005 12:03 AM

Quote:

Originally Posted by vissa
How is this different than the other 3.5 mod that does the exact same thing?

-vissa


which other v3.5 mod?

edit: found it

redspider 02-14-2006 06:23 AM

is there is a way to add my moderator and private member to the excempt list or setting?

UK Jimbo 02-14-2006 07:15 AM

Quote:

Originally Posted by redspider
is there is a way to add my moderator and private member to the excempt list or setting?

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

redspider 02-14-2006 07:41 AM

thank you I miss that lol

but thanks again .

BoardTracker 05-03-2006 11:40 AM

Quote:

*Enabled Google search when the Restriction is in Effect
Perhaps instead of google (or as an additional option) you could enable boardtracker search for the board by combining with this mod..

https://vborg.vbsupport.ru/showthread.php?t=114515

I think these two mods can work well together. :cool:

Eagle Creek 05-04-2006 07:27 PM

Installed!

Can't wait for the next version!

Boofo 05-09-2006 07:22 AM

How can we find out if this has been done?

Quote:

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

GrendelKhan{TSU 08-24-2006 02:50 PM

sounds good...soo like...

what's a good value?

Mudvayne 09-26-2006 06:35 PM

Sorry but is this work with vB 3.6.1 ? Also same question as Bofoo.

Cybershaolin 12-12-2006 12:39 AM

Quote:

Originally Posted by UK Jimbo (Post 899818)
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?

Hornstar 07-23-2007 04:45 AM

Quote:

Originally Posted by UK Jimbo (Post 899818)
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.

UK Jimbo 07-23-2007 07:21 AM

what are you trying to do?

dtv100 12-12-2007 03:57 PM

can this work with 3.6.8?

eido 04-01-2008 07:32 PM

Quote:

Originally Posted by dtv100 (Post 1399928)
can this work with 3.6.8?

can it??

Hornstar 11-07-2008 09:24 PM

do you still intend to do the next version?

Medtech 12-06-2008 10:40 PM

Installed on vb 3.8.0 candidate1, lets see if it works properly.

d.j.carusso 12-28-2008 03:25 PM

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 ?

Artes_Marciales 01-08-2009 07:11 AM

Great mod
?it work on 3.7?? :confused:

Thanks!!

Artes_Marciales 02-12-2009 10:11 AM

¿it work on 3.7??


All times are GMT. The time now is 07:44 PM.

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.01208 seconds
  • Memory Usage 1,777KB
  • 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
  • (6)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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