Skip to:
Content
Pages
Categories
Search
Top
Bottom

bp_displayed_user_fullname() stopped working


  • ariane1001
    Participant

    @ariane1001

    HI,
    Some time ago I have build an intranet for a company using Buddypress. Everything had been fine but recently I have got this problem:
    In the member directory overview it is working fine, I see the users full names below there pics but on the single member pages it shows the nickname (@a-gordijnairborne-nl) in stead of the full name.
    I have copied several buddypress files to my theme directory. In member-header.php I use the following code: “><?php bp_displayed_user_fullname(); ?>

    As said before, this used to work but now it is showing some kind of nickname. I checked as much as possible: WordPress and plug-ins up to date. Extended profiles is active and so on but it won’t work.
    It looks like an update caused this?

    I cannot give a link because thats only possible with an account and I cannot give you access before asking the client because it’s a intranet for employees but maybe you recognize the problem en know what has changed and can you help me whitout login.

    Thanks in advance,
    Ariane

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

  • ariane1001
    Participant

    @ariane1001

    After searching further I found out the problem is Buddypress is not using the theme override I made in my (child) theme. Everything is exactly as described here: https://codex.buddypress.org/themes/theme-compatibility-1-7/a-quick-look-at-1-7-theme-compatibility/ and it worked before.
    What can be wrong?
    I am using a childtheme for http://acoda.com/dynamix/

    Thanks again,
    ARiane


    danbp
    Moderator

    @danbp

    Hi @ariane1001,

    perhaps you need to echo the function ? Anywy, can you test this snippet, to ensure that fullname is fired correctly.

    Add it to bp-custom or to your child theme functions.php.

    
    function bpfr_user_fullname() {
            // uncomment below if you want this only for logged in users.
    	//if ( !is_user_logged_in() )
    		//return false;
    
    	echo bp_displayed_user_fullname();
    	
    }
    add_filter( 'bp_before_member_header_meta', 'bpfr_user_fullname' ); 
    //add_filter( 'bp_get_displayed_user_mentionname', 'bpfr_user_fullname' );

    If you see the fullname in the profile header, you could remove the actual filter and use the other one. Just uncomment the line and you’ll see @mention using the fullname instead of display_name.

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