• Welcome to Simple Machines Community Forum. Please login or sign up.
January 20, 2022, 12:10:33 AM

News:

Wondering if this will always be free?  See why free is better.


Caps Lock Detection on Login

Started by Spuds, May 02, 2009, 12:55:37 PM

Previous topic - Next topic

Spuds

May 02, 2009, 12:55:37 PM Last Edit: June 27, 2011, 11:51:50 PM by Spuds



Caps Lock Detection on Login 1.1.0.2
Show a warning if the user is typing their password with caps lock activated.
Link to Mod | Comment On This Mod

Author: Spuds
Type: Registration and login
Available since: April 28 2009
Latest version: 1.1.0.1 (June 27 2011)
Compatible with: SMF 1.1.x, SMF 2.0
Available languages: , , , , , ,



What does it do?
Caps Lock Detection on Login shows a warning if the user is typing their password with caps lock activated.

How does it work?
Caps Lock Detection on Login uses javascript to detect caps lock. If caps lock is on, it shows a warning in red.

How to use
To use Caps Lock Detection on Login, download the package from the SMF customization site, and install it via your Package Manger.
The modification should start working, there are no settings to configure.

Support & comments
If you have a problem with this mod, want to comment, or have any question, please post to the modification support topic and I will reply as soon as possible.

Customize this modification
You can use the caps lock detection everywhere in your forum. Simply add this to where you want to show the warning:

<div class="error" style="visibility:hidden" id="div_name">', $txt['capslock_warning'], '</div>

Replace div_name with an ID of your choice. Then add this to the area you want to caps lock protect:

onkeypress="capsLock(event,\'div_name\')"

Replace div_name with the ID of your div, the one you set above.

Other information
Original idea
o Requested by Joe N.
Translation of this mod
o I am always happy to get translations of my work so that more users can use it. If you have translated this modification, please post the translation in the support topic.
Please make sure you have translated everything, and that there are no spelling mistakes etc.
Also, please post both a non-UTF8 version and a UTF8 version.

Changelog
1.1.0.2 | June 27 2011
* Supports SMF 2.0 & 1.1.14
1.1.0.1 | November 9 2009
* Supports SMF 2.0 RC2 and Curve!
1.1 | May 23 2009
* Supports SMF 2.0 RC1-1.
1.0 | April 27 2009
$ The mod was submitted to the SMF mod site.



Sudhakar Arjunan

Working on New Mods & Themes for SMF... Will update soon... My Blog page
My Smf forum : Discuss ITAcumens :: My SMF Forum

TW1ST3D

I wonder...................If we can tweak it to check the Quick Reply Box as well?
Running 2.0 Gold.......SMF Rocks!!

Marcus Forsberg

Thanks, A.SK.

@TW1ST3D,
yes, ofcourse we can. :) Read my description.
Please attach Display.template.php here, or follow the advice in the readme. :)

TW1ST3D

OH Yeah !!!  You are the Man !!!   I'm going to play with this.   Thanks NAS, Good stuff right here !!
Running 2.0 Gold.......SMF Rocks!!

diegolyanky

Nice MOD ! ...

And, if you want to change the color of text, then search for:

<div class="error" style="visibility:hidden" id="quick_login">', $txt['capslock_warning'], '</div>

And replace with:

<strong><font color="#FFFF00"><div class="error" style="visibility:hidden" id="quick_login">', $txt['capslock_warning'], '</div></font></strong>

Where, "font color="#FFFF00" is the color what you want ;)

SMF ... SimpleMachines ... Simple, but complete if you want it ;)

4Kstore


¡¡NEW MOD: Sparkles User Names!!!

Joe N

It has finally been approved!
Well done
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Marcus Forsberg


Hiver101


Marcus Forsberg


Joe N

Hey Nas

Is there any settings for this?
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Marcus Forsberg

Settings? To enable/disable it? No.

Joe N

Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Marcus Forsberg

The entire mod?
Are you using a custom theme?

Joe N

no. I write in capitals in the password but doesn't show up

Joe
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Marcus Forsberg

Could you attach Login.template.php and index.template.php here?

Joe N

Sorry Nas. My ftp thing is playing up and it isn't letting me download stuff. I had to put the code on a doc  that is alright?

See attachment

Joe
Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Marcus Forsberg

Cold you make them .txt instead?

Joe N

Microsoft: "We Need to Imagine Life Without Walls."
I Say: "If There are No Walls Who needs Windows."



My Mods (6) All My Mods Updated To SMF 2.0 RC2 and SMF 1.1.10!


Advertisement: