Skip to:
Content
Pages
Categories
Search
Top
Bottom

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

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.

Skip to toolbar