Ticket #1997: activity-disabled.patch
| File activity-disabled.patch, 3.0 KB (added by , 16 years ago) |
|---|
-
bp-core/bp-core-templatetags.php
1590 1590 return false; 1591 1591 } 1592 1592 1593 function bp_is_group_activity() { 1594 global $bp; 1595 1596 if ( BP_GROUPS_SLUG == $bp->current_component && $bp->is_single_item && 'activity' == $bp->current_action ) 1597 return true; 1598 1599 return false; 1600 } 1601 1593 1602 function bp_is_group_forum_topic() { 1594 1603 global $bp; 1595 1604 -
bp-themes/bp-default/groups/single/home.php
23 23 <div id="item-body"> 24 24 <?php do_action( 'bp_before_group_body' ) ?> 25 25 26 <?php if ( bp_is_group_admin_page() && bp_group_is_visible() ) : ?> 27 <?php locate_template( array( 'groups/single/admin.php' ), true ) ?> 26 <?php if ( bp_group_is_visible() ) : ?> 28 27 29 <?php elseif ( bp_is_group_members() && bp_group_is_visible() ) : ?>30 <?php locate_template( array( 'groups/single/members.php' ), true ) ?>28 <?php if ( bp_is_group_admin_page() ) : ?> 29 <?php locate_template( array( 'groups/single/admin.php' ), true ) ?> 31 30 32 <?php elseif ( bp_is_group_invites() && bp_group_is_visible() ) : ?> 33 <?php locate_template( array( 'groups/single/send-invites.php' ), true ) ?> 31 <?php elseif ( bp_is_group_home() ) : ?> 34 32 35 <?php elseif ( bp_is_group_forum() && bp_group_is_visible() ) : ?>36 <?php locate_template( array( 'groups/single/forum.php' ), true ) ?>33 <?php if ( function_exists( 'bp_activity_install' ) ) : ?> 34 <?php locate_template( array( 'groups/single/activity.php' ), true ) ?> 37 35 36 <?php elseif ( function_exists( 'bp_forums_setup' ) ) : ?> 37 <?php locate_template( array( 'groups/single/forum.php' ), true ) ?> 38 39 <?php else : ?> 40 <?php locate_template( array( 'groups/single/members.php' ), true ) ?> 41 42 <?php endif; ?> 43 44 <?php elseif ( function_exists( 'bp_forums_setup' ) && bp_is_group_forum() ) : ?> 45 <?php locate_template( array( 'groups/single/forum.php' ), true ) ?> 46 47 <?php elseif ( function_exists( 'bp_activity_install' ) && bp_is_group_activity() ) : ?> 48 <?php locate_template( array( 'groups/single/forum.php' ), true ) ?> 49 50 <?php elseif ( bp_is_group_members() ) : ?> 51 <?php locate_template( array( 'groups/single/members.php' ), true ) ?> 52 53 <?php elseif ( bp_is_group_invites() ) : ?> 54 <?php locate_template( array( 'groups/single/send-invites.php' ), true ) ?> 55 56 <?php endif; ?> 57 38 58 <?php elseif ( bp_is_group_membership_request() ) : ?> 39 59 <?php locate_template( array( 'groups/single/request-membership.php' ), true ) ?> 40 60 41 <?php elseif ( bp_group_is_visible() ) : ?>42 <?php locate_template( array( 'groups/single/activity.php' ), true ) ?>43 44 61 <?php else : ?> 45 62 <?php /* The group is not visible, show the status message */ ?> 46 63
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)