Skip to:

Members Only for the WHOLE site

  • Profile photo of thejackshannon


    Alright…so I am pretty new at this. See my site:
    Trying to set up a site for friends and financial supporters to keep up with me.

    Due to the nature of the site and info shared, I want to password protect the entire site. However, I want more than a mere block/stop login. I like the idea of viewers to be able to connect with each other and interact with us socially via site…thus BuddyPress is perfect. However, I want to know if this is possible:
    1. Membership required for the whole site (not sections).
    2. The first time some one goes to the site, I want it to immediately prompt them for membership.
    A. Login option, or
    B. Register option
    3. I want to mediate who does and doesn’t get a member ship.

    I think I know how to do step 3. However, how to I accomplish the rest? Or is this possible?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Profile photo of Paul Gibbs
    Paul Gibbs


    I think the s2member plugin might do what you want

    Profile photo of thejackshannon


    Ok…I’ll give it a try. However I thought that s2member was a for a paid membership site.

    a solution without plugin for a private community, logged-in users only:
    I used the code of david carson described in this thread:

    here is the code you need to paste in a bp-custom.php in you plugin directory.
    (you have to create it if you don’t have it).
    Note: that not logged in users are redirected to slug/register page, you have to change it if your register page has a different URL.


    // **** Privacy ********
    function restrict_access(){
    global $bp, $bp_unfiltered_uri;

    // If user is not logged in and
    if (!is_user_logged_in() &&
    // The current page is not register or activation
    !bp_is_register_page() &&

    ) {
    // Redirect to registration page. Change /register to your register page slug
    bp_core_redirect( get_option('home') . '/register' );

    add_action( 'wp', 'restrict_access', 3 );

    Profile photo of Peter vanDoorn
    Peter Hardy-vanDoorn


    I use the Private Buddypress plugin – it’s very simple and locks the whole site down, with the option to exclude the front page or blog pages if you want, otherwise everything gets password protected and only shown to logged-in users.

    Profile photo of leosampieri


    I tried to use it with a multisite install, and the Private Buddypress plugin kept locking all the sites down.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Members Only for the WHOLE site’ is closed to new replies.
Skip to toolbar