News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Dissalow all caps in usernames?

Started by spiros, December 14, 2012, 06:44:09 PM

Previous topic - Next topic

spiros

I.e. if x number of all caps detected then auto convert username to lowercase.

Colin

Isn't this more of a mod request or coding discussion question, Spiros?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

spiros

Indeed, sorry, I have no right to move.

Colin

Not a worry, coding discussion or mod request?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

spiros

Coding I think; if anyone wants to mod it though, I would not object :)

IchBin™

You might want to provide more details for anyone who wants to help you. Do you want to check this on registration? Do you want to check it when people change it in their profile?

This would be the kind of code you'd want to use to check I suppose. Just depends on when you want to check it.

if(strtoupper($username) == $username)
    $username = strtolower($username);
IchBin™        TinyPortal

spiros

Well, for both cases really, so that only the first letter could be allowed to be capital.

Advertisement: