Skip to:
Content
Pages
Categories
Search
Top
Bottom

Members Only for the WHOLE site

  • Avatar of thejackshannon
    thejackshannon
    Member

    @thejackshannon

    Alright…so I am pretty new at this. See my site: theshannonigans.com.
    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)
  • I think the s2member plugin might do what you want

    Avatar of thejackshannon
    thejackshannon
    Member

    @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:
    http://wordpress.org/support/topic/theme-frisco-for-buddypress-login-in-home-page?replies=18

    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.


    <?php

    // **** 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() &&
    !bp_is_activation_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 );

    http://pastebin.com/rgJ6BQc8

    Avatar of Peter vanDoorn
    Peter vanDoorn
    Participant

    @petervandoorn

    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.

    Avatar of leosampieri
    leosampieri
    Participant

    @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)

You must be logged in to reply to this topic.