Search Over 30,000 FREE Plugins from the Official WordPress Plugin Directory Repository

LH Private BuddyPress

Protect your BuddyPress Installation from strangers. Only registered users will be allowed to view directory pages, activity and profile pages.

Protect your BuddyPress Installation from strangers. Only registered users will be allowed to view view directory pages, activity and profile pages. Users attempting to view blog content via RSS are also authenticated via HTTP Auth.

This plugin is inspired by and rewritten from the original Private Buddypress plugin by Dennis Morhardt. I rewrote it to simplify the code base and provide a solution that followed the WordPress decisions rather than options philosophy. As I deploy this on my own multisite environment where I don't want public profiles, activity or members directories (and wheer I don't want site admins changing this).

Author Peter Shaw
Profile
Contributors shawfactor
Tags buddypress, community, hide, privacy, private, protect, protection

Use the automatic plugin installation in the backand or install the plugin manuell:

  1. Upload 'lh-private-buddypress' to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

1.00 November 02, 2016
* First release

1.01 November 04, 2016
* More documentation

Can I change the URL where non-loggedin users are being redirected?

Yes, currently you need to write a filter function in your functions.php.

function redirect_nonloggedin_users($current_uri, $redirect_to) {
    // Redirect users to the homepage
    // Caution! Exclude the homepage from 'Private BuddyPress' options
    // to avoid redirection loops!
    return get_option('siteurl') . '/?from=' . $redirect_to;
}

add_filter('lh_private_buddypress_redirect_login_page', 'redirect_nonloggedin_users', 10, 2);

Are there other actions or filters?

In LH Private BuddyPress are 4 existing filters:

  • lh_private_buddypress_is_buddypress_feed: Boolean value if the current page is a BuddyPress feed
  • lh_private_buddypress_redirect_to_after_login: Called URI from where the users came from
  • lh_private_buddypress_redirect_login_page: URI where nonloggedin users are being redirected
  • lh_private_buddypress_login_required_check: Boolean value if for the current page a login is needed

What components are made private?

Only the members directory, user profile, and activity pages. These can only be visited by logged in users. All other components are still public.

Why this set up?

This is primarily fort organisations, they usually want a public presence but may not want to disclose membership details to non members.

Share  
Download
Version 1.01

Requires WordPress version: 4.0, BuddyPress 1.2 or higher

Compatible up to: 4.6, BuddyPress

Last Updated 03 Nov 2016

Date Added: 03 Nov 2016

Plugin Homepage

Evaluation
star1
star2
star3
star4
star5

5 stars
1 ratings
447 downloads

Compatibility

Not Enough Data

Reports:
Works: 0
Broken: 0