![]() |
Disable certain characters in usernames
Resolved
Hello! So despite the very obvious warning I put on my registration page I still have users registering with special characters in their usernames, which makes it so that their profiles become unviewable and makes for some issues. Is there a way to disable it so that if they attempt to register with a special character in the username it won't register them, but instead gives the warning "Sorry, please only use letters, numbers, or spaces in your username." |
OK, so there's this chunk of code;
Code:
if($username == "SYSTEM"){ Some folks use this sort of code; PHP Code:
|
To check that usernames only have letters, numbers, and spaces, find the usernamevalidate() function in classes/class_registervalidator.php and replace the function with this:
PHP Code:
|
Awesome, thank you!
Also- Pachooooo! <3 |
All times are GMT -5. The time now is 08:36 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.