Skip to:
Content
Pages
Categories
Search
Top
Bottom

Profile Data – Member Listing Page Empty


  • belogical
    Participant

    @belogical

    with a new install of buddypress i noticed that the Member Listing page is empty because data hasn’t been inserted into the users profile yet.

    has anyone written a script to mass insert usernames from the WP database for Full Name or similar so all existing members would show up?

    i hate to go live with 100+ members and none showing up in the new member listing page.

    ideas? what did you do?

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

  • belogical
    Participant

    @belogical

    i found a solution below for anyone else that needs it, but it didn’t work 100%. i can now search for all my members, and they all show up when you click on a letter in the member directory but the total count and list of initial members doesn’t show up when you click on the main “Members” link from the front page. ideas as to why?

    here is the solution I found if you are migrating an existing site to buddypress. run these 3 separately against your database in this order:

    (#1) insert into wp_bp_xprofile_data (user_id,value) select ID,user_login from wp_users;

    (#2) update wp_bp_xprofile_data set field_id = “1” where field_id “0”;

    (#3) update wp_bp_xprofile_data set last_updated = “2008-12-24 11:39:36” where last_updated = “0000-00-00 00:00:00”;

    this will allow your existing wordpress users to have some initial buddypress profile data in order for the member directory to work properly.


    belogical
    Participant

    @belogical

    ok, i just noticed that it says “active members”. i’m guessing that field (last_updated) that I updated isn’t the correct active members field stamp.

    anyone know where this is?


    Burt Adsit
    Participant

    @burtadsit

    Howdy, the member directory relies on a function called get_active_users() in bp-core-classes.php. That relies on the mu usermeta table. mu tracks a ‘last_activity’ key/value pair for each user. How and when mu decides to update this, ya got me. The member directory doesn’t rely on bp produced info to decide who is ‘active’.


    belogical
    Participant

    @belogical

    good info, thanks burtadsit!


    bobman024
    Participant

    @bobman024

    Great stuff. Helped a lot. How do you activate the users after you add in all of their info?


    blogono
    Participant

    @blogono

    i got an error in the mysql-syntax

    it was caused by …

    (#2) update wp_bp_xprofile_data set field_id = “1” where field_id “0”;


    >

    should be:

    (#2) update wp_bp_xprofile_data set field_id = “1” where field_id = “0”;

    The members directory is for active members. Activity will be recorded when a user logs in, and will be updated every 5 mins while they are still logged in. Basically, for users to show up in the directory they must have:

    a) At least one piece of profile data filled out (full name etc)

    b) Logged in at least once.


    bobman024
    Participant

    @bobman024

    Would there be a way to fake first time log-in by admins?


    Vast HTML
    Participant

    @erichamby

    Any updates on this?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Profile Data – Member Listing Page Empty’ is closed to new replies.
Skip to toolbar