Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Caps Lock Warning Details »»
Caps Lock Warning
Version: 1.01, by alexgeek alexgeek is offline
Developer Last Online: Sep 2008 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.6.8 Rating:
Released: 12-23-2007 Last Update: Never Installs: 17
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

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>
Step 3.
find the following in navbar or header (possibly other template, dependent on style.):
PHP Code:
<input name="vb_login_password" id="navbar_password" type="password" tabindex="102" class="forms3"  /> 
Replace it with:
PHP Code:
<input type="password" class="bginput" style="font-size: 11px" name="vb_login_password" id="navbar_password" size="10" tabindex="102" onkeydown="caps(this.value);" /> 
Done!

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-24-2007, 01:18 AM
alexgeek alexgeek is offline
 
Join Date: Dec 2007
Location: UK
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);"
e.g. To check when giving a rep comment.
Find in reputation bit:
Code:
<input type="text" class="bginput" size="40" maxlength="250" name="reason" id="reason_$postid"/>
Add in the event:
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.
Reply With Quote
  #3  
Old 12-24-2007, 06:23 AM
skrazydogz skrazydogz is offline
 
Join Date: Apr 2007
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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>
Reply With Quote
  #4  
Old 12-24-2007, 06:28 AM
skrazydogz skrazydogz is offline
 
Join Date: Apr 2007
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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


And the German version as attachment!
Reply With Quote
  #5  
Old 12-24-2007, 07:07 AM
alexgeek alexgeek is offline
 
Join Date: Dec 2007
Location: UK
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great I've updated it.
Thanks for the translation!
Reply With Quote
  #6  
Old 12-24-2007, 07:24 AM
skrazydogz skrazydogz is offline
 
Join Date: Apr 2007
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

you must type "find the following in header" and not "find the following in navbar"
Reply With Quote
  #7  
Old 12-24-2007, 08:35 AM
alexgeek alexgeek is offline
 
Join Date: Dec 2007
Location: UK
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's in the navbar for me.
Reply With Quote
  #8  
Old 12-24-2007, 08:59 AM
daz1967's Avatar
daz1967 daz1967 is offline
 
Join Date: Mar 2007
Location: birmingham
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #9  
Old 12-24-2007, 10:19 AM
alexgeek alexgeek is offline
 
Join Date: Dec 2007
Location: UK
Posts: 128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Updated instructions!
Reply With Quote
  #10  
Old 12-25-2007, 06:05 PM
Konstantinos Konstantinos is offline
 
Join Date: Apr 2006
Posts: 443
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

does this work for greek posts ?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 11:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04556 seconds
  • Memory Usage 2,300KB
  • Queries Executed 23 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_code
  • (2)bbcode_html
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete