Skip to:
Content
Pages
Categories
Search
Top
Bottom

walled garden and bbpress

  • Avatar of valuser
    valuser
    Participant

    @valuser

    Some time ago a contributor kindly provided a walled garden function that disabled access to buddypress pages by non-logged in users. (i think it was @aces)

    `function sh_walled_garden()
    {
    global $bp;
    if( bp_is_register_page() || bp_is_activation_page())
    return;
    if( ! bp_is_blog_page() && ! is_user_logged_in() )
    bp_core_redirect( bp_get_signup_page() );
    }
    add_action( ‘wp_loaded’, ‘sh_walled_garden’ );’

    However with bp 1.71 and bbpress 2.3.1 pages like forum-topics, and say, forums/forum/group-forums/ are still accessible by non-logged in users.

    Any idea on how to extend the functionality of the walled garden function to block access these bbpress pages by non-logged in users ?

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

You must be logged in to reply to this topic.