News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Search Time Limitation

Started by Kermit, June 18, 2009, 11:11:59 AM

Previous topic - Next topic

Kermit


Search Time Limitation

Mod Link

Version: 1.0 Date 2009-06-17
Compatibility: SMF 1.1.9


This is an already built-in feature on SMF 2.x branch,you can set Time required between searches from same user to prevent search spam !

This can be set via AdminCP -> Search -> Time required between searches from same user




You may get support or submit questions and comments in the modification's support thread at the SMF site.

-Duncan85
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

villasg

Good idea

Greek utf8
<file name="$languagedir/Modifications.greek-utf8.php" error="skip">

<operation>
     <search position="end" />
<add><![CDATA[
//Search Time Limitation
$txt['search_floodcontrol_time'] = 'Ο χρόνος που απαιτείται ανάμεσα στα ψαξίματα απο τον ίδιο χρήστη';
$txt['search_floodcontrol_time_disable'] = '(0 γιά απεριόριστα , σε δευτερόλεπτα)';
]]></add>
</operation>
       </file>
   


<file name="$languagedir/Errors.greek-utf8.php" error="skip">

<operation>
     <search position="end" />
<add><![CDATA[
$txt['searchWaitTime_broken']  = 'Μας συγχωρείτε! H τελευταία σας αναζήτηση ήταν πριν %d δευτερόλεπτα. Ο διαχειριστής έχει ορίσει ότι έχετε τη δυνατότητα να κάνετε μόνο μία αναζήτηση κάθε 20 δευτερόλεπτα.';
]]></add>
</operation>
       </file>

aED

This is one of the reasons why I upgraded to 2.0 now I can have a new forum using 1.1.9 again thanks duncan!

alex30

#3
Hmm, nice mod, thanks Duncan.


Sabre™

Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Tiribulus

Am I correct in assuming that this restriction does not apply to Admins?

Sabre™

Do NOT give admin and/or ftp details to just anybody, see if they are trust worthy first!!  Do your homework ;)


Sevgiformu.com

Very nice Mod Thank You.

Turkish translate.


./Themes/default/languages/Modifications.turkish.php




//Search Time Limitation
$txt['search_floodcontrol_time'] = 'Aynı Kullanıcının Yapıcağı Site İçi Arama Yağacağı Süre Aralığı';
$txt['search_floodcontrol_time_disable'] = '(0 Sınırsız Arama saniye için örnek 0,05)';





./Themes/default/languages/Errors.turkish.php






$txt['searchWaitTime_broken']  = 'Son Aramanız  %d Saniye Önceydi. Lütfen daha sonra tekrar deneyin.';

Kermit

Quote from: Tiribulus on June 18, 2009, 11:18:51 PM
Am I correct in assuming that this restriction does not apply to Admins?


Admins would not spam their own forums right ? :P
My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

Tiribulus

Quote from: Duncan85 on June 19, 2009, 02:39:58 AM
Quote from: Tiribulus on June 18, 2009, 11:18:51 PM
Am I correct in assuming that this restriction does not apply to Admins?


Admins would not spam their own forums right ? :P

No, it just threw me off because I tested it with my admin account and it wasn't working so I tried it with a regular account and well, you get it.

Rohan_

Proud To Be An Indian

Kermit

My Mods
Please don't PM/mail me for support,unless i invite you
Formerly known as Duncan85
Quote
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

A. Einstein

digit

#13
VERY nice mod  8)

Would there happen to be an easy way to not limit charter members too?

I see where it doesn't effect moderators....


// Moderators are free...
if (!allowedTo('moderate_board'))
$timeLimit = isset($timeOverrides[$error_type]) ? $timeOverrides[$error_type] : $modSettings['spamWaitTime'];
else
$timeLimit = 2;



Could you help me do the same for members in membergroup 9?

I would like to limit search to all but Charter members. (and mods and admins)   :P

Thanks in advance, and thanks for a GREAT mod.

digit

Happily using a heavily modified 1.1.16 version of SMF!

2748011 Posts in 320998 Topics by 50986 Members


SOLD my website - thanks it was a good run - they converted to vbadvanced. (and screwed it up good!)

Rohan_

Quote from: Duncan85 on July 11, 2009, 03:25:08 PM
Quote from: Rohan_ on July 11, 2009, 03:23:59 PM
hey can i use it in 1.1.8

Yes you can
thanx for reply but i am on 1.1.10 now :D and using it and its working great :)
Proud To Be An Indian

R.Bourne


Advertisement: