Advertisement:

Author Topic: AllCaps Blocker (ex-AllCaps Notifier) - v2.0 is out! [10. 04. 2009.]  (Read 39354 times)

Offline Branko.

  • SMF Hero
  • ******
  • Posts: 3,330
  • Gender: Male
  • U zemlji slijepih, jednooki je kralj
    • SATForum
AllCaps Blocker (ex-AllCaps Notifier)
by X3mE, version 2.0



Description


This mod will tweak the editor box (works also with the WYSIWYG Quick Reply mod for SMF 2) to show a warning once the user enters a few uppercase letters in a row (called ALL CAPS). The warning may be shown only once per page load, or every time the "limit" is breached, as determined in the Admin Control Panel.

It can also prevent the user from posting, if the ALLCAPS text remains in those boxes.


Screenshot




Live Demo: http://x3me.iz.rs/index.php?board=5.0


Changelog


* Version 2.0 (10. 04. 2009.)
- Changed name to AllCaps Blocker
- Works with Unicode characters
- Improved detection - skips spaces and punctuation marks
- Added a possibility to set the number of successtive chars to be considered writing in ALLCAPS in the ACP (default: 6)
- Added a possibility to warn always, not just the first time
- It is now possible to prevent posting if ALLCAPS text remains (off by default)
- Checks also the Post Subject box now
- Works with AJAX inline edits now
- Works with default Quick Reply in SMF 2 now
- Removed compatibility for SMF 1.1.x

* Version 1.0 (20. 11. 2008.)
- Initial version for SMF 2.0 Beta 4 and 1.1.7


Notes


For SMF 2.x, install AllCaps_Blocker_v2.0_SMF_2.x.zip, or AllCaps_Blocker_v2.0_SMF_2.x-WYSIWYG.zip if you have WYSIWYG Quick Reply installed.

If you wish to install it on 1.1.x, the old 1.0 version is still available. There are 2 versions of the installation file - one for SMF 1.1.x, and one for SMF 1.1.x with Enhanced Quick Reply installed. If you wish to uninstall Enhanced Quick Reply, you will have to uninstall AllCaps Notifier first.

Please post all your support questions and comments in the support thread. You can also use the Issue Tracker on the Demo Website.


Languages


Languages included:
- English (english, english-utf8)
- Serbian (serbian, serbian-utf8, serbian-utf8-lat, serbian_latin-utf8)

To translate it to your own language, add the translation for

Code: [Select]
$txt['ALL_CAPS_NOTIFIER'] = 'It appears that you are trying to write using ALLCAPS.\n\nPlease be aware this is against forum rules.';
$txt['allcaps_mods_cat'] = 'AllCaps Settings';
$txt['allcaps_number_of_chars'] = 'Number of successive uppercase chars to be considered writing in AllCaps (spaces and punctiation chars are not counted):';
$txt['allcaps_prevent_posting'] = 'Prevent posting if AllCaps text remains in the post text/subject?';
$txt['allcaps_show_more_than_once'] = 'Show the warning multiple times (if not checked the warning will only be shown the first time)?';
$txt['allcaps_settings_title'] = 'AllCaps Settings';
$txt['allcaps_prevented_warning'] = 'Your text or subject contains ALLCAPS text, therefore you cannot post.\n\nPlease correct it and try again.';

in the appropriate Modifications.language.php file. You are welcome to post your translations in the support topic.


Donations


If you like this mod, please donate to support its further development. Any amount would be highly appreciated. Thank you.


« Last Edit: April 10, 2009, 05:32:37 PM by X3mE »
Strong people don't put others down, they lift them up.
A clever person solves a problem. A wise person avoids it.

Offline kizer

  • Jr. Member
  • **
  • Posts: 383
  • Gender: Male
    • Links4Jeeps.com
Re: AllCaps Notifier
« Reply #1 on: December 03, 2008, 12:44:10 AM »
Installed it, but doesn't seem to work. Is there a setting in the admin panel?
Own a Jeep? Links4Jeeps.com

Offline kizer

  • Jr. Member
  • **
  • Posts: 383
  • Gender: Male
    • Links4Jeeps.com
Re: AllCaps Notifier
« Reply #2 on: December 03, 2008, 01:07:22 AM »
Nevermind I didn't type enough caps for it to work. Thats pretty cool
Own a Jeep? Links4Jeeps.com

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: AllCaps Notifier
« Reply #3 on: December 03, 2008, 03:55:29 AM »
excellent
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline edi67

  • SMF Hero
  • ******
  • Posts: 1,532
  • Gender: Male
  • Italian Supporter
    • CrazyZone
Re: AllCaps Notifier
« Reply #4 on: December 03, 2008, 04:12:52 AM »
only one little suggestion, message of warning disappear if you press ok or continue to write will be very good is message will appear again if user continue to write in uppercase , and not only 1 time but all time that user continue write in that way

by the way thx
CrazyZone - My SMF Forum


From the difficult the hardening of the man you can see

Offline villasg

  • Full Member
  • ***
  • Posts: 484
Re: AllCaps Notifier
« Reply #5 on: December 03, 2008, 04:52:30 AM »
Very good idea but only for english language

I install the
AllCaps_Notifier_v1.0_SMF_1.1.x.zip
BUT work only in english writing .
My forum is in greek language and if  i write in greek the mod dont work ......


Offline Afro

  • SMF Hero
  • ******
  • Posts: 1,855
  • Gender: Male
  • http://twitter.com/afrowall
    • Global Runs
Re: AllCaps Notifier
« Reply #6 on: December 03, 2008, 04:57:44 AM »
Great mod you have there...i am wondering if you can also create the mod that changes locked caps to small letter..
thanks..(or maybe show me if it is already here)

Offline X3mE

  • Full Member
  • ***
  • Posts: 476
  • Gender: Male
  • The more I C, the less I see.
    • Lolmao.info - The site that makes you laugh!
Re: AllCaps Notifier
« Reply #7 on: December 03, 2008, 05:53:31 AM »
only one little suggestion, message of warning disappear if you press ok or continue to write will be very good is message will appear again if user continue to write in uppercase , and not only 1 time but all time that user continue write in that way

by the way thx

Well, showing it all the time can be very annoying for users, but there might be an option for that in the next version.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Offline X3mE

  • Full Member
  • ***
  • Posts: 476
  • Gender: Male
  • The more I C, the less I see.
    • Lolmao.info - The site that makes you laugh!
Re: AllCaps Notifier
« Reply #8 on: December 03, 2008, 05:55:03 AM »
Nevermind I didn't type enough caps for it to work. Thats pretty cool

I didn't have enough free time to play around, but in the next version there will surely be a possibility to set the number of uppercase letters to trigger this alert (now you'd had to do it manually). :)
« Last Edit: December 03, 2008, 06:01:06 AM by X3mE »
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Offline X3mE

  • Full Member
  • ***
  • Posts: 476
  • Gender: Male
  • The more I C, the less I see.
    • Lolmao.info - The site that makes you laugh!
Re: AllCaps Notifier
« Reply #9 on: December 03, 2008, 05:58:25 AM »
Very good idea but only for english language

I install the
AllCaps_Notifier_v1.0_SMF_1.1.x.zip
BUT work only in english writing .
My forum is in greek language and if  i write in greek the mod dont work ......



Use this mod: http://custom.simplemachines.org/mods/index.php?mod=615

Or add the greek translation to the file Modification.greek-or-smthing.php in your languages folder, add the following line:

$txt['ALL_CAPS_NOTIFIER'] = 'Type the alert text here';

I'd be happy to include in the next version it if you post here the exact file name and translation.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Offline X3mE

  • Full Member
  • ***
  • Posts: 476
  • Gender: Male
  • The more I C, the less I see.
    • Lolmao.info - The site that makes you laugh!
Re: AllCaps Notifier
« Reply #10 on: December 03, 2008, 06:00:25 AM »
Great mod you have there...i am wondering if you can also create the mod that changes locked caps to small letter..
thanks..(or maybe show me if it is already here)

No, I don't think something like that exists, but it is a nice idea for a new mod :)
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Offline villasg

  • Full Member
  • ***
  • Posts: 484
Re: AllCaps Notifier
« Reply #11 on: December 03, 2008, 06:04:23 AM »
Hi before install the mod i have make the translation readi in modification_1.xml

Code: [Select]
<file name="$languagedir/Modifications.greek-utf8.php" error="skip">
<operation>
<search position="end" />
<add><![CDATA[
$txt['ALL_CAPS_NOTIFIER'] = 'Βλέπω ότι προσπαθείτε να γράψετε μόνο με κεφαλαία .\n\nΠαρακαλώ σημειώστε ότι αυτό είναι ενάντια στους κανόνες του φόρουμ.';
]]></add>
</operation>
</file>

