Advertisement:

Author Topic: Minimun Characters or Words Mod [Supporting SMF 2.0 Final]  (Read 28348 times)

Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,637
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Minimun Characters or Words Mod [Supporting SMF 2.0 Final]
« on: December 05, 2008, 03:31:53 PM »

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.0 ONLY

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

Compatibility:
- 2.0


Changelog:

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

Offline fords8

  • Jr. Member
  • **
  • Posts: 185
  • Gender: Male
  • SMF: Endless Possibilities!
    • Forum Cloud
Re: Minimun Characters or Words Mod
« Reply #1 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!

Offline qubbah

  • Full Member
  • ***
  • Posts: 558
Re: Minimun Characters or Words Mod
« Reply #2 on: December 06, 2008, 01:02:24 PM »
how about minimum character for topic length? is this mod can do it?

Offline Alpay

  • Language Moderator
  • SMF Hero
  • *
  • Posts: 3,594
  • Gender: Male
  • test
    • Personal Web Page
Re: Minimun Characters or Words Mod
« Reply #3 on: December 07, 2008, 05:00:11 AM »
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.).';
« Last Edit: December 07, 2008, 05:02:26 AM by Alpay »

Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,637
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Minimun Characters or Words Mod
« Reply #4 on: December 07, 2008, 06:17:53 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 ;)

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


Offline Sakae

  • Full Member
  • ***
  • Posts: 498
  • Gender: Male
    • TigreLOG
Re: Minimun Characters or Words Mod
« Reply #5 on: December 08, 2008, 01:28:15 AM »
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

Offline tyhgdgh

  • Jr. Member
  • **
  • Posts: 284
  • Gender: Male
  • thismany
    • VGRecordist
Re: Minimun Characters or Words Mod
« Reply #6 on: December 08, 2008, 02:36:49 AM »
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!

Offline qubbah

  • Full Member
  • ***
  • Posts: 558
Re: Minimun Characters or Words Mod
« Reply #7 on: December 08, 2008, 07:28:16 AM »

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.

Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,637
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Minimun Characters or Words Mod
« Reply #8 on: December 08, 2008, 12:07:45 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

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 ;)


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

Offline Ravac

  • Full Member
  • ***
  • Posts: 580
  • Gender: Male
Re: Minimun Characters or Words Mod
« Reply #9 on: December 09, 2008, 05:54:54 AM »
Modifications.serbian_latin-utf8

Code: [Select]
//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).';

Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,637
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Minimun Characters or Words Mod
« Reply #10 on: December 09, 2008, 04:46:05 PM »
Modifications.serbian_latin-utf8

Code: [Select]
//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 ^^

Offline landshark

  • Semi-Newbie
  • *
  • Posts: 44
Re: Minimun Characters or Words Mod
« Reply #11 on: January 02, 2009, 01:35:32 PM »
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 ?

Offline Smoky "Rider" Blue

  • SMF Hero
  • ******
  • Posts: 1,682
  • Gender: Female
  • It's all in your head! :p
    • smoky.blue.01 on Facebook
Re: Minimun Characters or Words Mod
« Reply #12 on: January 13, 2009, 01:53:47 PM »
couple of errors here NIBOGO...

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

Code: [Select]
8: Undefined index: minWordLen
Apply Filter: Only show the errors from this file
File: /home/***/Themes/default/languages/Modifications.english.php
Line: 519
Currently in secondlife, contact me for any image creation via "pm" thanks!

**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**


Offline Smoky "Rider" Blue

  • SMF Hero
  • ******
  • Posts: 1,682
  • Gender: Female
  • It's all in your head! :p
    • smoky.blue.01 on Facebook
Re: Minimun Characters or Words Mod
« Reply #14 on: January 13, 2009, 03:02:29 PM »
lol that is good NIBOGO.. here is a list of the mods i have, maybe something got crossed..

Code: [Select]
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.. ;)
Currently in secondlife, contact me for any image creation via "pm" thanks!

**Take the time to remember friendships and family.. Sometimes it's all we have, and missed very much**

Offline Mythos94

  • Newbie
  • *
  • Posts: 5
Re: Minimun Characters or Words Mod
« Reply #15 on: January 29, 2009, 03:10:33 PM »
German translation:

Errors:
Code: [Select]
$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:
Code: [Select]
//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


Offline Mythos94

  • Newbie
  • *
  • Posts: 5
Re: Minimun Characters or Words Mod
« Reply #17 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?^^

Offline Nibogo

  • SMF Hero
  • ******
  • Posts: 6,637
  • Gender: Male
    • smfpacks on Facebook
    • @smfpacks on Twitter
    • SMFPacks
Re: Minimun Characters or Words Mod
« Reply #18 on: January 29, 2009, 04:18:57 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 ;)