Changeset 601 for trunk/bp-activity.php
- Timestamp:
- 12/02/2008 09:04:12 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-activity.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-activity.php
r591 r601 3 3 4 4 define ( 'BP_ACTIVITY_IS_INSTALLED', 1 ); 5 define ( 'BP_ACTIVITY_VERSION', '0.2. 4' );5 define ( 'BP_ACTIVITY_VERSION', '0.2.6' ); 6 6 7 7 /* How long before activity items in streams are re-cached? */ … … 44 44 id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, 45 45 content longtext NOT NULL, 46 primary_link varchar(150) NOT NULL, 46 47 component_name varchar(75) NOT NULL, 47 48 date_cached datetime NOT NULL, … … 58 59 user_id int(11) NOT NULL, 59 60 content longtext NOT NULL, 61 primary_link varchar(150) NOT NULL, 60 62 component_name varchar(75) NOT NULL, 61 63 date_cached datetime NOT NULL, … … 89 91 user_id int(11) NOT NULL, 90 92 content longtext NOT NULL, 93 primary_link varchar(150) NOT NULL, 91 94 component_name varchar(75) NOT NULL, 92 95 date_cached datetime NOT NULL, … … 229 232 } 230 233 234 function bp_activity_action_sitewide_feed() { 235 global $bp; 236 237 if ( $bp['current_component'] != $bp['activity']['slug'] || $bp['current_action'] != 'feed' || $bp['current_userid'] ) 238 return false; 239 240 include_once( 'bp-activity/feeds/bp-activity-sitewide-feed.php' ); 241 die; 242 } 243 add_action( 'wp', 'bp_activity_action_sitewide_feed', 3 ); 244 245 function bp_activity_action_personal_feed() { 246 global $bp; 247 248 if ( $bp['current_component'] != $bp['activity']['slug'] || !$bp['current_userid'] || $bp['current_action'] != 'feed' ) 249 return false; 250 251 include_once( 'bp-activity/feeds/bp-activity-personal-feed.php' ); 252 die; 253 } 254 add_action( 'wp', 'bp_activity_action_personal_feed', 3 ); 255 256 function bp_activity_action_friends_feed() { 257 global $bp; 258 259 if ( $bp['current_component'] != $bp['activity']['slug'] || !$bp['current_userid'] || $bp['current_action'] != 'my-friends' || $bp['action_variables'][0] != 'feed' ) 260 return false; 261 262 include_once( 'bp-activity/feeds/bp-activity-friends-feed.php' ); 263 die; 264 } 265 add_action( 'wp', 'bp_activity_action_friends_feed', 3 ); 266 267 function bp_activity_get_last_updated() { 268 return BP_Activity_Activity::get_last_updated(); 269 } 270 271 function bp_activity_get_sitewide_activity( $max_items ) { 272 return BP_Activity_Activity::get_sitewide_activity( $max_items ); 273 } 274 231 275 function bp_activity_delete( $item_id, $user_id, $component_name ) { 232 276 return BP_Activity_Activity::delete( $item_id, $user_id, $component_name );
Note: See TracChangeset
for help on using the changeset viewer.