+ Reply to Thread
Results 1 to 6 of 6

Thread: add Arabic characters in USERNAME

  1. #1

    add Arabic characters in USERNAME

    Hello

    I am trying to add Arabic characters in USERNAME
    the USERNAME field only support Latin characters
    I don't know PHP

    You need two places

    rlAccount -> function ajaxUserExist

    rlAccount -> function validateUsername

    There is regular expression that need to be modified, or checking condition can be totally skipped.

    can someone help me THANKS

  2. #2
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    979
    Hello,

    As you may know, usernames are not used in Arabic by all systems because it can cause unexpected errors saving Arabic username to database

    so we also recommend against using it

    but if you still need to use Arabic username you should disable username verification (which is not good) because it blocks Arabic symbols

    disable validateUsername function

  3. #3
    Hi Rudi

    in my website when ppl sing up using facebook the USERNAME show in Arabic
    I have multiple USERNAME in Arabic
    I am trying to test it in my test website so how can I disable validateUsername function

    THANKS

  4. #4
    Flynax developer Rudi's Avatar
    Join Date
    Dec 2014
    Location
    Planet Earth
    Posts
    979
    go to ftp > includes > controllers > registration.inc.php > find a comment // username login mode

    change a code below from:
    PHP Code:
    Only registered members can view the code
    to:
    PHP Code:
    Only registered members can view the code
    then go to includes > classes > rlAccount.class.php > function ajaxUserExist

    change:
    PHP Code:
    Only registered members can view the code
    to:
    PHP Code:
    Only registered members can view the code
    Last edited by Rudi; April 12, 2018 at 02:31 AM.

  5. #5
    Hi

    after I edited the registration.inc.php the USERNAME work with Arabic without problem
    but I did not find the rlAccount.inc.php in classes folder I only find rlActions.class.php and it dos not have the code

  6. #6
    Hello Mohammed,

    I have opened your ftp and found this file. See my attached screenshot: https://prnt.sc/j43m75
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread