Changeset 2189 for trunk/bp-groups.php
- Timestamp:
- 12/16/2009 09:38:39 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-groups.php (modified) (23 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-groups.php
r2179 r2189 321 321 322 322 <ul> 323 <li><a class="confirm" href="<?php echo wp_nonce_url( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/delete-group/', 'groups_delete_group' ) ?>&delete-group-button=1&delete-group-understand=1"><?php _e( "Delete Group", 'buddypress' ) ?></a></li>323 <li><a class="confirm" href="<?php echo wp_nonce_url( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/delete-group/', 'groups_delete_group' ) ?>&delete-group-button=1&delete-group-understand=1"><?php _e( "Delete Group", 'buddypress' ) ?></a></li> 324 324 325 325 <?php do_action( 'groups_adminbar_menu_items' ) ?> … … 447 447 $query_vars = '?' . $_SERVER['QUERY_STRING']; 448 448 449 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /forum/topic/' . $topic_slug . '/' . $query_vars );449 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic_slug . '/' . $query_vars ); 450 450 } 451 451 … … 546 546 547 547 do_action( 'groups_edit_forum_topic', $topic_id ); 548 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /forum/topic/' . $topic_slug . '/' );548 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic_slug . '/' ); 549 549 } 550 550 … … 592 592 593 593 do_action( 'groups_edit_forum_post', $post_id ); 594 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /forum/topic/' . $topic_slug . '/' );594 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic_slug . '/' ); 595 595 } 596 596 … … 619 619 bp_core_add_message( __( 'The topic was created successfully', 'buddypress') ); 620 620 621 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /forum/topic/' . $topic->topic_slug . '/' );621 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/' ); 622 622 } 623 623 … … 648 648 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) ); 649 649 else 650 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . '/' .$bp->wire->slug );650 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . $bp->wire->slug ); 651 651 652 652 } else if ( 'delete' == $wire_action && ( is_site_admin() || groups_is_user_member( $bp->loggedin_user->id, $bp->groups->current_group->id ) ) ) { … … 665 665 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) ); 666 666 else 667 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . '/' .$bp->wire->slug );667 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . $bp->wire->slug ); 668 668 669 669 } else if ( ( !$wire_action || 'latest' == $bp->action_variables[1] ) ) { … … 790 790 return false; 791 791 792 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/edit-details' );792 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/edit-details/' ); 793 793 } 794 794 … … 814 814 do_action( 'groups_group_details_edited', $bp->groups->current_group->id ); 815 815 816 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/edit-details' );816 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/edit-details/' ); 817 817 } 818 818 … … 855 855 do_action( 'groups_group_settings_edited', $bp->groups->current_group->id ); 856 856 857 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/group-settings' );857 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/group-settings/' ); 858 858 } 859 859 … … 948 948 do_action( 'groups_promoted_member', $user_id, $bp->groups->current_group->id ); 949 949 950 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/manage-members' );950 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/manage-members/' ); 951 951 } 952 952 … … 973 973 do_action( 'groups_demoted_member', $user_id, $bp->groups->current_group->id ); 974 974 975 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/manage-members' );975 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/manage-members/' ); 976 976 } 977 977 … … 998 998 do_action( 'groups_banned_member', $user_id, $bp->groups->current_group->id ); 999 999 1000 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/manage-members' );1000 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/manage-members/' ); 1001 1001 } 1002 1002 … … 1017 1017 do_action( 'groups_unbanned_member', $user_id, $bp->groups->current_group->id ); 1018 1018 1019 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/manage-members' );1019 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/manage-members/' ); 1020 1020 } 1021 1021 … … 1071 1071 do_action( 'groups_group_request_managed', $bp->groups->current_group->id, $request_action, $membership_id ); 1072 1072 1073 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . ' /admin/membership-requests' );1073 bp_core_redirect( bp_get_group_permalink( $bp->groups->current_group ) . 'admin/membership-requests/' ); 1074 1074 } 1075 1075 … … 1429 1429 return false; 1430 1430 1431 /* If the group is not public, hide the activity sitewide , or basically when not looking at the group feed. */1431 /* If the group is not public, hide the activity sitewide. */ 1432 1432 if ( 'public' == $bp->groups->current_group->status ) 1433 1433 $hide_sitewide = false; … … 2071 2071 $topic = bp_forums_get_topic_details( $topic_id ); 2072 2072 2073 $activity_content = sprintf( __( '%s posted on the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . ' /forum/topic/' . $topic->topic_slug .'">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );2073 $activity_content = sprintf( __( '%s posted on the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ); 2074 2074 $activity_content .= '<blockquote>' . bp_create_excerpt( attribute_escape( $post_text ) ) . '</blockquote>'; 2075 2075 … … 2077 2077 groups_record_activity( array( 2078 2078 'content' => apply_filters( 'groups_activity_new_forum_post', $activity_content, $post_text, &$topic, &$forum_post ), 2079 'primary_link' => apply_filters( 'groups_activity_new_forum_post_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ),2079 'primary_link' => apply_filters( 'groups_activity_new_forum_post_primary_link', bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/' ), 2080 2080 'component_action' => 'new_forum_post', 2081 2081 'item_id' => $bp->groups->current_group->id, … … 2100 2100 $topic = bp_forums_get_topic_details( $topic_id ); 2101 2101 2102 $activity_content = sprintf( __( '%s started the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . ' /forum/topic/' . $topic->topic_slug .'">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );2102 $activity_content = sprintf( __( '%s started the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $bp->loggedin_user->id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ); 2103 2103 $activity_content .= '<blockquote>' . bp_create_excerpt( attribute_escape( $topic_text ) ) . '</blockquote>'; 2104 2104 … … 2106 2106 groups_record_activity( array( 2107 2107 'content' => apply_filters( 'groups_activity_new_forum_topic', $activity_content, $topic_text, &$topic ), 2108 'primary_link' => apply_filters( 'groups_activity_new_forum_topic_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ),2108 'primary_link' => apply_filters( 'groups_activity_new_forum_topic_primary_link', bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/' ), 2109 2109 'component_action' => 'new_forum_topic', 2110 2110 'item_id' => $bp->groups->current_group->id, … … 2128 2128 bp_activity_delete_by_item_id( array( 'item_id' => $bp->groups->current_group->id, 'secondary_item_id' => $topic_id, 'component_name' => $bp->groups->id, 'component_action' => 'new_forum_topic' ) ); 2129 2129 2130 $activity_content = sprintf( __( '%s started the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $topic->topic_poster ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . ' /forum/topic/' . $topic->topic_slug .'">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );2130 $activity_content = sprintf( __( '%s started the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $topic->topic_poster ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'/">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ); 2131 2131 $activity_content .= '<blockquote>' . bp_create_excerpt( attribute_escape( $topic_text ) ) . '</blockquote>'; 2132 2132 … … 2134 2134 groups_record_activity( array( 2135 2135 'content' => apply_filters( 'groups_activity_new_forum_topic', $activity_content, $topic_text, &$topic ), 2136 'primary_link' => apply_filters( 'groups_activity_new_forum_topic_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ),2136 'primary_link' => apply_filters( 'groups_activity_new_forum_topic_primary_link', bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug . '/' ), 2137 2137 'component_action' => 'new_forum_topic', 2138 2138 'item_id' => (int)$bp->groups->current_group->id, … … 2162 2162 bp_activity_delete_by_item_id( array( 'item_id' => $bp->groups->current_group->id, 'secondary_item_id' => $post_id, 'component_name' => $bp->groups->id, 'component_action' => 'new_forum_post' ) ); 2163 2163 2164 $activity_content = sprintf( __( '%s posted on the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $post->poster_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . ' /forum/topic/' . $topic->topic_slug .'">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' );2164 $activity_content = sprintf( __( '%s posted on the forum topic %s in the group %s:', 'buddypress'), bp_core_get_userlink( $post->poster_id ), '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . 'forum/topic/' . $topic->topic_slug .'">' . attribute_escape( $topic->topic_title ) . '</a>', '<a href="' . bp_get_group_permalink( $bp->groups->current_group ) . '">' . attribute_escape( $bp->groups->current_group->name ) . '</a>' ); 2165 2165 $activity_content .= '<blockquote>' . bp_create_excerpt( attribute_escape( $post_text ) ) . '</blockquote>'; 2166 2166
Note: See TracChangeset
for help on using the changeset viewer.