Hi,
I have integrated my Joomla/jomsocial website with phpbb3 forum and i have an issue when a new users register with a user name that has special characters in it. How can i have the jomsocial registration form display an error massage when the user input a user name with special characters?
ad4x4
You can open file components\com_community\helpers\validate.php
components\com_community\helpers\validate.php
Add this code to line 55
55
if (!preg_match('/^[A-Za-z0-9]*$/', $username)) { return false; }
This only allows username with alphabet and numbers
Worked perfectly thank you.