BuddyBoss Home – Web Support Forums Plugins BuddyBoss Wall change displayed names to usernames

Viewing 15 posts - 1 through 15 (of 15 total)
  • Question

    #48884
    @surfbuddy

    Hi all, how can I change all displayed names(first and full names) to display as usernames? Thanks

    Answers

    #49175
    @vapvarun

    Hi @surfbuddy, Please specify the location it will help to identify the codes and provide suggestion.
    Regards

    #50789
    @surfbuddy

    Currently have all wall settings to Username instead of You. Also using https://github.com/r-a-y/buddypress-usernames-only plugin.

    On wall stream, it display’s fullname or displayname when the liker is not the loggedin user.

    e.g. plural likes: username(loggedin user) and Fullname(some user) like this.
    single like: username(logged in user) likes this. , Fullname(some user) likes this.

    I’ve changed instances to displayname/fullname to username in wall-template.php and wall-hooks.php but it doesnt work.

    How can I make all likers display username?

    #51126
    @surfbuddy

    bump

    #51616
    @surfbuddy

    .bump.

    #51909
    @vapvarun

    Hi @surfbuddy you can use following

    
    buddyboss-wall/includes/wall-hooks.php
    line 554
    $initiator_name = bp_core_get_username( $initiator_id );
    

    bp_core_get_username instead of bp_core_get_user_displayname
    It will work for new activities only not for earlier posted activities
    Regards
    Varun Dubey

    #51976
    @surfbuddy

    I’ve tried that before it didnt work. It’s still not working.

    #51979
    @vapvarun

    It will change for new activities , modify it and check the post updates made by other users
    Regards

    #52061
    @surfbuddy

    It’s still not working for new activities either.

    #52521
    @vapvarun

    Hi @surfbuddy, That was the only option where we have included user display name.
    https://drive.google.com/file/d/0Bzv-k-FcE80idGlMQ2gwXy1rZGM/view?usp=drivesdk
    Regards
    Varun Dubey

    #52549
    @surfbuddy

    “username posted an updated” is changing to username fine. It’s the “Display Name likes this” that is not changing to username when the liker is not the loggedin user.

    #53331
    @surfbuddy

    bump..

    #54273
    @surfbuddy

    Hi Varun, The error is still showing as “username(You) and Display Name like this.”

    How can I fix the second name to be username as well? So it appears “username(You) and username like this.”?

    The error also appears when another member likes the logged in user’s update. It appears as “Display Name likes this.”

    How can I fix this so it appears “username(other user) likes this.”?

    #55244
    @surfbuddy

    This has been resolved. In wall-functions.php find and replace $user->display_name; with $user->user_nicename;

    #55351

    Anonymous
    @

    Hi @surfbuddy, Glad..its solved.

    I will close the topic now..if you have any other concerns you can create a new topic for that.

    Best Regards

Viewing 15 posts - 1 through 15 (of 15 total)
  • The question ‘change displayed names to usernames’ is closed to new replies.