Skip to:
Content
Pages
Categories
Search
Top
Bottom

Existing WP users not displayed as BP members after login.


  • bradleyfried
    Participant

    @bradleyfried

    Hi,

    I installed BP in an existing WP site. Some of my pre-existing WP members have shown up as members in BP, and some have not. This is even after they have logged into the WP site again.

    I have selected the option in BP settings to sync WP and BP profiles, but this has not solved the problem.

    Is there a plugin or procedure available that will complete the sync of existing WP members with BP?

    Thanks,

    Bradley Fried

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

  • shanebp
    Moderator

    @shanebp

    …shown up as members in BP, and some have not.

    You mean don’t show up on the Members page?
    Can you go to the profile page of those members?
    ala – yoursite.com/members/bradley/


    bradleyfried
    Participant

    @bradleyfried

    Correct. They do not show up on the Members page.

    -Brad


    shanebp
    Moderator

    @shanebp

    If they’ve logged in, they should have a last_activity entry – without which they won’t appear on the Members page.

    If you aren’t concerned about existing last_activity entries for those who currently do appear, paste this function in your theme/functions.php.
    It will create a last_activity entry for all users and set it to the current time.

    Load the site once and then remove this function so that it does not run again.

    function brad_add_last_activity() {
        global $wpdb;
        foreach ( $wpdb->get_col( "SELECT ID FROM $wpdb->users" ) as $user_id ) {
            bp_update_user_last_activity( $user_id, bp_core_current_time() );
        }
    }
    add_action('bp_init', 'brad_add_last_activity' );

    bradleyfried
    Participant

    @bradleyfried

    Okay, that worked! Now I can see all my WP members on the BP Members page.

    The functionality for some users still appears to be limited, however.

    – no friend request button on the other members in the list.
    – no private message button on the other members in the list.
    – no ability to join groups.
    – no access to activity stream.

    etc.

    -Brad


    bradleyfried
    Participant

    @bradleyfried

    bump

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