• Resolved hebafarid

    (@hebafarid)


    I am developing a website that is going to have different types of users. I would like to know how to make the login form and registration form have the option of choosing which role are you wishing to register or login as?

    • This topic was modified 5 years, 3 months ago by hebafarid.
Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter hebafarid

    (@hebafarid)

    Thread Starter hebafarid

    (@hebafarid)

    hello @champsupertramp

    in case I need to make these forms in Arabic also, I know how to translate them and already did. However, the logic behind the form what it accepts in its fields and what not, how can this be changed to fit Arabic? For example, when I entered an Arabic username, I got please enter a valid username. Also, the password field has constraints matching English like have at least one number, one uppercase letter and one lowercase letter. How can I change the constraints to fit Arabic also?

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hebafarid

    Sorry for the late response.

    Could you please tell us if you’re having issues? To allow the Arabic username, you can try installing this plugin: https://ww.wp.xz.cn/plugins/wordpress-special-characters-in-usernames/

    Feel free to re-open this thread by changing the topic status to “Not Resolved” so that we can get back to you.

    Regards,

    Thread Starter hebafarid

    (@hebafarid)

    hello @champsupertramp
    When I installed your the new update, the registration form suddenly doesn’t accept Arabic usernames. I am using this piece of code:

    /**
     * Allow arabic in username with UM
     */
    add_filter("um_validation_safe_username_regex", function( $regex ){
    
        return '/^(?!.*\d)[a-z\p{Arabic}\s]+$/iu';
    },99999);

    as well as “WordPress Special Characters in Usernames” plugin. All this allowed Arabic usernames but when I installed the update for “Ultimate Member” plugin, Arabic usernames aren’t allowed.

    I was checking the form, when I change the username to be in English but leave the first and last names in Arabic, I still get the error message in Username. Although the username is in English. It looks like the error is stuck on this field

    This problem happens in English forms also. Right now I can’t register any new users.

    • This reply was modified 5 years, 1 month ago by hebafarid.
    • This reply was modified 5 years, 1 month ago by hebafarid.
    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hebafarid

    I think this is an issue with the WordPress core. Have you tried registering via WP Admin > Register( http://yoursite.com/wp-login.php?action=register ) and see if the issue with the Arabic username also occurs?

    Regards,

    Thread Starter hebafarid

    (@hebafarid)

    hello @champsupertramp,
    I am still facing the same issue. I can’t register new users at all, whether in the Arabic or English forms

    Thread Starter hebafarid

    (@hebafarid)

    hello @champsupertramp,
    I tried adding users through the backend and it works fine. The front-end forms doesn’t work at all whether Arabic or English. I keep getting something like invalid username

    Thread Starter hebafarid

    (@hebafarid)

    hello @champsupertramp
    I keep getting this error message when I try to register a new user using the default sign up form. I keep getting this error message “Your username contains invalid characters”. Although it doesn’t have any special characters and it is in English. This is really urgent.

    Thanks in advance.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @hebafarid

    Just checking if you’re still having issues with the latest version 2.1.21?

    Please feel free to re-open this thread by changing the topic status to “Not Resolved” so that we can get back to you.

    Regards,

Viewing 9 replies - 16 through 24 (of 24 total)

The topic ‘different login forms for different users using “Ultimate member” plugin’ is closed to new replies.