![]() |
Caps Lock Warning
What it does.
This mini-mod will detect if the password entered is in all caps and alert the user that caps lock may be on. Not much of a mod I know, but this is my first. Step 1. Upload tooltip.js to the your forum root (website.com/, website.com/forums/ etc.). Step 2. In navbar at the following at the top. HTML Code:
<script type="text/javascript" src="tooltip.js"></script> find the following in navbar or header (possibly other template, dependent on style.): PHP Code:
PHP Code:
Test by putting caps lock on and entering a password such as "AAAA" you should get a small tooltip as a warning (may take a second to load). German Version |
Note!
If you want to use this validation in any other text inputs just add the following attribute to the <input> tag of said text input. HTML Code:
onkeydown="caps(this.value);" Find in reputation bit: Code:
<input type="text" class="bginput" size="40" maxlength="250" name="reason" id="reason_$postid"/> Code:
<input type="text" class="bginput" size="40" maxlength="250" name="reason" id="reason_$postid" onkeydown="caps(this.value);" /> ________________ Also, do not try to move the script include to the <head>, the object will throw an error. |
I dont find in navbar the code
Code:
<td><input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" /></td> |
My step 3 is:!!!
Find in template "header"! Code:
<input name="vb_login_password" id="navbar_password" type="password" tabindex="102" class="forms3" /> Replace with! Code:
<input name="vb_login_password" id="navbar_password" type="password" tabindex="102" class="forms3" onkeydown="caps(this.value);" /> Thats the right way and it goes ;):D And the German version as attachment! |
Great I've updated it.
Thanks for the translation! |
you must type "find the following in header" and not "find the following in navbar" ;)
|
It's in the navbar for me.
|
it all depends on the style to where the code is, I have several skins on my site and in 70% it's in the navbar and the rest it's in the header
|
Updated instructions! :)
|
does this work for greek posts ?
|
All times are GMT. The time now is 01:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|