Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • mhannor
    Participant

    @mhannor

    I finally figured it out, for some odd reason, it would not work with <?  ?> tags I had to do <?php ?>, wierd, but I dont care lol it worked, thanks a million.


    mhannor
    Participant

    @mhannor

    So I placed this in wp-content\plugins\bp-custom.php

    Then I added:

    function bp_guest_redirect() {

    global $bp;

    if ( bp_is_activity_component() || bp_is_groups_component() /*||

    bbp_is_single_forum()*/ ||bp_is_forums_component() ||

    bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {

    // enter the slug or component conditional here

    if(!is_user_logged_in()) { // not logged in user

    wp_redirect( get_option(‘siteurl’) . ‘/members-2’ );

    } // user will be redirect to any link to want

    }

    }

    add_filter(‘get_header’,’bp_guest_redirect’,1);

     

    That didnt help the pages still show

Viewing 2 replies - 1 through 2 (of 2 total)
Skip to toolbar