Skip to:
Content
Pages
Categories
Search
Top
Bottom

one name only

  • Hi there,

    it’s confusing to deal with two different names. People are not used to that and it will confuse them.

    So I do not want to have both username and display name. Instead I want to provide one single field called „username“ only. There should show up only that field at registration – just as in most other forums.
    This field should allow capital letters and blanks, too.

    I read that BuddyPress uses these two names in order to prevent identical slugs.
    But… if there’s someone called „John Doe“, the slug should be „john-doe“. From the name „Johndoe“, the slug should be „johndoe“. And if someone wants to register as „john doe“ afterwards, he should the receive the message that this name is already in use.

    This can’t be that tricky to realize, right?

    Is there already such a plugin?

    Thanks,
    neontrauma

Viewing 3 replies - 1 through 3 (of 3 total)

  • ewebber
    Participant

    @ewebber

    Try using this plugin https://buddypress.org/community/groups/buddypress-usernames-only/ which displays the username rather than the display name, this helps with using “@” replies and mentions.
    I use this and adapted my profile pages to look like this: http://www.yeahhackney.com/members/ewebber/
    You will still need a real name as well as a username

    Hi,

    thanks a lot; now it works!
    I got rid of that second name by editing that field in the database (making it no longer required).

    Now capital letters are possible, too: I had to change line 278 of the bp-core-signup.php from preg_match( “/[a-z0-9]+/”, $user_name, $maybe ); to preg_match( “/[a-zA-Z0-9]+/”, $user_name, $maybe );

    If someone is interested in the details: I just wrote a tutorial on this topic (it’s in German, but you’ll see the code): http://neontrauma.de/wordpress/buddypress-mit-nur-einem-usernamen-samt-grossbuchstaben.php

    neontrauma


    embergermedia
    Member

    @embergermedia

    I took a different approach:

    1)Buddypress general settings- rename the “Full Name Filed” to nothing… clear it out and save. This will remove the label from the reg page.
    2) Hide the full name field on the registration page with css.
    3) Add JS to mirror typed characters from username field into full name field
    requires jquery 1.4.2
    `

    #field_1 {visibility:hidden;}

    function sync()
    {
    var n1 = document.getElementById(‘signup_username’);
    var n2 = document.getElementById(‘field_1’);
    n2.value = n1.value;
    }

    `

    Call it appropriately:

    `<input type="text" name="signup_username" onkeyup="sync()" id="signup_username" value="” />
    `

    Seems to be working pretty good so far.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘one name only’ is closed to new replies.
Skip to toolbar