Skip to:
Content
Pages
Categories
Search
Top
Bottom

Completely private members area

  • Avatar of garypayne
    garypayne
    Participant

    @garypayne

    Hi, is it possible using BuddyPress to create a completely private members area where the only page or content visible will be the login page?

    I have been playing around with the plugin a bit and I seem able to still see all/most of the members/content when logged out.

    Pointers to ‘how to’ information and personal experience/guidance would be appreciated.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Avatar of Peter vanDoorn
    Peter vanDoorn
    Participant

    @petervandoorn

    Private BuddyPress by Dennis Morhardt works an absolute treat for me.

    Avatar of garypayne
    garypayne
    Participant

    @garypayne

    Hi Peter. I found that plugin however, wordpress says that it hasn’t been updated for over 2 years and I therefore, become a little distrusting of ‘out-of-date’ plugins. Thoughts?

    Avatar of Peter vanDoorn
    Peter vanDoorn
    Participant

    @petervandoorn

    You’re absolutely right, but I’ve been using it for 2 years and, all I can say is, I’ve never had a problem with it.

    I do hope I’m not tempting fate there!

    Avatar of ivarzLV
    ivarzLV
    Participant

    @ivarzlv

    There’s no actually need any plugins, you can easily do this by adding these lines to your themes function.php file:

    `<?php

    add_action( ‘wp’, ‘custom_private_area’, 3 );
    function custom_private_area(){
    global $wp;
    if (!is_user_logged_in()){
    if ( bp_is_activation_page()
    || bp_is_register_page()
    || is_page_template( ‘wp-login.php’ )
    || ( in_array( $GLOBALS['pagenow'], array( ‘wp-login.php’ )))
    )
    return;
    bp_core_redirect(get_option(‘siteurl’) . “/wp-login.php”);
    exit;
    }
    }

    ?>

    Avatar of garypayne
    garypayne
    Participant

    @garypayne

    Thanks for that, I’ll give that a go, appreciated.

    Avatar of sharmavishal
    sharmavishal
    Participant

    @sharmavishal

Viewing 6 replies - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.