-
Hi there,
I just posted a sort of hack solution to your feed problem at the BuddyPress forum: http://buddypress.org/forums/topic/more-privacy-options-private-blogs-and-activity-streams. The gist is that I’ve tweaked BP core to keep entries on blogs with MPO privacy settings from appearing in activity streams, which in turn keeps them out of BP’s RSS feeds. This doesn’t help with WPMU’s native RSS feeds, but I’m pretty sure that the most recent version of MPO takes care of this anyway (I haven’t tested it, but the code makes it look that way). Hope this helps a little.
Boone
-
i’ve found a plugin for wordpress classic : http://wordpress.org/extend/plugins/private-wordpress/
it blocks blog access (every page, so everything in buddypress) if you’re not logged in
it blocks rss feeds tooit needs to be modified a bit for buddypress (registration is blocked)
i succeeded to make it work for my buddypress : i can access homepage and registration page without being logged in, but every other pages are blocked. -
@Antoine what did you modify to get it to work with buddypress?
-
i changed some php code in the private.php file from the plugin private wordpress
here is the function :
function private_wp() {
global $method;
global $self_url;
$result=strcmp($_SERVER['REQUEST_URI'],”/register/”);
if(!is_user_logged_in() and !is_page(‘a-propos’) and ($result!=0)) {
if($method == 3) {
wp_redirect($self_url . ‘sorry.html’);
}if($method == 1 && function_exists(‘auth_redirect’)) {
auth_redirect();
}
else if($method != 3) {
wp_redirect(get_option(‘siteurl’) . ‘/wp-login.php’);
update_option(‘pwp_method’, 2);
}
}
} -
brilliant.
thank you!
i will give it a try. -
it gives me a error division by zero on line 195
using single wp 2.92 and buddypress 1.2.4.1



8 comments
Comments feed for this article
Trackback link: http://openedweb.com/blog/2009/02/19/private-buddypress-communities/trackback/