BuddyBoss Home – Web › Support Forums › Plugins › BuddyBoss Wall › change displayed names to usernames
- This topic has 14 replies, 3 contibutors, and was last updated 8 years, 10 months ago by Anonymous.
Question
October 16, 2015 at 4:59 pm #48884@surfbuddyHi all, how can I change all displayed names(first and full names) to display as usernames? Thanks
Answers
October 20, 2015 at 11:07 am #49175@
AnonymousHi @surfbuddy, Please specify the location it will help to identify the codes and provide suggestion.
RegardsNovember 5, 2015 at 5:19 pm #50789@surfbuddyCurrently 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?
November 9, 2015 at 12:32 pm #51126@surfbuddybump
November 13, 2015 at 6:04 pm #51616@surfbuddy.bump.
November 17, 2015 at 2:04 am #51909@
AnonymousHi @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 DubeyNovember 17, 2015 at 11:31 am #51976@surfbuddyI’ve tried that before it didnt work. It’s still not working.
November 17, 2015 at 11:35 am #51979@
AnonymousIt will change for new activities , modify it and check the post updates made by other users
RegardsNovember 18, 2015 at 11:52 am #52061@surfbuddyIt’s still not working for new activities either.
November 23, 2015 at 8:57 am #52521@
AnonymousHi @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 DubeyNovember 23, 2015 at 12:49 pm #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.
December 1, 2015 at 11:26 am #53331@surfbuddybump..
December 11, 2015 at 6:03 pm #54273@surfbuddyHi 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.”?
December 30, 2015 at 1:02 pm #55244@surfbuddyThis has been resolved. In wall-functions.php find and replace
$user->display_name;
with$user->user_nicename;
January 2, 2016 at 5:54 am #55351@
AnonymousHi @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
- The question ‘change displayed names to usernames’ is closed to new replies.