Hello Folks,
I noticed that, users can register with a username with blank space in it such as "The Code".
How to disable the spaces in usernames ?
I have found this thread
http://community.mybb.com/thread-153998.html which gives a temporary * * solution using disallowed usernames option in user banning but that gives a message that "
The username you entered has been disallowed by the administrator", which shouldn't be the case as disallowed username and invalid user names are two different scenarios and this is an invalid username.
I believe there must be an option to do this but I am missing it somewhere.
Please help.
Thanks.
(2015-10-27, 08:50 AM)BenĀ C Wrote: [ -> ]I've looked for this plugin on here but couldn't find it uploaded.
Try this: http://mybbhacks.zingaburga.com/showthread.php?tid=261
It may need updating for 1.8 which you can do as follows: http://community.mybb.com/thread-75646.html
Thanks Ben, It helps a lot.
Mybb is a beautiful and awesome piece of software, isn't this feature be included in the default installation ?
I would like to know there is any reason behind giving users option to create user name with spaces, I am asking because I might not able to see the benefit of the same. If there is any plus of it, I will keep it that way.
Thanks.
Quote:I would like to know there is any reason behind giving users option to create user name with spaces, I am asking because I might not able to see the benefit of the same.
What's the downside? If there isn't a valid reason to prevent usernames containing spaces it makes sense to allow them by default.
(2015-10-27, 10:18 AM)NathanĀ Malcolm Wrote: [ -> ]Quote:I would like to know there is any reason behind giving users option to create user name with spaces, I am asking because I might not able to see the benefit of the same.
What's the downside? If there isn't a valid reason to prevent usernames containing spaces it makes sense to allow them by default.
Thanks for your prompt response sir.
I agree with you that there is no downside, but normally in most of the top websites/SNS, usernames are restricted to use without spaces. Can't we refer it to Display Name or something if we are allowing them to use spaces ?
PS: I know any of you'll not but just want to say that please don't take it the other way, I am new to Mybb and these questions are out of curiosity.
Thanks.
MyBB has always used integers as identifiers. It's the same for most other forum systems. Usernames are usually restricted for technical reasons. Not just spaces, but anything non-alphanumerical.
A good example of this would be Facebook. Facebook has profile URLs such as "facebook.com/zuck". If Facebook allowed you to use any characters in your username, it could be possible to conflict with existing files or routes (in theory). If all usernames are alphanumerical, or somewhat restricted at least, you can avoid many bugs in the future.