News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

SMFPacks Minimun Characters or Words Mod

Started by Nibogo, December 05, 2008, 03:31:53 PM

Previous topic - Next topic

Nibogo

Link to the mod

SMFPacks.com Minimun Characters or Words Mod v1.1.2 - NIBOGO
Mod to set a minimum amount of words or characters per message.



Author
:
- NIBOGO

Features:
o Minimun Characters per Post.
o Minimun Words per Post.
o Settings of this mod in: Admin Panel --> Forum --> Topic Settings
o You can ignore the minimun character or words for post created by admins [Enable/Disable Option]
o SMF 2.1 and 2.0 ONLY

Languages:
o Supports Languages
- English/English-utf8
- Spanish/Spanish-utf8

Compatibility:
- 2.1
- 2.0


Changelog:

1.1.3 - 23 May 2024

o Upgraded for SMF 2.1
o Hooks for easier installation.

1.1.2 - 29 July 2011

o Updated SMF 2.0 and 1.1.14

1.1 - 13 Feb 2010

o Some Code Improvements. (Now the mod is two times faster)
o Added Option to Doesn't Count Chars and Words between [quote] BBCode.

1.0 - 22 November 2008

o Based on RyanJones Code with some modifications by NIBOGO
o Initial Release

fords8

Installed without any problems. I have 18 other mods installed on my SMF2 Beta 4 test site. Nice mod and work NIBOGO!

qubbah

how about minimum character for topic length? is this mod can do it?

Alpay

#3
Good works. Thanks =)

turkish

Admin.{language}.php
//Minimun Characters or Words Mod
$txt['minWordLen'] = 'En az yazılması gereken kelime';
$txt['minwords_mod'] = 'kelime';
$txt['minChar'] = 'En az girilecek karakter sayısı';
$txt['minchars_mod'] = 'karakter';
$txt['minmod_zero'] = 'Degeri 0 girerseniz deaktif olur.';


Errors.{language}.php

$txt['error_minWordLen'] = 'Hata!Mesajınız da en az  (' . $modSettings['minWordLen'] . ' kelime gerekmektedir.).';
$txt['error_minChar'] = 'Hata!Mesajınız da en az (' . $modSettings['minChar'] . ' karakter gerekmektedir.).';

 
 
Modifications.turkish.php
Quote
//Minimun Characters or Words Mod
$txt['minWordLen'] = 'En az yazılması gereken kelime';
$txt['minwords_mod'] = 'kelime';
$txt['minChar'] = 'En az girilecek karakter sayısı';
$txt['minchars_mod'] = 'karakter';
$txt['minmod_zero'] = 'Degeri 0 girerseniz deaktif olur.';
$txt['minAdminLen'] = 'Kelime ve Karakter Engelleme modifikasyonu';
$txt['error_minWordLen'] = 'Hata!Mesajınız da en az  (' . $modSettings['minWordLen'] . ' kelime gerekmektedir.).';
$txt['error_minChar'] = 'Hata!Mesajınız da en az (' . $modSettings['minChar'] . ' karakter gerekmektedir.).';

Nibogo

Quote from: fords8 on December 05, 2008, 08:22:55 PM
Installed without any problems. I have 18 other mods installed on my SMF2 Beta 4 test site. Nice mod and work NIBOGO!

Glad you like ;)

Quote from: qubbah on December 06, 2008, 01:02:24 PM
how about minimum character for topic length? is this mod can do it?

What do you mean?? set a minimun amount of characters to create new topics and post?? This mod can do it


Sakae

Quote from: NIBOGO on December 05, 2008, 03:31:53 PM
o Support for SMF 2.0 ONLY

Any chances to see this mod on 1.1.7? The old one doesn't work anymore..
http://www.tigrelog.com.br
l: simple p: machines

tyhgdgh

Quote from: softcore on December 08, 2008, 01:28:15 AM
Quote from: NIBOGO on December 05, 2008, 03:31:53 PM
o Support for SMF 2.0 ONLY

Any chances to see this mod on 1.1.7? The old one doesn't work anymore..

I'd love that too!
it prevents my users to stop saying "K" in a post, one POST!

qubbah


