Skip to:
Content
Pages
Categories
Search
Top
Bottom

Click the Link in the Group Directory is Page not found

  • Avatar of @mikey3d
    @mikey3d
    Participant

    @mikey3d

    I always have testing site before into production site when updating new versions of WP and BP.

    After I have upgrading BP 1.6.1 I get “Page not found” when I clicked the link in the Group Directory. I scratched my head and not sure what to do? But I did try resaving the change in the “permalink settings” it didn’t work. What is the solution?

Viewing 1 replies (of 1 total)
  • Avatar of @mikey3d
    @mikey3d
    Participant

    @mikey3d

    I found the problem. When I change the theme to bp-default and the link in the Group Directory is working. But oh boy, it is not theme it was the function.php that I add @boonebgorges codes is not working:

    What’s the easiest way to change the default landing page for BuddyPress groups?

    It was working in BP 1.6 but not BP 1.6.1. I deleted it. It works.

    `function bbg_set_new_group_default_subnav() {
    global $bp;

    if ( bp_is_group() ) {
    // Set up your new default
    $new_screen_function = ‘groups_screen_group_forum’;
    $new_default_slug = ‘forum’;

    $parent_slug = bp_get_current_group_slug();

    if ( $function = $bp->bp_nav[$parent_slug] ) {
    if ( !is_object( $function[0] ) )
    remove_action( ‘bp_screens’, $function, 3 );
    else
    remove_action( ‘bp_screens’, array( &$function[0], $function[1] ), 3 );
    }

    $bp->bp_nav[$parent_slug] = &$new_screen_function;

    if ( bp_is_groups_component() && !bp_current_action() ) {
    if ( !is_object( $new_screen_function[0] ) ) {
    add_action( ‘bp_screens’, $new_screen_function );

    } else {
    add_action( ‘bp_screens’, array( &$new_screen_function[0], $new_screen_function[1] ) );
    }

    $bp->current_action = $new_default_slug;
    }
    }
    }
    add_action( ‘bp_setup_nav’, ‘bbg_set_new_group_default_subnav’, 999 );

    function bbg_set_new_group_default_action() {
    global $bp;

    if ( bp_is_group() && !bp_current_action() ) {
    $bp->current_action = ‘forum’;
    }
    }
    add_action( ‘bp_setup_globals’, ‘bbg_set_new_group_default_action’, 999 );`

    Mikey3D

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.