PDA

View Full Version : Restrict search when the server load is high


dbembibre
12-12-2005, 10:00 PM
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
Installed! Where are the options?

Admin CP->vBulletin Options ->Restrict Search Config

dbembibre
12-13-2005, 06:50 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?

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
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
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
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 (https://vborg.vbsupport.ru/showthread.php?t=82628)

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
is there is a way to add my moderator and private member to the excempt list or setting?

Replace

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

with

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

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
Replace

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

with

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
Replace

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

with

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