Skip to:
Content
Pages
Categories
Search
Top
Bottom

[SOLVED] Group Admin Screens Problem – Searched many things for solution.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Also when I hover mouse on ‘Admin’ it shows me correct url http://localhost/buddies/groups/sportsgroup/admin/
    but when I click group name is not seen in url and result is http://localhost/buddies/groups//admin/
    I wonder if groups/single/admin.php has something in it.

    I found the problem was in bp-custom.php where I wrote the code which applies filters ‘bp_get_group_permalink’
    as a result if slug was not sports it was returning just group slug. But if someone explain more on this would appreciate.

    <?php //Don't use this code it will mess your groups buggy one I removed it
    function group_members_permalink( ) {
    global $groups_template, $bp;
    if ( !$group )
    $group =& $groups_template->group;

    if($bp->current_component==$bp->sports->slug)
    {
    return apply_filters( ‘bp_get_group_permalink1’, $bp->root_domain . ‘/’ . $bp->groups->slug . ‘/’ . $group->slug . ‘/members’ );
    }
    else
    {
    return apply_filters( ‘bp_get_group_permalink1’, $bp->root_domain . ‘/’ . $bp->groups->slug . ‘/’ . $group->slug . ‘/’ );
    }

    }

    add_action( ‘bp_get_group_permalink’,’group_members_permalink’);
    ?>
    Ahh , would love to know more about this stuff. Any pointers.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[SOLVED] Group Admin Screens Problem – Searched many things for solution.’ is closed to new replies.
Skip to toolbar