Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Kermit on June 18, 2009, 11:11:59 AM

Title: Search Time Limitation
Post by: Kermit on June 18, 2009, 11:11:59 AM

Search Time Limitation

Mod Link (http://custom.simplemachines.org/mods/index.php?mod=1899)

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
Title: Re: Search Time Limitation
Post by: villasg on June 18, 2009, 12:36:21 PM
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>
Title: Re: Search Time Limitation
Post by: aED on June 18, 2009, 12:50:10 PM
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!
Title: Re: Search Time Limitation
Post by: alex30 on June 18, 2009, 02:29:16 PM
Hmm, nice mod, thanks Duncan.
Title: Re: Search Time Limitation
Post by: Nibogo on June 18, 2009, 03:06:26 PM
Powerful and Simple Mod thanks ;)
Title: Re: Search Time Limitation
Post by: Sabre™ on June 18, 2009, 10:06:44 PM
Very nice!

Thanks mate :)
Title: Re: Search Time Limitation
Post by: Tiribulus on June 18, 2009, 11:18:51 PM
Am I correct in assuming that this restriction does not apply to Admins?
Title: Re: Search Time Limitation
Post by: Sabre™ on June 19, 2009, 01:02:07 AM
Yes, you are correct :)
Title: Re: Search Time Limitation
Post by: Sevgiformu.com on June 19, 2009, 02:12:59 AM
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.';
Title: Re: Search Time Limitation
Post by: Kermit 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
Title: Re: Search Time Limitation
Post by: Tiribulus on June 20, 2009, 12:12:54 AM
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.
Title: Re: Search Time Limitation
Post by: Rohan_ on July 11, 2009, 03:23:59 PM
hey can i use it in 1.1.8
Title: Re: Search Time Limitation
Post by: Kermit 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
Title: Re: Search Time Limitation
Post by: digit on July 21, 2009, 11:11:59 AM
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

Title: Re: Search Time Limitation
Post by: Rohan_ on July 21, 2009, 01:22:01 PM
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 :)
Title: Re: Search Time Limitation
Post by: R.Bourne on September 28, 2009, 03:47:47 PM
Thank YOU!