Skip to:
Content
Pages
Categories
Search
Top
Bottom

Private BuddyPress plugin – exclude single page?

  • Hello All :-) !

    I hope my question is straightforward. I have WP installed on a subdirectory of my domain (i.e. http://www….com/wpinstallation) Within WP, I created a new page (only for redirection to main domain), which displays and works fine in the navigation bar on BuddyPress (i.e. Home, Activity, Member… New Page for Redirection to Main Domain) . The only problem arises when I have Private Buddypress running; the redirect page is included in the privacy, so it requires a login rather than just running the redirect script. I want the privacy to be set up accordingly for all the other pages (while still retaining the checkbox functionality from the WP privacy panel).

    I tried Dennis Morhardt’s instructions with the exclude code being inserted into the functions.php (maybe I wasn’t doing it correctly). I tried a number of variations of the code below, but it didn’t work for me. Can anyone suggest what I should do to exclude that single page from the privacy settings? Please note, I am not a very experienced PHP coder. Thank you very much ! :-)
    `
    function make_blog_directory_visible($visibility) {
    global $bp;

    if ( bp_is_directory() && $bp->current_component == $bp->blogs->slug )
    return false;

    return $visibility;
    }

    add_filter(’pbp_login_required_check’, ’make_blog_directory_visible’);

    `

  • The topic ‘Private BuddyPress plugin – exclude single page?’ is closed to new replies.
Skip to toolbar