Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   Case sensitive. (http://www.mysidiaadoptables.com/forum/showthread.php?t=906)

Xius 06-01-2009 08:34 PM

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

RE: Case sensitive.
 
This would require a LOT of file edits and I'm not even sure if it is possible.

Xius 06-01-2009 08:36 PM

RE: Case sensitive.
 
Eh... it's kind of annoying having like...
Dan, DaN, DAn, dAN, dAn, you know?

BMR777 06-01-2009 08:37 PM

RE: Case sensitive.
 
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. :)

Xius 06-01-2009 08:43 PM

RE: Case sensitive.
 
Okay, I just want 1 name per person. XD

Saphira 06-01-2009 08:54 PM

RE: Case sensitive.
 
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.

Xius 06-01-2009 08:59 PM

RE: Case sensitive.
 
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

RE: Case sensitive.
 
you could preg_replace all new usernames, and turn all capital letters to lower case.

Xius 06-01-2009 09:07 PM

RE: Case sensitive.
 
But I'd like people to keep their unique caps in their username, just not repeats D:

Bloodrun 06-01-2009 09:09 PM

RE: Case sensitive.
 
Quote:

Originally Posted by Xius
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.

Xius 06-02-2009 03:30 PM

RE: Case sensitive.
 
How would I edit the already made users?

Xius 09-15-2009 08:07 PM

RE: Case sensitive.
 
Still looking for help with this.

Bloodrun 09-19-2009 08:08 AM

RE: Case sensitive.
 
Quote:

Originally Posted by Xius
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.

Xius 09-20-2009 12:00 PM

RE: Case sensitive.
 
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

RE: Case sensitive.
 
Quote:

Originally Posted by Xius
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

RE: Case sensitive.
 
Wouldn't a simple javascript to force their to be no caps work?

Bloodrun 09-23-2009 05:48 PM

RE: Case sensitive.
 
Quote:

Originally Posted by alex clone
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.


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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.