Group Mods

  • Profile picture of @mercime
  • Profile picture of r-a-y
  • Profile picture of Hugo

Bug: BuddyPress to WordPress profile syncing broken (9 posts)

Started 2 years, 2 months ago by: paulhastings0

  • Profile picture of paulhastings0 paulhastings0 said 2 years, 2 months ago:

    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?

  • Profile picture of Paul Gibbs Paul Gibbs said 2 years, 2 months ago:

    Yes

  • Profile picture of paulhastings0 paulhastings0 said 2 years, 2 months ago:

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

    Hopefully I did it correctly.

  • Profile picture of paulhastings0 paulhastings0 said 2 years, 2 months ago:

    *bump*

  • Profile picture of ajohnson ajohnson said 2 years, 2 months ago:

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

  • Profile picture of paulhastings0 paulhastings0 said 2 years, 2 months ago:

    Somebody? Anybody?

  • Profile picture of paulhastings0 paulhastings0 said 2 years, 2 months ago:

    I’m not going to let this one die.

  • Profile picture of nexia nexia said 2 years, 2 months ago:

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

    no answer mean no solution YET…

  • Profile picture of webpagesindiadotnet webpagesindiadotnet said 11 months, 3 weeks ago:

    @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' );