Quote from: qubbah on December 06, 2008, 01:02:24 PM
how about minimum character for topic length? is this mod can do it?

What do you mean?? set a minimun amount of characters to create new topics and post?? This mod can do it


[/quote]

i mean can we set the maximum character in topic? coz some of my user make the topic name very long.

Nibogo

Quote from: softcore on December 08, 2008, 01:28:15 AM
Quote from: NIBOGO on December 05, 2008, 03:31:53 PM
o Support for SMF 2.0 ONLY

Any chances to see this mod on 1.1.7? The old one doesn't work anymore..

http://custom.simplemachines.org/mods/index.php?mod=290

Try the manual edit because works great

Quote from: Nfanthr33 on December 08, 2008, 02:36:49 AM
Quote from: softcore on December 08, 2008, 01:28:15 AM
Quote from: NIBOGO on December 05, 2008, 03:31:53 PM
o Support for SMF 2.0 ONLY

Any chances to see this mod on 1.1.7? The old one doesn't work anymore..

I'd love that too!
it prevents my users to stop saying "K" in a post, one POST!

Glad you like ;)

Quote from: qubbah on December 08, 2008, 07:28:16 AM

Quote from: qubbah on December 06, 2008, 01:02:24 PM
how about minimum character for topic length? is this mod can do it?

What do you mean?? set a minimun amount of characters to create new topics and post?? This mod can do it



i mean can we set the maximum character in topic? coz some of my user make the topic name very long.
[/quote]

Not , this mod cant do that

Ravac

Modifications.serbian_latin-utf8

//Minimun Characters or Words Mod
$txt['minWordLen'] = 'Minimalno reci po poruci';
$txt['minwords_mod'] = 'reci';
$txt['minChar'] = 'Minimum karaktera po poruci';
$txt['minchars_mod'] = 'karaktera';
$txt['minmod_zero'] = '0 da nemam minimuma.';
$txt['error_minWordLen'] = 'Poruka ne sadrzi minimum reci koliko bi trebalo (' . $modSettings['minWordLen'] . ' reci).';
$txt['error_minChar'] = 'Poruka ne sadrzi minimum karaktera koliko bi trebalo (' . $modSettings['minChar'] . ' karaktera).';

Nibogo

Quote from: ravac on December 09, 2008, 05:54:54 AM
Modifications.serbian_latin-utf8

//Minimun Characters or Words Mod
$txt['minWordLen'] = 'Minimalno reci po poruci';
$txt['minwords_mod'] = 'reci';
$txt['minChar'] = 'Minimum karaktera po poruci';
$txt['minchars_mod'] = 'karaktera';
$txt['minmod_zero'] = '0 da nemam minimuma.';
$txt['error_minWordLen'] = 'Poruka ne sadrzi minimum reci koliko bi trebalo (' . $modSettings['minWordLen'] . ' reci).';
$txt['error_minChar'] = 'Poruka ne sadrzi minimum karaktera koliko bi trebalo (' . $modSettings['minChar'] . ' karaktera).';


Thanks Men ^^

landshark

I like the idea of this mod but what would be really useful I think would be to have it so you need a minimum for the post to be counted.

This will prevent people from making a run for a post count membergroup but still allow shorter posts which sometimes are appropriate.

Is this possible with this or is there a mod available that adds this functionality for v2 ?

Smoky "Rider" Blue

couple of errors here NIBOGO...

8: Undefined index: minChar
Apply Filter: Only show the errors from this file
File: /home/****/Themes/default/languages/Modifications.english.php
Line: 520


8: Undefined index: minWordLen
Apply Filter: Only show the errors from this file
File: /home/***/Themes/default/languages/Modifications.english.php
Line: 519
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**


Smoky "Rider" Blue

lol that is good NIBOGO.. here is a list of the mods i have, maybe something got crossed..

