Skip to:
Content
Pages
Categories
Search
Top
Bottom

Bug: BuddyPress to WordPress profile syncing broken

  • @paulhastings0

    Participant

    Ok, we’ve found another bug. We’re running BP 1.2.1 and WPMU 2.9.2 on our site. We’re using the default theme bundled with BP 1.2.1 and are displaying the “sitewide activity” option on the front page.

    When we place the “Members” widget in the sidebar it only displays some of the user’s display names correctly. More precisely, for some users it displays their “username” while for others it shows their “display name”.

    But everywhere else on the site their “display names” are always shown, which is what we want. But why isn’t this happening on the “Members” Widget? Logging in as some of the users I see that in their WordPress dashboard profile that their nickname hasn’t been changed at all.

    If I change their nickname from the wordpress dashboard then it displays correctly on the “Members” widget. But changing the “display name” in Buddypress doesn’t always change the “nickname” back in WordPress.

    But then I log in as another user and now even changing their publicly displayed name in the WordPress Dashboard doesn’t change their “display name” in their Buddypress profile.

    So there’s some inherent problem with the Buddypress/Wordpress profile syncing.

    And yes, I’ve checked that the “Disable BuddyPress to WordPress profile syncing?” option in the Dashoboard “Buddypress” >> “General Settings” is marked to “No”.

    Any help? Is this trac-worthy?

Viewing 8 replies - 1 through 8 (of 8 total)
  • @djpaul

    Keymaster

    Yes

    @paulhastings0

    Participant

    Alright. I posted in Trac here: https://trac.buddypress.org/ticket/2100

    Hopefully I did it correctly.

    @paulhastings0

    Participant

    *bump*

    @ajohnson

    Member

    double *bumb* . this is a real issue for me

    @paulhastings0

    Participant

    Somebody? Anybody?

    @paulhastings0

    Participant

    I’m not going to let this one die.

    @nexia

    Participant

    the more you try to get this one alive, the more you kill it on your own.

    no answer mean no solution YET…

    @webpagesindiadotnet

    Member

    @paulhastings0 Try this filter, it will sync user name on the fly

    just paste this block of code in your template functions.php

    `
    /////////////////////////
    ///// To sync user names on the fly, it will show xprofile fullname of user
    /////////////////////////
    function wpi_sync_member_name($data) {
    global $members_template, $bp;

    #$firstname = xprofile_get_field_data( 1, $members_template->member->id ); // 1 = firstname > wp_bp_xprofile_fields.id
    #$lastname = xprofile_get_field_data( 51, $members_template->member->id ); // 51 = lastname > wp_bp_xprofile_fields.id
    #$fullname = $firstname .’ ‘.$lastname;
    #return $fullname;

    return bp_core_get_user_displayname( $members_template->member->id );

    }
    add_filter( ‘bp_get_member_name’, ‘wpi_sync_member_name’ );
    `

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Bug: BuddyPress to WordPress profile syncing broken’ is closed to new replies.
Skip to toolbar