BuddyDev

Search

[Resolved] Troubleshooting my site

  • Keymaster
    (BuddyDev Team)
    Posts: 24697
    Brajesh Singh on #28405

    Hi Mike,
    Thank you.

    We are doing well. I hope you and your family are safe.

    Please replace your display name filter

    
    function my_bp_displayed_user_fullname() {
    	global $bp;
    
    	return $bp->displayed_user->userdata->user_login;
    }
    add_filter( 'bp_displayed_user_fullname' , 'my_bp_displayed_user_fullname' );
    
    

    with this

    
    
    function my_bp_displayed_user_fullname( $name ) {
    	return bp_get_displayed_user_username();
    }
    
    add_filter( 'bp_displayed_user_fullname', 'my_bp_displayed_user_fullname' );
    
    

    That will fix it.

    Regards
    Brajesh

  • Participant
    Level: Master
    Posts: 222
    Mike (DesignServe) on #28426

    Thanks Brajesh, that fixed it!

  • Keymaster
    (BuddyDev Team)
    Posts: 24697
    Brajesh Singh on #28427

    You are welcome.
    I am glad it worked.

    Regards
    Brajesh

The topic ‘ [Resolved] Troubleshooting my site’ is closed to new replies.

This topic is: resolved