Skip to:
Content
Pages
Categories
Search
Top
Bottom

Secure a site

  • @chamboy

    Participant

    Hi all,

    I am trying to create a company internal social network on BuddyPress. Everything is fine except one crucial point for us: How to secure it totaly?
    All we want, is to have the login and password entries as the front page of our site so nobody outside the company can see our discussions.
    Is that feasible? How?
    Thank you very much for your help,
    Alain

Viewing 4 replies - 1 through 4 (of 4 total)
  • @mrjarbenne

    Participant

    Create a page called bp-custom.php in your wp-content/plugins folder

    Add this code:

    
    root_domain );
    }
    add_action( ‘wp_loaded’, ‘sh_walled_garden’ );
    ?>
    

    @mrjarbenne

    Participant

    The code is getting cut off. I’ll try again.

    function sh_walled_garden()
    {
    if( ! bp_is_blog_page() && ! is_user_logged_in() )
    bp_core_redirect( $bp->root_domain );
    }
    add_action( 'wp_loaded', 'sh_walled_garden' );

    @chamboy

    Participant

    Thank you mrjarbenne!
    I’ll try that and I may come back to you if I am in trouble (again !!!)

    Have a nice day

    @mrjarbenne

    Participant

    That code has been kicking around the community for a while. Here’s the initial forum post that has some variations you can try:

    https://buddypress.org/support/topic/members-privacy-how-can-i-hide-members-profiles/?topic_page=2&num=15/#post-102784

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Secure a site’ is closed to new replies.
Skip to toolbar