Skip to:
Content

BuddyPress.org

Changeset 1563


Ignore:
Timestamp:
06/22/2009 08:22:50 PM (13 years ago)
Author:
apeatling
Message:

Fixes #685

Location:
branches/1.0/bp-activity
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/1.0/bp-activity/bp-activity-templatetags.php

    r1499 r1563  
    310310/* Template tags for RSS feed output */
    311311
     312function bp_activity_feed_item_guid() {
     313    echo bp_get_activity_feed_item_guid();
     314}
     315    function bp_get_activity_feed_item_guid() {
     316        global $activities_template;
     317
     318        return apply_filters( 'bp_get_activity_feed_item_title', md5( $activities_template->activity->date_recorded . '-' . $activities_template->activity->content ) );   
     319    }
     320
    312321function bp_activity_feed_item_title() {
    313322    echo bp_get_activity_feed_item_title();
  • branches/1.0/bp-activity/feeds/bp-activity-friends-feed.php

    r1366 r1563  
    2424    <description><?php printf( __( '%s - Friends Activity Feed', 'buddypress' ), $bp->displayed_user->fullname ) ?></description>
    2525    <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', bp_activity_get_last_updated(), false); ?></pubDate>
    26     <generator>http://buddypress.org/?bp-activity-version=<?php echo BP_ACTIVITY_VERSION ?></generator>
     26    <generator>http://buddypress.org/?v=<?php echo BP_VERSION ?></generator>
    2727    <language><?php echo get_option('rss_language'); ?></language>
    2828    <?php do_action('bp_activity_friends_feed_head'); ?>
     
    3131        <?php while ( bp_activities() ) : bp_the_activity(); ?>
    3232            <item>
     33                <guid><?php bp_activity_feed_item_guid() ?></guid>
    3334                <title><![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>
    3435                <link><?php echo bp_activity_feed_item_link() ?></link>
    35                 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', bp_activity_feed_item_date(), false); ?></pubDate>
     36                <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', bp_get_activity_feed_item_date(), false); ?></pubDate>
    3637
    3738                <description><![CDATA[<?php bp_activity_feed_item_description() ?>]]></description>
  • branches/1.0/bp-activity/feeds/bp-activity-personal-feed.php

    r1366 r1563  
    2424    <description><?php printf( __( '%s - Activity Feed', 'buddypress' ), $bp->displayed_user->fullname ) ?></description>
    2525    <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', bp_activity_get_last_updated(), false); ?></pubDate>
    26     <generator>http://buddypress.org/?bp-activity-version=<?php echo BP_ACTIVITY_VERSION ?></generator>
     26    <generator>http://buddypress.org/?v=<?php echo BP_VERSION ?></generator>
    2727    <language><?php echo get_option('rss_language'); ?></language>
    2828    <?php do_action('bp_activity_personal_feed_head'); ?>
     
    3131        <?php while ( bp_activities() ) : bp_the_activity(); ?>
    3232            <item>
     33                <guid><?php bp_activity_feed_item_guid() ?></guid>
    3334                <title><![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>
    3435                <link><?php echo bp_activity_feed_item_link() ?></link>
    35                 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', bp_activity_feed_item_date(), false); ?></pubDate>
     36                <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', bp_get_activity_feed_item_date(), false); ?></pubDate>
    3637
    3738                <description><![CDATA[<?php bp_activity_feed_item_description() ?>]]></description>
  • branches/1.0/bp-activity/feeds/bp-activity-sitewide-feed.php

    r1366 r1563  
    2525    <description><?php _e( 'Site Wide Activity Feed', 'buddypress' ) ?></description>
    2626    <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', bp_activity_get_last_updated(), false); ?></pubDate>
    27     <generator>http://buddypress.org/?bp-activity-version=<?php echo BP_ACTIVITY_VERSION ?></generator>
     27    <generator>http://buddypress.org/?v=<?php echo BP_VERSION ?></generator>
    2828    <language><?php echo get_option('rss_language'); ?></language>
    2929    <?php do_action('bp_activity_sitewide_feed_head'); ?>
     
    3232        <?php while ( bp_activities() ) : bp_the_activity(); ?>
    3333            <item>
     34                <guid><?php bp_activity_feed_item_guid() ?></guid>
    3435                <title><![CDATA[<?php bp_activity_feed_item_title() ?>]]></title>
    35                 <link><?php echo bp_activity_feed_item_link() ?></link>
    36                 <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', bp_activity_feed_item_date(), false); ?></pubDate>
     36                <link><?php bp_activity_feed_item_link() ?></link>
     37                <pubDate><?php echo mysql2date('D, d M Y H:i:s +0000', bp_get_activity_feed_item_date(), false); ?></pubDate>
    3738
    3839                <description><![CDATA[<?php bp_activity_feed_item_description() ?>]]></description>
Note: See TracChangeset for help on using the changeset viewer.