Wednesday 7 May 2014

Tuesday 6 May 2014

Manually activating a user in Buddypress

To completely activate an imported user in Buddypress, you need to update two different tables:

In wp_usermeta add a date to the last_activity field.
In wp_bp_activity add a record for each user like so
INSERT INTO `wp_new`.`wp_bp_activity` (`id`, `user_id`, `component`, `type`, `action`, `content`, `primary_link`, `item_id`, `secondary_item_id`, `date_recorded`, `hide_sitewide`, `mptt_left`, `mptt_right`, `is_spam`) VALUES (NULL, '4', 'members', 'last_activity', '', '', '', '0', NULL, '2014-05-06 12:41:51', '0', '0', '0', '0');

Only after this will the person's name be available for private messaging.