![]() |
Prevent shouting in usernames.
What's this do?
If you're like me you hate users who register with names like USERNAME. What this mini-hack does is transform all uppercase usernames upon registration to lowercase with an uppercase first letter. This "borrows" a function from the posting functions, therefore if you've got "prevent shouting" applied for posts it will also effect usernames. Preventing shouting in usernames. It will still allow all lowercase names or mixed case names to register properly. Time to intall: less than 5 minutes Queries: 0 Files to edit:1 Templates to edit: 0 Open register.php find: PHP Code:
BELOW it add: PHP Code:
upload Your done! This does not effect users already registered. It only prevents new registrations form shouting usernames. There shouldn't be any support needed, but if there is, I'll handle it exclusively in this thread. Version history ------------------------------- v1.00 //initial release v1.1 // updated to only prevent all uppercase usernames. |
you don't need the ucwords function and the strtolower, ucwords should if i read correctly convert all but the first letter to lower, or make all but the first letter to lower.
also by installing this hack you make sure that every username starts with an Upper and the rest are Lower, that could be annoying for a user like me who has his whole username lower by choice. what would be nice is if you could check if it was shouting then only convert the shouted usernames to lowercase. oh well bar that, nice addition, it's always nice to see something new being released. :) |
ucwords will not convert characters internally to lowercase so usernames would still appear as UsERnaMe. Therefor the strtolower is necessary.
I realize some users prefer an all lowercase username. That may be an addition to this hack. But right now, this prevents most odd case usernames. |
Okay.. I've updated the hack. It will now only prevent all uppercase names if you have your vbOptions set to prevent shouting.
|
Quote:
good luck with it :) |
gee. I guess no one wanted this at all :)
|
That seemed to work great. Thank You!
|
Installed! Thanks!
|
Thanks ... gettin' a Hangover from those members :tired:
** Clicks Install ** |
you know what i would like
make them go back and edit it...return an error make them mend their riduculous names themselves jeez i cant stand people that shout with their names i even have it in big bold letters...do not use all caps! but they still do heh, found it https://vborg.vbsupport.ru/showthrea...=495219#495219 :up: |
All times are GMT. The time now is 08:23 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|