Skip to:
Content

BuddyPress.org

Changeset 601 for trunk/bp-activity.php


Ignore:
Timestamp:
12/02/2008 09:04:12 PM (17 years ago)
Author:
apeatling
Message:

Added profile field filters
Added RSS feeds to site wide, personal and friend feeds
Small fixes on blog, member and group directories

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity.php

    r591 r601  
    33
    44define ( 'BP_ACTIVITY_IS_INSTALLED', 1 );
    5 define ( 'BP_ACTIVITY_VERSION', '0.2.4' );
     5define ( 'BP_ACTIVITY_VERSION', '0.2.6' );
    66
    77/* How long before activity items in streams are re-cached? */
     
    4444                id int(11) NOT NULL AUTO_INCREMENT PRIMARY KEY,
    4545                content longtext NOT NULL,
     46                primary_link varchar(150) NOT NULL,
    4647                component_name varchar(75) NOT NULL,
    4748                date_cached datetime NOT NULL,
     
    5859                user_id int(11) NOT NULL,
    5960                content longtext NOT NULL,
     61                primary_link varchar(150) NOT NULL,
    6062                component_name varchar(75) NOT NULL,
    6163                date_cached datetime NOT NULL,
     
    8991                user_id int(11) NOT NULL,
    9092                content longtext NOT NULL,
     93                primary_link varchar(150) NOT NULL,
    9194                component_name varchar(75) NOT NULL,
    9295                date_cached datetime NOT NULL,
     
    229232}
    230233
     234function 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}
     243add_action( 'wp', 'bp_activity_action_sitewide_feed', 3 );
     244
     245function 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}
     254add_action( 'wp', 'bp_activity_action_personal_feed', 3 );
     255
     256function 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}
     265add_action( 'wp', 'bp_activity_action_friends_feed', 3 );
     266
     267function bp_activity_get_last_updated() {
     268    return BP_Activity_Activity::get_last_updated();
     269}
     270
     271function bp_activity_get_sitewide_activity( $max_items ) {
     272    return BP_Activity_Activity::get_sitewide_activity( $max_items );
     273}
     274
    231275function bp_activity_delete( $item_id, $user_id, $component_name ) {
    232276    return BP_Activity_Activity::delete( $item_id, $user_id, $component_name );
Note: See TracChangeset for help on using the changeset viewer.