Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
White space in username still not allowed? (solved)
I am using Jomsocial 3.1.0.1 and Joomla 3.2.1.
I use multiple profiles.
I would like the username to be able to accept white spaces as we are using it for company names.
In an old post I read that the problem should be solved from Jomsocial 3.1 RC onwards.
But, in my site it's not possible.
Can you please help me?
Joomla forum say that this "bug" has been fixed in the 3.2.1. update and indeed i cannot find the /s in the user.php file anymore. Whar I do see is that at fill in there is a redirection to Jomsocial
"Message
Redirected to Community Registration."
When I disable Jomsocial and use the regular Joomla user registration, there is no problem.
So, what else should I do?
With regards,
Eric
PS I deinstalled Jomsocial, deleted everything from the database, then reinstalled, but the problem remains, only when the user regsitration goes via Jomsocial.
Can you tell me which file is being used for the validation of the value of the field username?
PPS I did an absolutely new install of Joomla with an absolutely new database and a fresh install of Jomsocial. Just that, no more, no other extensions whatsoever.
I can use a Joomla registration with a white space in the username. OKAY
I can NOT use a white space in the username, when using the Jomsocial registration (see attachment). NOT OKAY
Please keep in mind that this fix will not be included into JomSocial 3.1.0.4 for now becaue only Joomla 3.2.1 allows registration with spaces in usernames and at this moment we can't have two seperate intallation package for J2.5 and J3.2
static public function username( $username )
{
// Make sure the username is at least 1 char and contain no funny char
return (!preg_match( "/[<>\"'%;()& ]/i" , $username ) && JString::strlen( $username ) > 0 );
}
to this
[11:04:06 AM] Viet Vu: static public function username( $username )
{
// Make sure the username is at least 1 char and contain no funny char
return (!preg_match( "/[<>\"'%;()&]/i" , $username ) && JString::strlen( $username ) > 0 );
}