Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: [New Plugin] BuddyPress Activity Stream as Blog Comments


Boone Gorges
Keymaster

@boonebgorges

Unfortunately I don’t have time right now to update the import plugin for single WP. But *I think* it should work with just a simple fix.

In brief, the plugin loops through all the blogs on an MU install and then loops through all posts on that install. You should just need to remove the outer loop. There’s a block of code starting around line 34 in bp-import-blog-activity-bp-functions.php that says

$query = "SELECT * FROM {$wpdb->blogs} WHERE site_id = '{$wpdb->siteid}' ";

Remove the block of code that starts with that line and ends with

switch_to_blog( $blog['blog_id'] );

Make sure you leave the query_posts(‘order=ASC’); – that code should work with regular WP.

Further down in that same file, find and remove

restore_current_blog();

}

Make sure you remove that bracket (which closes the foreach loop).

This is untested, but it should work in theory. Always do backups first!!!

Skip to toolbar