It appears that someone signing up with an all number username can complete the task but posts in the forum show up with a username of 'Undefined'.
2 questions. How can I stop people from using numbers and how can I change someones username?
It appears that someone signing up with an all number username can complete the task but posts in the forum show up with a username of 'Undefined'. 2 questions. How can I stop people from using numbers and how can I change someones username? http://towtalk.net ... Hosted by Zarconia.net! |
This is the check field for the user name in profile fields builder. https://www.deanbassett.com |
The user name would need to be parsed before being saved in the database, and a check to see if it is missing any letter characters. Or, parsed to see if it begins with a numeral. Usually numerals are nice to add to the end of an user name if the user name is already taken. Since a check is made for an existing user, add to that check to see if the user name starts with a numeral or if the user name does not contain any letter characters. Geeks, making the world a better place |
I can remove the numbers that's easy enough but it seems we are dancing around the real issue here. How come the forum cannot display the username if it's all numbers? http://towtalk.net ... Hosted by Zarconia.net! |
How come the forum cannot display the username if it's all numbers? In your first post, that was not one of your 2 questions. https://www.deanbassett.com |
Agree on Orca; however, from what I have read, trying to integrate a third party forum causes all sorts of issues. Geeks, making the world a better place |
Ok, the answer is simple. I just need to check to make sure the name has a character other than a number in it. If I can do that, the problem is solved. http://towtalk.net ... Hosted by Zarconia.net! |
Ok, the answer is simple. I just need to check to make sure the name has a character other than a number in it. If I can do that, the problem is solved. |
Very cool but I am also using the space mod. Currently, it's return ( preg_match('/^[a-zA-Z0-9_-]{3,15}(| [a-zA-Z0-9_-]{3,15})$/i', $arg0) and !file_exists( $dir['root'] . $arg0 ) ); Is it easy to modify this one? If it's not, I can go back to the default with your changes but would prefer to keep the ability to add spaces. Is this what you added? [a-zA-Z -] Does that force the name to start with a letter? http://towtalk.net ... Hosted by Zarconia.net! |
You can take his code. https://www.deanbassett.com |
Very cool but I am also using the space mod. Currently, it's return ( preg_match('/^[a-zA-Z0-9_-]{3,15}(| [a-zA-Z0-9_-]{3,15})$/i', $arg0) and !file_exists( $dir['root'] . $arg0 ) ); Is it easy to modify this one? If it's not, I can go back to the default with your changes but would prefer to keep the ability to add spaces. Is this what you added? [a-zA-Z -] Does that force the name to start with a letter? Yes, simple way to force the username to start with a letter |
Thanks! Works perfectly..... http://towtalk.net ... Hosted by Zarconia.net! |
Rules → http://www.boonex.com/terms |