Skip to:
Content
Pages
Categories
Search
Top
Bottom

What is the difference between displayname and mentionname?


  • jino01
    Participant

    @jino01

    What is the difference between displayname, mentionname, fullname, first name, and last name? Or where can I find this information specifically? (I cant waste much time as I need to finish what Im doing before tomorrow) Please, please make it simple to understand for me.
    Thanks!

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

  • shanebp
    Moderator

    @shanebp

    Display Name: Larry Jino
    Mention Name: jino01

    If Display Name has not been explicitly set, then calls to displayname will show the mentionname.


    jino01
    Participant

    @jino01

    Thank you so much. What I did was change this part in my member-header.php to
    $name_to_display = bp_get_displayed_user_displayname();

    But all I get is the first name ex: @Daniel

    And I want the full name to show ex: @DanielCuell

    I did it for both the “member header php” files: one that is in the plugins section, and the other which is on the themes/mytheme/buddypress

    Seeing you are a moderator I take you might understand what I am trying to say (as Im not that advanced on this as I would like at the moment)

    What I am trying to achieve is show the name and lastname throughout the whole site, I have managed to show those pretty much everywhere except the members page. My theme’s documentation doesnt show how to do it. I need to hide the usernames and show the first name and last name instead.

    Any help with that will be greatly appreciated.


    jino01
    Participant

    @jino01

    So there are two things I need to do:
    1) Hide admin mentionname somehow
    2) Members to have name and last name instead of the mentionname, maybe this will help with point 1?


    shanebp
    Moderator

    @shanebp

    1. is_super_admin( $user_id )
    https://codex.wordpress.org/Function_Reference/is_super_admin

    2. bp_get_displayed_user_fullname()

    But at-mention functionality only works with user names.
    So @jino01 will work
    But @LarryJino will not work.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘What is the difference between displayname and mentionname?’ is closed to new replies.
Skip to toolbar