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.
How to disallow Turkish Characters in username field when registering?
When users register with my Joomla 3x site with Jomsocial, the username field accepts any character typed in. When users use Turkish characters like ş,ü, then this causes problem for some of my extensions. I need to disallow the typing of these characters, and have the registration form allow only english characters and warn the user. How can I set this up? I have made a short search, but couldn't find such a feature in neither joomla nor jomsocial.
you must edit /components/com_community/controllers/register.php line 1017:
from
if (!empty($username)) {
if (!CValidateHelper::username($username)) {
$isInvalid = true;
$msg = JText::_('COM_COMMUNITY_IMPROPER_USERNAME');
}
}
to
if (!empty($username)) {
if (!CValidateHelper::username($username)) {
$isInvalid = true;
$msg = JText::_('COM_COMMUNITY_IMPROPER_USERNAME');
} else if (!(preg_match("/[a-zA-Z\s\d]/i", $username))) {
$isInvalid = true;
$msg = JText::_('COM_COMMUNITY_IMPROPER_USERNAME');
}
}
this changes will gone at upgrade process. I suggest you to make a note or make backup file for this. if gone you can easily put this back.
if you don't know how to do it. please provide me FTP access detail, by editing your first post at this topic and put it at Site Info form. if that form can't find it, you can send me via private message.
I have just added FTP details. I need one more favor, please: I gues there is a problem with the "forgot password". It sends mail with a link, but when the user changes his/her password using that link, they still cannot have access to the site. Could you also have a look at it?
My main domain is tumeraltas.com.tr. The other two domains I set for support are not valid. So, could you please update my support account for tumeraltas.com.tr. Moreover, I would ask you to do the necessary changes to the above mentioned two issues. The "forgot password" issue is still causing trouble.
your support account already updated to tumeraltas.com.tr. Our support manager did it. please check it to make sure about that.
and for other issue if still any. please open new topic for that.