1.  Super Admin  1.5  [ Apply Mod ] 
2. Aeva ~ Auto-Embed Video & Audio 5.1.36 [ Uninstall ]
3. Avatar On Board 2.1 [ Uninstall ]
4. Manage Membergroups Permission 1 [ Uninstall ]
5. Ad Managment 2.3.4 [ Uninstall ]
6. Admin Notepad 1.0 [ Uninstall ]
7. AllCaps Notifier 1.0 [ Uninstall ]
8. Banned members avatar 0.1 [ Uninstall ]
9. Attachments In Message 1.2.0 [ Uninstall ]
10. BBC [you] 1.2 [ Uninstall ]
11. BK-SMF Sub-Board 1.5 [ Uninstall ]
12. Custom_Greeting_Depending_on_Time 0.9 [ Uninstall ]
13. EmailValidator 1.0 [ Uninstall ]
14. Custom Fields On Memberlist 1.0 [ Uninstall ]
15. Improved Webmaster Email Settings 1.0 [ Uninstall ]
16. Downloads System 1.1.5 [ Uninstall ]
17. Floating Bar Mod 1.0 [ Uninstall ]
18. Google Member Map 1.0 beta 4 [ Uninstall ]
19. Excellent Smileys 1.0 [ Uninstall ]
20. MoodBobels 2.2 [ Uninstall ]
21. Add IP2Location to Track IP 1.2 [ Uninstall ]
22. Member Color Link 3.0.5a [ Uninstall ]
23. nneonneo's AJAX ShoutBox 1.22 [ Uninstall ]
24. Memberlist_Xrevolution 1.2 [ Uninstall ]
25. Order Custom Profile Fields 1.01 [ Uninstall ]
26. Minimun Characters or Words Mod 1.0 [ Uninstall ]
27. More Spiders 1.2 [ Uninstall ]
28. PortaMx v0.95.1 0.951 [ Uninstall ]
29. script.js Jump Fix 1.0 [ Uninstall ]
30. Order Stickied Topics 1.01 [ Uninstall ]
31. PM to New Members 1.0 [ Uninstall ]
32. Treasury 2.32 [ Apply Mod ]
33. Profil Moderator Managment 1.0.0 [ Uninstall ]
34. Recent Topics On Board Index 1.01 [ Uninstall ]
35. Related Topics 1.3.1 [ Uninstall ]
36. Advanced Reputation System 1.5.2 [ Uninstall ]
37. RSS Feeder 1.0.0 [ Uninstall ]
38. Save PM as HTML 1.0.6 [ Uninstall ]
39. SMF Media Gallery 1.5.2 [ Uninstall ]
40. SMF Arcade 2.5 Beta 2.2 Public [ Uninstall ]
41. SMF Staff Page 1.6 [ Uninstall ]
42. Social Bookmarks for SMF 2 1.1 [ Uninstall ]
43. Stars And Badges 2.1 [ Uninstall ]
44. Who_Xrevolution 1.1 [ Uninstall ]
45. The Rules 1.2 [ Uninstall ]
46. Users Online Today 1.5.4 [ Uninstall ]
47. View Email Permission For SMF 2.0 Beta 4


i really do like the idea behind the mod.. congrats lol.. ;)
**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Mythos94

German translation:

Errors:

$txt['error_minWordLen'] = 'Die Nachricht erfüllt nicht die Mindestanzahl an Wörtern! (' . $modSettings['minWordLen'] . ' words).';
$txt['error_minChar'] = 'Die Nachricht erfüllt nicht die Mindestanzahl an Zeichen! (' . $modSettings['minChar'] . ' characters).';


Admin:

//Minimun Zeichen oder Wörter Mod
$txt['minWordLen'] = 'Mindestanzahl an Wörtern im Post:';
$txt['minwords_mod'] = 'words';
$txt['minChar'] = 'Mindestanzahl an Zeichen im Post:';
$txt['minchars_mod'] = 'characters';
$txt['minmod_zero'] = '0 für kein Minimum.';


I'll hope, that this will help you ;)

Regards


Mythos94

No problem, but I dont know, if I have to use the characters "ö" and "ü" or the HTML characters^^ ... But its like PHP so i decided to use the HTML ... is that right?^^

Nibogo

Quote from: Mythos94 on January 29, 2009, 03:56:30 PM
No problem, but I dont know, if I have to use the characters "ö" and "ü" or the HTML characters^^ ... But its like PHP so i decided to use the HTML ... is that right?^^

HTML characters are used on php so we need that characters , thanks ;)


Advertisement: