View Full Version : Case sensitive.
I asked a while ago but got no answer.
How can I go about making it so usernames aren't case sensitive?
BMR777
06-01-2009, 08:34 PM
This would require a LOT of file edits and I'm not even sure if it is possible.
Eh... it's kind of annoying having like...
Dan, DaN, DAn, dAN, dAn, you know?
BMR777
06-01-2009, 08:37 PM
Is it just that you want to prevent duplicate usernames? If that's the case, then there may be a workaround.
Edit: What I thought would work I don't think would now. I have to look into this. :)
Okay, I just want 1 name per person. XD
Saphira
06-01-2009, 08:54 PM
You could replicate each user's name in the database on signup to a "friendly name", all lower case, and stop dupes that way.... Just an idea.
I wouldn't be sure how to do that, so if there's a file edit, I'd like that better XD
Bloodrun
06-01-2009, 09:05 PM
you could preg_replace all new usernames, and turn all capital letters to lower case.
But I'd like people to keep their unique caps in their username, just not repeats D:
Bloodrun
06-01-2009, 09:09 PM
But I'd like people to keep their unique caps in their username, just not repeats D:
Still, you can use preg_replace to make sure all but the first letter is lower cased.
How would I edit the already made users?
Still looking for help with this.
Bloodrun
09-19-2009, 08:08 AM
How would I edit the already made users?
Sorry about that, I thought someone finished this for you.
Anyway you would have to edit each member by hand.. unless you made an auto script that did it for you, but I wouldn't suggest it, just because something else could mess up along the line.
I really do apologize for making you wait this long.
So, all I'd have to do is change it so preg_replace to disclude A-Z, right?
And besides this, isn't there any other way to make it so if someone's username is AlAmAn and they type in alaman it logs them in?
Bloodrun
09-22-2009, 06:23 AM
So, all I'd have to do is change it so preg_replace to disclude A-Z, right?
Yes that would be all you have to do.
And besides this, isn't there any other way to make it so if someone's username is AlAmAn and they type in alaman it logs them in?
To be honest, if there is, I don't think I know how to do that. Meaning I know it, and don't remember, or I actually don't know how to do it. But If I am not mistaken the User Script isn't written for that to be a possibility.
But I would suggest asking Brian, if anyone he would probably know how to do something like that. Because if I am not mistaken, the User Script uses the Specific Username and not the User ID.
But test it out, try logging in with a name that has atleast one caps in it, and sign in without making it caps and see what happens.
God of
09-22-2009, 11:31 AM
Wouldn't a simple javascript to force their to be no caps work?
Bloodrun
09-23-2009, 05:48 PM
Wouldn't a simple javascript to force their to be no caps work?
the php command would be a lot more simpler then the javascript command, and he/she wants a way to fix all the current names with More then one caps as well.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.