[buddypress-trac] [BuddyPress] #3719: Certain group tab start help for a plug in
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Fri Oct 28 16:07:27 UTC 2011
#3719: Certain group tab start help for a plug in
---------------------------------------+------------------------------
Reporter: TimCarey | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Groups | Version: 1.5
Severity: normal | Resolution:
Keywords: 1.5 plug in redirect help |
---------------------------------------+------------------------------
Changes (by boonebgorges):
* keywords: 1.5 plug in redirect,help => 1.5 plug in redirect help
Comment:
1) Hook earlier.
{{{
add_action( 'wp', 'tac_redirect_to_frontpage', 1 );
}}}
2) bp_options_nav group items are no longer keyed as 'groups'. Try:
{{{
if ( bp_is_group_home() && strpos( $path,
$bp->bp_options_nav[$bp->groups->current_group->slug]['home']['slug'] )
=== false )
bp_core_redirect( $path .
$bp->bp_options_nav[$bp->groups->current_group->slug]['frontpage']['slug']
. '/' );
}}}
See http://bpdevel.wordpress.com/2011/09/05/manually-modifying-single-
group-navigation-in-bp-1-5/ for more details on the change.
Please direct these kinds of questions to the BP support forums or to the
development blog. This Trac installation is for discussion of BP bugs and
feature enhancements only. Thanks!
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3719#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list