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.
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?
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’.
good info, thanks burtadsit!
Great stuff. Helped a lot. How do you activate the users after you add in all of their info?
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.
Would there be a way to fake first time log-in by admins?