Not much privacy with BuddyPress. There are a couple plugins that make the entire site closed to non logged in uses. But individual privacy settings are not available.
Can u recommend me a good plugin that make the entire site closed to non logged users. Been trying to look for it, maybe I’m seaching it all wrong I have to lose all my data, if worst case scenario I need to migrate to Drupal Commons… sigh
try this one:
http://pastebin.com/rgJ6BQc8
logged in users only, private site. code needs to go into a bp-custom.php in your plugin directory.
@dan77 that code doesn’t seem to work anymore. It gives the following error:
Warning: Cannot modify header information – headers already sent by (output started at /site/wp-content/plugins/bp-custom.php:50) in /site/wp-includes/pluggable.php on line 881
See and test https://buddypress.org/community/groups/miscellaneous/forum/topic/buddypress-1-6-beta-2-is-ready-to-test/
SOME privacy issues have been addressed. But not to the extent of being able to (out of the box) hiding members profile, groups, pages from visitors.
Just, now, visibility of individual profile fields can be allowed to be toggled/or fixed by admin between
> Anyone, Logged In Users or My Friends
You can use my profile privacy plugin to hide profile sections. Even though it says not supported it still should work. https://wordpress.org/extend/plugins/buddypress-profile-privacy
I took a different approach to this that worked… I was looking to hide content from people who are not friends… In any pages that friends are not connected I did this..
?php if ( bp_is_friend() != ‘is_friend’ ) {
if (bp_current_user_id() != bp_loggedin_user_id()):
locate_template( array( ‘members/single/not-friends.php’), true )
endif;
}
php if (bp_current_user_id() == bp_loggedin_user_id() || ( bp_is_friend() == ‘is_friend’ ) ): ?>
// add page content for friends
?php endif; ?>
for groups you can do the similar with bp_group_is_member()
naturally you would need to create;
members/single/not-friends.php
but this way you take away the permissions settings from your users and control them yourself with your theme…. With a little bit of configuring you can do the same with users who are not logged in.
Hope this helps…
Cheers
I am going to have an headache with this “privacy” thing. YOU CANT MONETISE A PRIVATIZED SITE WITH ADSENSE!.
If your after privacy, I recommend Elgg. I left it because of that stupidly built feature. With that free script a user can even privatize a forum post.