Skip to:
Content
Pages
Categories
Search
Top
Bottom

change username to display name


  • megin
    Participant

    @megin

    I would like to keep the friendliness of display in activity stream. I want to post @display_name instead of @user_login/@user_nicename in post activity stream and show @display_name as result post. Anybody please help me.

    Wordpress version : Version 4.5.2
    Buddypress Version 2.5.2

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

  • danbp
    Moderator

    @danbp


    megin
    Participant

    @megin

    Hi danbp,

    Thank you for your replay.

    My target is, show display_name all over the site.
    example:- while we are using @mention plugin, drop down user list shows the display_name. when we select any name, then the @display_name need to show on post field and also @display_name shows the activity display loops.


    danbp
    Moderator

    @danbp

    Afaik you have to code something yourself. BP use only display_name for activities and @ mentions and bbPress, if active, also.

    See all existing _display_name related fn here.

    How WP get display_name is related in this topic.


    vn213322com
    Participant

    @vn213322com

    @megin your idea may be same hastag in facebook?


    megin
    Participant

    @megin

    Thanks @danbp.

    @vn213322com, yes almost same as Facebook. You have any idea about that?

    I am pretty sure this this not easily changeable and is hardcoded to use the login or nicename (depending on the value of the BP_ENABLE_USERNAME_COMPATIBILITY_MODE constant; https://codex.buddypress.org/developer/filters-reference/).

    Problem with display name is that because people can change that (unless you customise a site to prevent people doing that, but that’s not something we want to force on in BuddyPress), you can have situations where people swap display names (accidentally or maliciously) and then start receiving at-mentions intended for other people, etc.


    megin
    Participant

    @megin

    Thanks @djpaul.


    Siddharth
    Participant

    @siddkol

    Hello @danbp

    Display name in buddypress activity stream is not showing once posting any activity.

    It was showing earlier but all of a sudden its not showing for newly registered users. Please check the screenshot below:-

    http://nimb.ws/ixjNcq

    B’coz of this the {username} field is not showing in email templates as well when someone is inviting others, group invitations etc. wherever involved.

    Any help will be very much appreciated. I’m using KLEO theme.

    Regards,
    Sidd


    bstephenmitchell
    Participant

    @bstephenmitchell

    Hi all – I have a multisite setup and I have yet to find a functional plugin or any other solution to change the @username on a profile to something more pertinent, in my opinion, like the nickname.

    Any solutions for me?

    THANKS! Very much appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.
Skip to toolbar