1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Is it possible to have multiple users with the same name?

Discussion in 'XenForo Questions and Support' started by Console Crunch, Jul 23, 2015.

  1. Is there a way I can do it, I know that vanilla xenforo probably doesn't support it. But I was wondering because I'm working on something and I want to allow my users to be able to use their real names, however, the problem is that I obviously cannot have multiple users with the same username.

    Is there an add on, or can someone link me a guide, or write one out for me?

    I have tried looking, and I cannot find anything.
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    XenForo requires unique usernames. This is not easily changed.

    What you want is a feature that is commonly called a "display name." Basically you login with your unique username but everyone sees your display name which is not unique. Unfortunately I am not aware of any such addon for XenForo. You might need to post a request:

    Resource and Add-on Requests
     
    Console Crunch likes this.
  3. Yeah, a display name would be nice.

    Thank you for the information.

    Would you know how to go about implementing this? or at least who i could contact for help?
     
  4. AndyB

    AndyB Well-Known Member

    Create a Custom User Field called Name or something similar:

    Admin CP -> Users -> Custom User Field
     
    Console Crunch likes this.
  5. I read a thread on doing that, I imagine there's some sort of template editing as well. I'm assuming, at least.

    I have the custom user field made, so that's a start, i guess!
     
  6. AndyB

    AndyB Well-Known Member

    In order to have this Custom User Field show the values below the Avatar while viewing a post, check this box:

    Admin CP -> Appearance -> Style Properties -> Message Elements -> Show custom user fields
     
    Console Crunch likes this.
  7. That is one way, but not quite what i'm looking for.

    What I'm looking for is, to show the display name like the username, and maybe just have the username act as just something that makes each account unique.

    I want each user to be able to be identified as they wish, even if their name is already in use.

    So if someone signs up as "Jane doe" another "Jane doe" could still sign up, except they'd have to make a different username,
    kind of like how facebooks name system works.
     
  8. Basically like this:

    [​IMG]

    well exactly like this...

    That's the effect i'm looking for. If it's possible, at all.
     
  9. AndyB

    AndyB Well-Known Member

    As stated in an earlier post, that's not possible.
     
  10. Amaury

    Amaury Well-Known Member

    @Jake Bunce, @AndyB, I'm not looking for this on KH-Flare, just trying to help. Couldn't you just set up a custom user field and hide all instances of the unique username, replacing it with the data from the custom user field? The only place you'd use your unique username would be when logging in.

    It'd take quite a lot of template editing, but...
     
    Console Crunch likes this.
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Yes you could. And yes it would require lots of template mods.
     
    Console Crunch and Amaury like this.
  12. Amaury

    Amaury Well-Known Member

    Ah, all right. I was just curious and I wanted to say that, but didn't want to give out incorrect info after I saw you basically said it'd require an add-on.
     
  13. Brogan

    Brogan XenForo Moderator Staff Member

    All of the auto complete operations (conversations, mentions, etc.) would continue to use the user name, so it could potentially be confusing and cause problems.
     
    Console Crunch and Amaury like this.

Share This Page