View Full Version : Restrict search when the server load is high
dbembibre
13 Dec 2005, 20:28
This is a 3.5 port of the OK JIMBO Version of this hack
http://www.vbulletin.org/forum/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
dieselpowered
13 Dec 2005, 20:41
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
13 Dec 2005, 20:44
Installed! Where are the options?
Admin CP->vBulletin Options ->Restrict Search Config
dbembibre
13 Dec 2005, 20:50
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
13 Dec 2005, 22:58
Ahhh it is for registrations...not for search. Roger that :)
redtailboa
14 Dec 2005, 16:28
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
14 Dec 2005, 18:49
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
15 Dec 2005, 10:52
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
19 Dec 2005, 00:55
Ahhh it is for registrations...not for search. Roger that :)
No. It's for search not registrations!
How is this different than the other 3.5 mod that does the exact same thing?
-vissa
UK Jimbo
22 Dec 2005, 02:03
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 (http://www.vbulletin.org/forum/showthread.php?t=82628)
redspider
14 Feb 2006, 08:23
is there is a way to add my moderator and private member to the excempt list or setting?
UK Jimbo
14 Feb 2006, 09:15
is there is a way to add my moderator and private member to the excempt list or setting?
Replace
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
where 12345 is your other users's id
redspider
14 Feb 2006, 09:41
thank you I miss that lol
but thanks again .
BoardTracker
03 May 2006, 13:40
*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..
http://www.vbulletin.org/forum/showthread.php?t=114515
I think these two mods can work well together. :cool:
Eagle Creek
04 May 2006, 21:27
Installed!
Can't wait for the next version!
How can we find out if this has been done?
Be sure that you allow access to /proc/loadavg in open_basedir in php.ini
GrendelKhan{TSU
24 Aug 2006, 16:50
sounds good...soo like...
what's a good value?
Mudvayne
26 Sep 2006, 20:35
Sorry but is this work with vB 3.6.1 ? Also same question as Bofoo.
Cybershaolin
12 Dec 2006, 02:39
Replace
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
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
23 Jul 2007, 06:45
Replace
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
with
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
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
23 Jul 2007, 09:21
what are you trying to do?
can this work with 3.6.8?
can this work with 3.6.8?
can it??
Hornstar
07 Nov 2008, 23:24
do you still intend to do the next version?
Medtech
07 Dec 2008, 00:40
Installed on vb 3.8.0 candidate1, lets see if it works properly.
d.j.carusso
28 Dec 2008, 17:25
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
08 Jan 2009, 09:11
Great mod
żit work on 3.7?? :confused:
Thanks!!
Artes_Marciales
12 Feb 2009, 12:11
żit work on 3.7??
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.