Forums

Setting up mutiple username access (17 posts)

  1. starflow
    Member
    Posted 10 months ago #

    Is there any way of allowing users of my worpress site to register using the SAME USERNAME, but having a different email address?

    eg: users of the "same company" can sign up to post, but each user will register with a different email address.

    Is there a plugin for this or would I have to alter any of the function files?

  2. simplistik
    Member
    Posted 10 months ago #

    Just tell everyone to use the same Nickname in their profile.

  3. starflow
    Member
    Posted 10 months ago #

    errrrr, that initially sounded promising, BUT users don't get to set their "nickname" when they register. The only options they get when registering are: username and email

  4. fonglh
    Member
    Posted 10 months ago #

    after registration, they can change it in their profile.

  5. starflow
    Member
    Posted 10 months ago #

    I found a plugin that allowed users to register using the same email, with a different username. But what I'm after is to allow users to register with the same username, but with different emails. (Hope that makes sense).

    I'm guessing there is a plugin for the other way round, but can't lodcate one.

    All help greatly appreciated, I'm stumped :(

  6. starflow
    Member
    Posted 10 months ago #

    Thanks for your suggestion fonglh, BUT users don't get to register with the same username to even get to that point. It says "Username is already in use..." aaaaaaaagh!

  7. fonglh
    Member
    Posted 10 months ago #

    no you don't get it. they register with unique usernames and emails, then change the NICKNAME in their profiles.

  8. starflow
    Member
    Posted 10 months ago #

    Nope, you're right, I didn't get that at all.

    As I said before, as soon as user attempts to register using the same username, they get an ERROR message telling them they cannot register because the "username is already in use".

    Therefore, they cannot go any further in the registration process.

  9. starflow
    Member
    Posted 10 months ago #

    I guess I'm just looking for a much simpler way, than having to explain that if they do register with a username that is already in use, and they can still register with a different username, then go on to change the "nickname"....

  10. simplistik
    Member
    Posted 10 months ago #

    No ... they don't register with the same username, that's a terrible practice. They register with their own unique username and password as it should be.

    Then in their profile they change their nickname to be the same as everyone else's. Anyone reading the site would see that the posts came from the same "Nickname" (which is what the "Display Name" defaults to).

  11. simplistik
    Member
    Posted 10 months ago #

    Well, really it shouldn't be an issue. The client should appreciate that there is a higher level of accountability and security built into their system. If everyone had the same username it's much easier to brute hack the site when you already know a username, chances are that one of the 10 users will have a stupid weak password, and then it's all down hill from there.

  12. starflow
    Member
    Posted 10 months ago #

    If that is the only way, then so be it. Annoying, but I'll try that approach. Thanks for the heads up Simplistik and Fonglh.

    If anyone else has another approach, other than instructing new users to change their "nickname" than please let me know

  13. starflow
    Member
    Posted 10 months ago #

    fairy snuff :)

  14. mchelles
    Member
    Posted 10 months ago #

    If you had two people registering with the same username, that could cause a lot of security issues - what if someone loses their password and needs it reset? And then you could potentially have confusion amongst users as to who is who.

    While I do think it is possible to make it so you get rid of usernames completely if you do some editing of WP core files, this would create a lot of conflicts with a number of plugins - which maybe right now doesn't matter but if you have a site for a year or two and decide to add new features later down the road could be an issue - not to mention if you do that upgrading wordpress would cause even more problems potentially.

    Are you using membership plugin for your site to manage users? S2member for example lets people really easily update their nickname, without even going into the WP dashboard.

  15. simplistik
    Member
    Posted 10 months ago #

    This is completely untested, but I just looked at the codex:

    http://codex.wordpress.org/Plugin_API/Action_Reference

    and I see that there's a hook there called user_register:

    http://codex.wordpress.org/Plugin_API/Action_Reference/user_register

    ... so ... if I had to guess if you try putting this in your functions:

    add_action('user_register', 'change_display_name');
    
    function change_display_name($user_id)
    {
        $args = array();
        $args['ID'] = $user_id;
        $args['display_name'] = 'Standard Name';
    
        wp_update_user($args);
    }

    It will give everyone registers the same display name automatically. I assume. However, if you have open registration then every single person who registers will get the same display name.

    LoL, edited the code to use the variable $user_id and not $post_id, I'm programmed to use $post_id :P

  16. starflow
    Member
    Posted 10 months ago #

    Understood
    No, but now I know it exists, I'll look into it
    Thanks for the heads up

  17. starflow
    Member
    Posted 10 months ago #

    Cheers simplistik! :)

Reply

You must log in to post.

About this Topic