Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-09-2015, 12:45 AM
MikiHeart's Avatar
MikiHeart MikiHeart is offline
Premium Member
 
Join Date: Apr 2009
Posts: 187
Gender: Female
Credits: 20,821
MikiHeart
Default Case Sensitive Usernames

Aaand I'm back!

I'm helping my younger sister with her site now that she's ready to proceed.

One thing that has always bugged me with the script, since it's very creation, is that usernames are case sensitive. I'm one of those people who like having the first letter of my username as uppercase.

However, although I know that I need to put in the uppercase, it makes it confusing for users.

I set my username is "Miki" When installing the script. But if I sign in as "miki" it won't work.

The way it use to be was that someone can register as "Miki" "miki" "MiKi" or "mIkI" and so on and so fourth. I'm wondering if that's still the case?

I would really love to be able to remove the case sensitiveness because in general, sites don't use that. It bugs me, and I don't want others to be able to register a name the same as an admin, but in different casing.
Reply With Quote
  #2  
Old 01-09-2015, 01:52 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 90,177
Kyttias is on a distinguished road
Default

Although not an instruction on where and how to fix (mostly because I'm off to bed in a few), I read somewhere once that the best way to make usernames feel case insensitive during the log-in process is to use a strtolower() function on both the username entered and on the data collected from the database. It won't matter how it's stored in the database or how the user entered it, as both are being converted to lowercase strings just during the checking process.

However, checking like this should also be done during the registration process, of course, to convert whatever the user submitted to lowercase, and running against the database usernames (also converted to lowercase), to make sure no user names exist sharing those letters (regardless of case).

In no case are the usernames being stored or displayed as anything other than how they were initially registered, it'd be just for checking on the backend. (Although some propose saving a second column that is a version of the user's username, only lowercase, for faster checking.)

Would anyone else like to take it from here?

(PS: While we're at fixing the registration usernames, this bug over here needs fixing, too.)
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 01-09-2015 at 01:55 AM.
Reply With Quote
  #3  
Old 01-09-2015, 02:46 AM
MikiHeart's Avatar
MikiHeart MikiHeart is offline
Premium Member
 
Join Date: Apr 2009
Posts: 187
Gender: Female
Credits: 20,821
MikiHeart
Default

Okay, thank you for that. I'm a little rusty with php, but I'll have to start getting back into it.

I can google further on stuff like this, and I'll post my findings and if I'm able to get it done. Or I'll ask for further help.

As for the bug, I did have a look at that. I'm more curious as to why usernames are allowed to have Apostrophes to begin with. Personally, I think that users shouldn't have spaces either. It should be letters, numbers, and hythens and underscores. I think that's what I would try to change my own website to.

But then when I think about it, I guess spaces aren't too bad, if you're going to have NPCs and stuff. (Which I plan to do, as well as having a forum at some point, but that's a long way off)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Usernames not transferring to forum database. NobodysHero Questions and Supports 3 02-11-2014 12:09 AM
Case sensitive. Xius Questions and Supports 16 09-23-2009 05:48 PM
Usernames case sensitive. Xius Questions and Supports 4 05-06-2009 08:30 PM
Adoptables Showing Max Level when that isn't the case rosepose Questions and Supports 17 03-18-2009 06:42 PM


All times are GMT -5. The time now is 03:01 PM.

Currently Active Users: 10299 (0 members and 10299 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636