phpBBHacks.com - System recognising log-in details, whether caps on or off ?
Get Photoshop help and share your work at PhotoshopForums.com
StatsForums Home   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in
FAQFAQ   SearchSearch   MemberlistMemberlist   TutorialsTutorials   ContactContact Us
Username:    Password:
Remember Me?    
   I Lost My Password!
Bookmark and Share
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 3 Hack Requests and Development
 See a User Guidelines violation? Please contact us.
Author Message

-Stevie-
Well Known User

Joined: 21 May 2010
Posts: 196

PostPosted: August 19th 2010, 2:20 am    Post subject: System recognising log-in details, whether caps on or off ? Reply with quote

When members are trying to log-in and if they forget to take their caps lock off, it doesn't recognise their details. Is there any way of coding it, so that the system recognises it, either way please?
_________________
www.phpbbhacks.com
Back to top
View user's profile Send private message

femu
Well Known User

Joined: 07 Jul 2007
Posts: 206

PostPosted: August 19th 2010, 10:31 pm    Post subject: Re: System recognising log-in details, whether caps on or of Reply with quote

-Stevie- wrote:
When members are trying to log-in and if they forget to take their caps lock off, it doesn't recognise their details. Is there any way of coding it, so that the system recognises it, either way please?


First of all, I think it's only relevant for the password. The username can be written with capital letters or not .... So try following (got it from here):

Open styles/your_style/template/overall_header.html, Search:
Code:
</head>


BEFORE add:
Code:

<script>
function capLock(e){
kc = e.keyCode?e.keyCode:e.which;
sk = e.shiftKey?e.shiftKey:((kc == 16)?true:false);
if(((kc >= 65 && kc <= 90) && !sk)||((kc >= 97 && kc <= 122) && sk))
document.getElementById('divMayus').style.visibility = 'visible';
else
document.getElementById('divMayus').style.visibility = 'hidden';
}
</script>


Then open styles/your_style/template/login_body.html search for:
Code:
<input type="password" tabindex="2" id="{PASSWORD_CREDENTIAL}" name="{PASSWORD_CREDENTIAL}" size="25" class="inputbox autowidth" />


And REPLACE with:
Code:
<input type="password" tabindex="2" id="{PASSWORD_CREDENTIAL}" name="{PASSWORD_CREDENTIAL}" size="25" class="inputbox autowidth" onkeypress="capLock(event)" />
         <div id="divMayus" style="visibility:hidden">Caps Lock is on.</div>


Hope this helps .....
_________________
Regards,
femu

NO SUPPORT VIA EMAIL OR PM!! Please use the forum!
[My modifications homepage] - [My main page (German only!)]
Back to top
View user's profile Send private message

-Stevie-
Well Known User

Joined: 21 May 2010
Posts: 196

PostPosted: September 17th 2010, 1:19 pm    Post subject: Reply with quote

Hi Femu, many thanks for the help on this, it's appreciated. One thing, in the example on the other site from your post, you get a visible sign / warning that the caps lock is on, but what I'm wanting, is that if the pw was, for example, bertie - whether the person typed in BERTIE, Bertie, or bertie the login system would still accept it, with no visible warning / message.
_________________
www.phpbbhacks.com
Back to top
View user's profile Send private message

femu
Well Known User

Joined: 07 Jul 2007
Posts: 206

PostPosted: September 17th 2010, 7:56 pm    Post subject: Reply with quote

Hi Stevie,

something like that isn't suggested. It's a kind of a security feature to have mixed upper-/lowercase characters.

So it's fine to say "Attention! You have caps lock on", but to allow having the possibility to wirting the password in every possible way is a real risk of being hacked.
_________________
Regards,
femu

NO SUPPORT VIA EMAIL OR PM!! Please use the forum!
[My modifications homepage] - [My main page (German only!)]
Back to top
View user's profile Send private message

-Stevie-
Well Known User

Joined: 21 May 2010
Posts: 196

PostPosted: September 20th 2010, 6:49 am    Post subject: Reply with quote

Thanks Femu - will work on that
_________________
www.phpbbhacks.com
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    phpBBHacks.com Support Forums Forum Index -> phpBB 3 Hack Requests and Development All times are GMT - 6 Hours
Page 1 of 1
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Links: Big Message Boards - Free JavaScript - phpBB2 - phpbb styles - Suporte phpBB - phpBB Česky - phpBB Turkiye - phpBBArabia.com - phpBB-fr.com - Romanian phpBB online community - phpBB-TW.net - phpBBservice.nl - phpBB Brasil - phpBB Portugal - phpBBpersian.com

Network: iFroggy Hosting - PhotoshopForums.com - Managing Online Forums - ManagingCommunities.com - CommunityAdmins.com - KarateForums.com - Bad Boy Blog - SodaRatings.com - Patrick O'Keefe

< Advertising - Contact Us - Disclosure Policy - Staff - User Guidelines >

Copyright © 2001-2012. iFroggy Network, phpBBHacks.com. All Rights Reserved. Privacy Policy. We Support phpBBHacks.com (of course!).
Powered by phpBB © phpBB Group. phpBB SEO. We are in no way affiliated with the phpBB Group. phpBB is copyright to the phpBB Group.