I've search this problem already and the only solution was this:
http://mods.mybb.com/view/strict-username but, go to the link. And you will see nothing. So do someone know an other way to make it possibile to let users only register without let them using spaces?
Thank you.
A plugin that hooks into registration is how you'd go about doing it. I'd just use this regex to remove any space if present:
$data['username'] = preg_replace("/(\s)/is", "", $data['username']);
\s matches any whitespace characters making it better than just using str_replace.
Users & Groups >> Banning >> Disallowed Usernames
(2014-05-22, 12:57 PM)marcus123 Wrote: [ -> ]Users & Groups >> Banning >> Disallowed Usernames
That won't work because you can't ban with regular expressions.
The * * works, I will use this for now. Thank you all people of MYBB!