Changeset 2344
- Timestamp:
- 01/18/2010 09:18:57 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r2343 r2344 396 396 * 'user_id' => false, // user_id to filter on 397 397 * 'object' => false, // object to filter on e.g. groups, profile, status, friends 398 * 'action' => false, // action to filter on e.g. new_wire_post, profile_updated398 * 'action' => false, // action to filter on e.g. activity_update, profile_updated 399 399 * 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 400 400 * 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id … … 435 435 'primary_link' => false, // The primary URL for this item in RSS feeds 436 436 'component_name' => false, // The name/ID of the component e.g. groups, profile, mycomponent 437 'component_action' => false, // The component action e.g. new_wire_post, profile_updated437 'component_action' => false, // The component action e.g. activity_update, profile_updated 438 438 439 439 'user_id' => $bp->loggedin_user->id, // Optional: The user to record the activity for, can be false if this activity is not for a user. … … 502 502 'primary_link' => apply_filters( 'bp_activity_new_update_primary_link', $primary_link ), 503 503 'component_name' => $bp->activity->id, 504 'component_action' => ' new_wire_post'504 'component_action' => 'activity_update' 505 505 ) ); 506 506 -
trunk/bp-activity/bp-activity-templatetags.php
r2291 r2344 125 125 'user_id' => false, // user_id to filter on 126 126 'object' => false, // object to filter on e.g. groups, profile, status, friends 127 'action' => false, // action to filter on e.g. new_wire_post, new_forum_post, profile_updated127 'action' => false, // action to filter on e.g. activity_update, new_forum_post, profile_updated 128 128 'primary_id' => false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc. 129 129 'secondary_id' => false, // secondary object ID to filter on e.g. a post_id … … 733 733 $title = substr( $title, 0, -1 ); 734 734 735 if ( ' new_wire_post' == $activities_template->activity->component_action ) {735 if ( 'activity_update' == $activities_template->activity->component_action ) { 736 736 $content = explode( '<div class="activity-inner">', $activities_template->activity->content ); 737 737 $title .= ': ' . strip_tags( bp_create_excerpt( $content[1], 15 )); -
trunk/bp-groups.php
r2343 r2344 1918 1918 'content' => apply_filters( 'groups_activity_new_update_content', $activity_content ), 1919 1919 'primary_link' => apply_filters( 'groups_activity_new_update_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ), 1920 'component_action' => ' new_wire_post',1920 'component_action' => 'activity_update', 1921 1921 'item_id' => $bp->groups->current_group->id 1922 1922 ) ); -
trunk/bp-themes/bp-default/activity/index.php
r2287 r2344 51 51 <select> 52 52 <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option> 53 <option value=" new_wire_post"><?php _e( 'Show Updates', 'buddypress' ) ?></option>53 <option value="activity_update"><?php _e( 'Show Updates', 'buddypress' ) ?></option> 54 54 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 55 55 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> -
trunk/bp-themes/bp-default/groups/single/activity.php
r2287 r2344 8 8 <select> 9 9 <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option> 10 <option value=" new_wire_post"><?php _e( 'Show Updates', 'buddypress' ) ?></option>10 <option value="activity_update"><?php _e( 'Show Updates', 'buddypress' ) ?></option> 11 11 <option value="new_forum_topic"><?php _e( 'Show New Forum Topics', 'buddypress' ) ?></option> 12 12 <option value="new_forum_post"><?php _e( 'Show Forum Replies', 'buddypress' ) ?></option> -
trunk/bp-themes/bp-default/members/single/activity.php
r2321 r2344 10 10 <select> 11 11 <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option> 12 <option value=" new_wire_post"><?php _e( 'Show Updates', 'buddypress' ) ?></option>12 <option value="activity_update"><?php _e( 'Show Updates', 'buddypress' ) ?></option> 13 13 <option value="new_blog_post"><?php _e( 'Show Blog Posts', 'buddypress' ) ?></option> 14 14 <option value="new_blog_comment"><?php _e( 'Show Blog Comments', 'buddypress' ) ?></option> -
trunk/bp-themes/bp-sn-parent/_inc/ajax.php
r2139 r2344 447 447 $activity_id = xprofile_record_activity( array( 448 448 'user_id' => $bp->loggedin_user->id, 449 'content' => apply_filters( 'xprofile_activity_ new_wire_post', $activity_content, &$wire_post ),450 'primary_link' => apply_filters( 'xprofile_activity_ new_wire_post_primary_link', $primary_link ),451 'component_action' => ' new_wire_post'449 'content' => apply_filters( 'xprofile_activity_update', $activity_content, &$wire_post ), 450 'primary_link' => apply_filters( 'xprofile_activity_update_primary_link', $primary_link ), 451 'component_action' => 'activity_update' 452 452 ) ); 453 453 454 do_action( 'xprofile_ new_wire_post', &$wire_post );454 do_action( 'xprofile_activity_update', &$wire_post ); 455 455 } else { 456 456 $bp->groups->current_group = new BP_Groups_Group( $item_id ); … … 462 462 463 463 $activity_id = groups_record_activity( array( 464 'content' => apply_filters( 'groups_activity_ new_wire_post', $activity_content ),465 'primary_link' => apply_filters( 'groups_activity_ new_wire_post_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ),466 'component_action' => ' new_wire_post',464 'content' => apply_filters( 'groups_activity_update', $activity_content ), 465 'primary_link' => apply_filters( 'groups_activity_update_primary_link', bp_get_group_permalink( $bp->groups->current_group ) ), 466 'component_action' => 'activity_update', 467 467 'item_id' => $item_id 468 468 ) ); 469 469 470 do_action( 'groups_ new_wire_post', $item_id, $wire_post->id );470 do_action( 'groups_activity_update', $item_id, $wire_post->id ); 471 471 } 472 472 -
trunk/bp-themes/bp-sn-parent/functions.php
r2281 r2344 163 163 <select> 164 164 <option value="-1"><?php _e( 'No Filter', 'buddypress' ) ?></option> 165 <option value=" new_wire_post"><?php _e( 'Updates Only', 'buddypress' ) ?></option>165 <option value="activity_update"><?php _e( 'Updates Only', 'buddypress' ) ?></option> 166 166 <option value="new_forum_post,new_forum_topic"><?php _e( 'Group Forum Activity Only', 'buddypress' ) ?></option> 167 167 <option value="new_blog_post,new_blog_comment"><?php _e( 'Blog Activity Only', 'buddypress' ) ?></option>
Note: See TracChangeset
for help on using the changeset viewer.