Author Topic: Accent letter in the username  (Read 91 times)

Patrovics

  • Confirmed Member
  • **
  • Posts: 20
  • Karma: +0/-0
Accent letter in the username
« on: February 18, 2017, 12:09:50 PM »
Hello!
Please help me.
I would like to be accented letters for the user name. What should I do?
I changed this in the processors/join.php,  but doesn't work.
            
if (!preg_match('/^[a-zA-Z0-9_]+$/',$input['user']) || strlen($input['user'])<4 || strlen($input['user'])>20) {

         $error=true;
         $topass['message']['type']=MESSAGE_ERROR;
         $topass['message']['text'][]=$GLOBALS['_lang'][63];
         $input['error_user']='red_border';

to 


if (!preg_match('/^[a-zA-Z0-9_áéűúőíöüóÁÉŰÚŐÍÖÜÓ]+$/',$input['user']) || strlen($input['user'])<4 || strlen($input['user'])>20) {

         $error=true;
         $topass['message']['type']=MESSAGE_ERROR;
         $topass['message']['text'][]=$GLOBALS['_lang'][63];
         $input['error_user']='red_border';

maverick

  • Administrator
  • Veteran Member
  • *****
  • Posts: 2943
  • Karma: +210/-7
    • Maverick Webworks
Re: Accent letter in the username
« Reply #1 on: February 18, 2017, 01:39:01 PM »
Sorry I have no idea, or what issues you may run into with a username with non-alphanumeric characters included in the profile URL.

Fusion Responsive Template & Free Mods
http://www.maverickwebworks.com
DO NOT PM me asking for personal help. Post your problem or request in the forums so the entire community can contribute and benefit.