Support » Plugin: BuddyPress Groups Extras » [Plugin: BuddyPress Groups Extras] activity feed still default even when group extras tab first

  • Resolved studioleland

    (@studioleland)


    Having a lot of trouble making the group extras Page tab show up as the default tab instead of the activity feed. The extras tab is sorted to be the first tab and does show up highlighted but no page content is displayed only the activity feed content. Not even this fix works:

    function redirect_group_home() {
      global $bp;
      $path = clean_url( $_SERVER['REQUEST_URI'] );
      $path = apply_filters( 'bp_uri', $path );
      if (bp_is_group_home() && strpos( $path, $bp->bp_options_nav[$bp->groups->current_group->slug]['home']['slug'] ) === false ) {
        if ($bp->groups->current_group->is_user_member || $bp->groups->current_group->status == 'public') {
          bp_core_redirect( $path . 'gpages/' );
        }
      }
    }

    The content does show if you click on the tab but that defeats the purpose of being the first tab. My code above works to make any tab the default tab without group extras but I would like to be able to show the landing tab content from extras tab.
    http://wordpress.org/extend/plugins/buddypress-groups-extras/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: BuddyPress Groups Extras] activity feed still default even when group extras tab first’ is closed to new replies.