Can't use space and special characters in username -what can i do? space in the name is a must for me
Hi Thomas
With latest updates of Joomla, they removed ability to register new users with spaces and special characters.
To keep consistency with Joomla, we had to follow as well
Thanks
Hi Sinisa
the problem with spaces in username was solved by joomla team with version 2.5.17
see here
.
But a registration with jomsocial and a username with space in it still does not work thus there is also a problem with existing profiles.
I found a solution and it works for me:
components/com_community/helpers/validate.php
find in line 54:
return (!preg_match( "/[<>\"'%;()& ]/i" , $username ) && JString::strlen( $username ) > 0 );
return (!preg_match( "/[<>\"'%;()&]/i" , $username ) && JString::strlen( $username ) > 0 );
Well, they are changing it to often :)
I will notify the developers about this
I understand that you need to follow Joomla.
The problem just is, that when you disallow special characters, you disallow a wide range of letters from non-english alphabets - such as the scandinavian alphabets. This is absolutely not optimal.
I know guys, i come from eastern Europe where we extensively use čćžšđ and similar but the thing is, is that Joomla for quite some time now trying to remove the special characters and spaces from usernames, however, whenever they try, a vast horde of community comes complaining.
I was speaking about this with many members of Joomla! PLT and even on some Joomla days, and the only (and most valid) reason why usernames should never have the special characters in them ais database consistency which i support too (although i use special characters as well)
However, as you said, we need to bind to Joomla rules, so if they reverted it back, we have to as well :)
Well, actually Joomla 2.5.x shouldnt be affected at all.
This change was planned as final in Joomla 3.0 but obviously it is hard to be implemented.