My problem is the mod DONT recognize the greek cap letters ( my forum is utf-8 ) .

Offline villasg

  • Full Member
  • ***
  • Posts: 484
Re: AllCaps Notifier
« Reply #12 on: December 03, 2008, 06:20:44 AM »

Use this mod: http://custom.simplemachines.org/mods/index.php?mod=615

Or add the greek translation to the file Modification.greek-or-smthing.php in your languages folder, add the following line:

$txt['ALL_CAPS_NOTIFIER'] = 'Type the alert text here';

I'd be happy to include in the next version it if you post here the exact file name and translation.

I install the Load Standard Language 102
And after the mod .
have again the same results .
IF i write in greek ( caps ) the mod dont work

Offline X3mE

  • Full Member
  • ***
  • Posts: 476
  • Gender: Male
  • The more I C, the less I see.
    • Lolmao.info - The site that makes you laugh!
Re: AllCaps Notifier
« Reply #13 on: December 03, 2008, 06:27:40 AM »
Hm, that's true :S... I'll try to find a way to do this and update the mod. Thanks for the translation btw.
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Offline villasg

  • Full Member
  • ***
  • Posts: 484
Re: AllCaps Notifier
« Reply #14 on: December 03, 2008, 06:28:57 AM »
Ok thanks my friend

aishaweb

  • Guest
Re: AllCaps Notifier
« Reply #15 on: December 03, 2008, 08:09:04 AM »
only one little suggestion, message of warning disappear if you press ok or continue to write will be very good is message will appear again if user continue to write in uppercase , and not only 1 time but all time that user continue write in that way

by the way thx

Well, showing it all the time can be very annoying for users, but there might be an option for that in the next version.

Its supposed to be annoying for users typing in all caps.

Offline X3mE

  • Full Member
  • ***
  • Posts: 476
  • Gender: Male
  • The more I C, the less I see.
    • Lolmao.info - The site that makes you laugh!
Re: AllCaps Notifier
« Reply #16 on: December 03, 2008, 06:16:59 PM »
Yes, I agree, but whoever wants to do it on purpose is not likely to stop even after an alert after every x characters :)
This should only be a warning, and also there are cases when AllCaps is necessary, like abbreviations, etc. And then it could be annoying to non-rude users.

But, as I said, there will probably be a setting for that as well. ;)
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Offline pinoypetfinder

  • Jr. Member
  • **
  • Posts: 188
    • Pinoy Pet Finder
Re: AllCaps Notifier
« Reply #17 on: December 04, 2008, 12:09:29 AM »
question before i install the mod (it looks great but might be better if it will only stop CAPS on the "subject"). if someone posted a url with a capital letters included (file name example is www.mysite.com/MYFILENAMEINCAPS.JPG << will the warning pop up too? because i know some server are very strict with caps and small letter file names - including ours :/

Offline X3mE

  • Full Member
  • ***
  • Posts: 476
  • Gender: Male
  • The more I C, the less I see.
    • Lolmao.info - The site that makes you laugh!
Re: AllCaps Notifier
« Reply #18 on: December 04, 2008, 06:36:29 AM »
if it will only stop CAPS on the "subject".

I'll implement this in the next version.

if someone posted a url with a capital letters included (file name example is www.mysite.com/MYFILENAMEINCAPS.JPG << will the warning pop up too? because i know some server are very strict with caps and small letter file names - including ours :/

It only works while typing, on the onKeyPress JavaScript event. To make it work while copy/pasting, it would have to use the onChange event and scan the entire text after every change, which isn't very practical.


Anyway, I tried to make it work with all Unicode characters, but I just can't find a solution in JavaScript, not even the toUpperCase/toLowerCase methods work with Unicode characters... I'll see if I could find a workaround somehow...
Kids, you tried your best and you failed miserably. The lesson is - never try.

My mods:
OS & Browser Detection (1.5 is out!) | Skype Profile Field | GTalk Profile Field | AllCaps Blocker | SMF Syntax Highlighter (Beta) + 2 in development!

Personal websites:
Mobilize.rs (and forum) | Lolmao.info



Offline pinoypetfinder

  • Jr. Member
  • **
  • Posts: 188
    • Pinoy Pet Finder
Re: AllCaps Notifier
« Reply #19 on: December 04, 2008, 08:44:27 AM »
sounds great, will look forward to it. thank you :)