<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [2270] trunk: Updated RSS feed support in default theme.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>2270</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2010-01-06 16:04:58 +0000 (Wed, 06 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Updated RSS feed support in default theme.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivityfiltersphp">trunk/bp-activity/bp-activity-filters.php</a></li>
<li><a href="#trunkbpactivitybpactivitytemplatetagsphp">trunk/bp-activity/bp-activity-templatetags.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivityfriendsfeedphp">trunk/bp-activity/feeds/bp-activity-friends-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitypersonalfeedphp">trunk/bp-activity/feeds/bp-activity-personal-feed.php</a></li>
<li><a href="#trunkbpactivityfeedsbpactivitysitewidefeedphp">trunk/bp-activity/feeds/bp-activity-sitewide-feed.php</a></li>
<li><a href="#trunkbpactivityphp">trunk/bp-activity.php</a></li>
<li><a href="#trunkbpgroupsbpgroupstemplatetagsphp">trunk/bp-groups/bp-groups-templatetags.php</a></li>
<li><a href="#trunkbpgroupsphp">trunk/bp-groups.php</a></li>
<li><a href="#trunkbpthemesbpdefault_inccssdefaultcss">trunk/bp-themes/bp-default/_inc/css/default.css</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupssingleactivityphp">trunk/bp-themes/bp-default/groups/single/activity.php</a></li>
<li><a href="#trunkbpthemesbpdefaultheaderphp">trunk/bp-themes/bp-default/header.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssingleactivityphp">trunk/bp-themes/bp-default/members/single/activity.php</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkbpactivityfeedsbpactivitygroupfeedphp">trunk/bp-activity/feeds/bp-activity-group-feed.php</a></li>
<li><a href="#trunkbpthemesbpdefault_incimagesrsspng">trunk/bp-themes/bp-default/_inc/images/rss.png</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivityfiltersphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-filters.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-filters.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-activity/bp-activity-filters.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -4,9 +4,11 @@
</span><span class="cx"> add_filter( 'bp_get_activity_content', 'bp_activity_filter_kses', 1 );
</span><span class="cx"> add_filter( 'bp_get_activity_parent_content', 'bp_activity_filter_kses', 1 );
</span><span class="cx"> add_filter( 'bp_get_activity_latest_update', 'bp_activity_filter_kses', 1 );
</span><ins>+add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_filter_kses', 1 );
</ins><span class="cx"> 
</span><span class="cx"> add_filter( 'bp_get_activity_content', 'force_balance_tags' );
</span><span class="cx"> add_filter( 'bp_get_activity_latest_update', 'force_balance_tags' );
</span><ins>+add_filter( 'bp_get_activity_feed_item_description', 'force_balance_tags' );
</ins><span class="cx"> 
</span><span class="cx"> add_filter( 'bp_get_activity_content', 'wptexturize' );
</span><span class="cx"> add_filter( 'bp_get_activity_parent_content', 'wptexturize' );
</span><span class="lines">@@ -21,14 +23,17 @@
</span><span class="cx"> add_filter( 'bp_get_activity_latest_update', 'convert_chars' );
</span><span class="cx"> 
</span><span class="cx"> add_filter( 'bp_get_activity_content', 'wpautop' );
</span><ins>+add_filter( 'bp_get_activity_feed_item_description', 'wpautop' );
</ins><span class="cx"> 
</span><span class="cx"> add_filter( 'bp_get_activity_content', 'make_clickable' );
</span><span class="cx"> add_filter( 'bp_get_activity_parent_content', 'make_clickable' );
</span><span class="cx"> add_filter( 'bp_get_activity_latest_update', 'make_clickable' );
</span><ins>+add_filter( 'bp_get_activity_feed_item_description', 'make_clickable' );
</ins><span class="cx"> 
</span><span class="cx"> add_filter( 'bp_get_activity_content', 'stripslashes_deep' );
</span><span class="cx"> add_filter( 'bp_get_activity_parent_content', 'stripslashes_deep' );
</span><span class="cx"> add_filter( 'bp_get_activity_latest_update', 'stripslashes_deep' );
</span><ins>+add_filter( 'bp_get_activity_feed_item_description', 'stripslashes_deep' );
</ins><span class="cx"> 
</span><span class="cx"> add_filter( 'bp_get_activity_parent_content', 'bp_create_excerpt' );
</span><span class="cx"> 
</span><span class="lines">@@ -79,5 +84,6 @@
</span><span class="cx"> add_filter( 'xprofile_activity_new_update_content', 'bp_activity_at_name_filter' );
</span><span class="cx"> add_filter( 'groups_activity_new_update_content', 'bp_activity_at_name_filter' );
</span><span class="cx"> add_filter( 'bp_activity_comment_content', 'bp_activity_at_name_filter' );
</span><ins>+add_filter( 'bp_get_activity_feed_item_description', 'bp_activity_at_name_filter' );
</ins><span class="cx"> 
</span><span class="cx"> ?&gt;
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbpactivitybpactivitytemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-templatetags.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-templatetags.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-activity/bp-activity-templatetags.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -668,21 +668,25 @@
</span><span class="cx">         function bp_get_sitewide_activity_feed_link() {
</span><span class="cx">                 global $bp;
</span><span class="cx"> 
</span><del>-                return apply_filters( 'bp_get_sitewide_activity_feed_link', site_url( $bp-&gt;activity-&gt;slug . '/feed' ) );
</del><ins>+                return apply_filters( 'bp_get_sitewide_activity_feed_link', site_url( $bp-&gt;activity-&gt;slug . '/feed/' ) );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><del>-function bp_activities_member_rss_link() {
-        echo bp_get_activities_member_rss_link();
</del><ins>+function bp_member_activity_feed_link() {
+        echo bp_get_member_activity_feed_link();
</ins><span class="cx"> }
</span><del>-        function bp_get_activities_member_rss_link() {
</del><ins>+function bp_activities_member_rss_link() { echo bp_get_member_activity_feed_link(); }
+
+        function bp_get_member_activity_feed_link() {
</ins><span class="cx">                 global $bp;
</span><span class="cx"> 
</span><span class="cx">                 if ( ( $bp-&gt;current_component == $bp-&gt;profile-&gt;slug ) || 'just-me' == $bp-&gt;current_action )
</span><del>-                        return apply_filters( 'bp_get_activities_member_rss_link', $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/feed' );
</del><ins>+                        return apply_filters( 'bp_get_activities_member_rss_link', $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/feed/' );
</ins><span class="cx">                 else
</span><del>-                        return apply_filters( 'bp_get_activities_member_rss_link', $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/my-friends/feed' );
</del><ins>+                        return apply_filters( 'bp_get_activities_member_rss_link', $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/my-friends/feed/' );
</ins><span class="cx">         }
</span><ins>+        function bp_get_activities_member_rss_link() { return bp_get_member_activity_feed_link(); }
</ins><span class="cx"> 
</span><ins>+
</ins><span class="cx"> /* Template tags for RSS feed output */
</span><span class="cx"> 
</span><span class="cx"> function bp_activity_feed_item_guid() {
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivityfriendsfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-friends-feed.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-friends-feed.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-activity/feeds/bp-activity-friends-feed.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> /**
</span><del>- * RSS2 Feed Template for displaying the site wide activity stream.
</del><ins>+ * RSS2 Feed Template for displaying a member's friends activity stream.
</ins><span class="cx">  *
</span><span class="cx">  * @package BuddyPress
</span><span class="cx">  */
</span><span class="lines">@@ -26,11 +26,11 @@
</span><span class="cx">         &lt;generator&gt;http://buddypress.org/?v=&lt;?php echo BP_VERSION ?&gt;&lt;/generator&gt;
</span><span class="cx">         &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
</span><span class="cx">         &lt;?php do_action('bp_activity_friends_feed_head'); ?&gt;
</span><del>-        
</del><ins>+
</ins><span class="cx">         &lt;?php if ( bp_has_activities( 'type=friends&amp;max=50' ) ) : ?&gt;
</span><span class="cx">                 &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
</span><span class="cx">                         &lt;item&gt;
</span><del>-                                &lt;guid&gt;&lt;?php bp_activity_feed_item_guid() ?&gt;&lt;/guid&gt;
</del><ins>+                                &lt;guid&gt;&lt;?php bp_activity_thread_permalink() ?&gt;&lt;/guid&gt;
</ins><span class="cx">                                 &lt;title&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_title() ?&gt;]]&gt;&lt;/title&gt;
</span><span class="cx">                                 &lt;link&gt;&lt;?php echo bp_activity_feed_item_link() ?&gt;&lt;/link&gt;
</span><span class="cx">                                 &lt;pubDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?&gt;&lt;/pubDate&gt;
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitygroupfeedphp"></a>
<div class="addfile"><h4>Added: trunk/bp-activity/feeds/bp-activity-group-feed.php (0 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-group-feed.php                                (rev 0)
+++ trunk/bp-activity/feeds/bp-activity-group-feed.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -0,0 +1,45 @@
</span><ins>+&lt;?php
+/**
+ * RSS2 Feed Template for displaying a group activity stream
+ *
+ * @package BuddyPress
+ */
+header('Content-Type: text/xml; charset=' . get_option('blog_charset'), true);
+header('Status: 200 OK');
+?&gt;
+&lt;?php echo '&lt;?xml version=&quot;1.0&quot; encoding=&quot;'.get_option('blog_charset').'&quot;?'.'&gt;'; ?&gt;
+
+&lt;rss version=&quot;2.0&quot;
+        xmlns:content=&quot;http://purl.org/rss/1.0/modules/content/&quot;
+        xmlns:wfw=&quot;http://wellformedweb.org/CommentAPI/&quot;
+        xmlns:dc=&quot;http://purl.org/dc/elements/1.1/&quot;
+        xmlns:atom=&quot;http://www.w3.org/2005/Atom&quot;
+        &lt;?php do_action('bp_activity_group_feed'); ?&gt;
+&gt;
+
+&lt;channel&gt;
+        &lt;title&gt;&lt;?php echo $bp-&gt;groups-&gt;current_group-&gt;name ?&gt; - &lt;?php _e( 'Group Activity', 'buddypress' ) ?&gt;&lt;/title&gt;
+        &lt;atom:link href=&quot;&lt;?php self_link(); ?&gt;&quot; rel=&quot;self&quot; type=&quot;application/rss+xml&quot; /&gt;
+        &lt;link&gt;&lt;?php echo bp_get_group_permalink( $bp-&gt;groups-&gt;current_group ) . $bp-&gt;activity-&gt;slug . '/feed' ?&gt;&lt;/link&gt;
+        &lt;description&gt;&lt;?php printf( __( '%s - Group Activity Feed', 'buddypress' ), $bp-&gt;groups-&gt;current_group-&gt;name  ) ?&gt;&lt;/description&gt;
+        &lt;pubDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s O', bp_activity_get_last_updated(), false); ?&gt;&lt;/pubDate&gt;
+        &lt;generator&gt;http://buddypress.org/?v=&lt;?php echo BP_VERSION ?&gt;&lt;/generator&gt;
+        &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
+        &lt;?php do_action('bp_activity_group_feed_head'); ?&gt;
+
+        &lt;?php if ( bp_has_activities( 'object=' . $bp-&gt;groups-&gt;id . '&amp;primary_id=' . $bp-&gt;groups-&gt;current_group-&gt;id . '&amp;max=50' ) ) : ?&gt;
+                &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
+                        &lt;item&gt;
+                                &lt;guid&gt;&lt;?php bp_activity_thread_permalink() ?&gt;&lt;/guid&gt;
+                                &lt;title&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_title() ?&gt;]]&gt;&lt;/title&gt;
+                                &lt;link&gt;&lt;?php echo bp_activity_feed_item_link() ?&gt;&lt;/link&gt;
+                                &lt;pubDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?&gt;&lt;/pubDate&gt;
+
+                                &lt;description&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_description() ?&gt;]]&gt;&lt;/description&gt;
+                                &lt;?php do_action('bp_activity_group_feed_item'); ?&gt;
+                        &lt;/item&gt;
+                &lt;?php endwhile; ?&gt;
+
+        &lt;?php endif; ?&gt;
+&lt;/channel&gt;
+&lt;/rss&gt;
</ins></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitypersonalfeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-personal-feed.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-personal-feed.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-activity/feeds/bp-activity-personal-feed.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> /**
</span><del>- * RSS2 Feed Template for displaying the site wide activity stream.
</del><ins>+ * RSS2 Feed Template for displaying a member's activity stream.
</ins><span class="cx">  *
</span><span class="cx">  * @package BuddyPress
</span><span class="cx">  */
</span><span class="lines">@@ -26,17 +26,17 @@
</span><span class="cx">         &lt;generator&gt;http://buddypress.org/?v=&lt;?php echo BP_VERSION ?&gt;&lt;/generator&gt;
</span><span class="cx">         &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
</span><span class="cx">         &lt;?php do_action('bp_activity_personal_feed_head'); ?&gt;
</span><del>-        
-        &lt;?php if ( bp_has_activities( 'type=personal&amp;max=50' ) ) : ?&gt;
</del><ins>+
+        &lt;?php if ( bp_has_activities( 'user_id=' . $bp-&gt;displayed_user-&gt;id . '&amp;max=50' ) ) : ?&gt;
</ins><span class="cx">                 &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
</span><span class="cx">                         &lt;item&gt;
</span><del>-                                &lt;guid&gt;&lt;?php bp_activity_feed_item_guid() ?&gt;&lt;/guid&gt;
</del><ins>+                                &lt;guid&gt;&lt;?php bp_activity_thread_permalink() ?&gt;&lt;/guid&gt;
</ins><span class="cx">                                 &lt;title&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_title() ?&gt;]]&gt;&lt;/title&gt;
</span><span class="cx">                                 &lt;link&gt;&lt;?php echo bp_activity_feed_item_link() ?&gt;&lt;/link&gt;
</span><span class="cx">                                 &lt;pubDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?&gt;&lt;/pubDate&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;description&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_description() ?&gt;]]&gt;&lt;/description&gt;
</span><del>-                        &lt;?php do_action('bp_activity_personal_feed_item'); ?&gt;
</del><ins>+                                &lt;?php do_action('bp_activity_personal_feed_item'); ?&gt;
</ins><span class="cx">                         &lt;/item&gt;
</span><span class="cx">                 &lt;?php endwhile; ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpactivityfeedsbpactivitysitewidefeedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/feeds/bp-activity-sitewide-feed.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/feeds/bp-activity-sitewide-feed.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-activity/feeds/bp-activity-sitewide-feed.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -27,16 +27,24 @@
</span><span class="cx">         &lt;generator&gt;http://buddypress.org/?v=&lt;?php echo BP_VERSION ?&gt;&lt;/generator&gt;
</span><span class="cx">         &lt;language&gt;&lt;?php echo get_option('rss_language'); ?&gt;&lt;/language&gt;
</span><span class="cx">         &lt;?php do_action('bp_activity_sitewide_feed_head'); ?&gt;
</span><del>-        
</del><ins>+
</ins><span class="cx">         &lt;?php if ( bp_has_activities( 'type=sitewide&amp;max=50' ) ) : ?&gt;
</span><span class="cx">                 &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
</span><span class="cx">                         &lt;item&gt;
</span><del>-                                &lt;guid&gt;&lt;?php bp_activity_feed_item_guid() ?&gt;&lt;/guid&gt;
</del><ins>+                                &lt;guid&gt;&lt;?php bp_activity_thread_permalink() ?&gt;&lt;/guid&gt;
</ins><span class="cx">                                 &lt;title&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_title() ?&gt;]]&gt;&lt;/title&gt;
</span><span class="cx">                                 &lt;link&gt;&lt;?php bp_activity_feed_item_link() ?&gt;&lt;/link&gt;
</span><span class="cx">                                 &lt;pubDate&gt;&lt;?php echo mysql2date('D, d M Y H:i:s O', bp_get_activity_feed_item_date(), false); ?&gt;&lt;/pubDate&gt;
</span><span class="cx"> 
</span><del>-                                &lt;description&gt;&lt;![CDATA[&lt;?php bp_activity_feed_item_description() ?&gt;]]&gt;&lt;/description&gt;
</del><ins>+                                &lt;description&gt;
+                                        &lt;![CDATA[
+                                        &lt;?php bp_activity_feed_item_description() ?&gt;
+
+                                        &lt;?php if ( bp_activity_can_comment() ) : ?&gt;
+                                                &lt;p&gt;&lt;?php printf( __( 'Comments: %s', 'buddypress' ), bp_activity_get_comment_count() ); ?&gt;&lt;/p&gt;
+                                        &lt;?php endif; ?&gt;
+                                        ]]&gt;
+                                &lt;/description&gt;
</ins><span class="cx">                         &lt;?php do_action('bp_activity_personal_feed_item'); ?&gt;
</span><span class="cx">                         &lt;/item&gt;
</span><span class="cx">                 &lt;?php endwhile; ?&gt;
</span></span></pre></div>
<a id="trunkbpactivityphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-activity.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -301,7 +301,7 @@
</span><span class="cx"> function bp_activity_action_sitewide_feed() {
</span><span class="cx">         global $bp, $wp_query;
</span><span class="cx"> 
</span><del>-        if ( $bp-&gt;current_component != $bp-&gt;activity-&gt;slug || $bp-&gt;current_action != 'feed' || $bp-&gt;displayed_user-&gt;id )
</del><ins>+        if ( $bp-&gt;current_component != $bp-&gt;activity-&gt;slug || $bp-&gt;current_action != 'feed' || $bp-&gt;displayed_user-&gt;id || $bp-&gt;groups-&gt;current_group )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         $wp_query-&gt;is_404 = false;
</span><span class="lines">@@ -340,7 +340,6 @@
</span><span class="cx"> }
</span><span class="cx"> add_action( 'wp', 'bp_activity_action_friends_feed', 3 );
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> /********************************************************************************
</span><span class="cx">  * Business Functions
</span><span class="cx">  *
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-templatetags.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-templatetags.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-groups/bp-groups-templatetags.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -2178,4 +2178,26 @@
</span><span class="cx">                 return wp_nonce_url( site_url( BP_GROUPS_SLUG . '/' . $invites_template-&gt;invite-&gt;group_id . '/invites/remove/' . $invites_template-&gt;invite-&gt;user-&gt;id ), 'groups_invite_uninvite_user' );
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+/***
+ * Groups RSS Feed Template Tags
+ */
+
+function bp_group_activity_feed_link() {
+        echo bp_get_group_activity_feed_link();
+}
+        function bp_get_group_activity_feed_link() {
+                global $bp;
+
+                return apply_filters( 'bp_get_group_activity_feed_link', bp_get_group_permalink( $bp-&gt;groups-&gt;current_group ) . 'feed/' );
+        }
+
+function bp_current_group_name() {
+        echo bp_get_current_group_name();
+}
+        function bp_get_current_group_name() {
+                global $bp;
+
+                $name = apply_filters( 'bp_get_group_name', $bp-&gt;groups-&gt;current_group-&gt;name );
+                return apply_filters( 'bp_get_current_group_name', $name );
+        }
</ins><span class="cx"> ?&gt;
</span><span class="cx">\ No newline at end of file
</span></span></pre></div>
<a id="trunkbpgroupsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-groups.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -1349,7 +1349,26 @@
</span><span class="cx"> }
</span><span class="cx"> add_action( 'wp', 'groups_action_redirect_to_random_group', 6 );
</span><span class="cx"> 
</span><ins>+function groups_action_groups_feed() {
+        global $bp, $wp_query;
</ins><span class="cx"> 
</span><ins>+        if ( $bp-&gt;current_component != $bp-&gt;groups-&gt;slug || !$bp-&gt;groups-&gt;current_group || $bp-&gt;current_action != 'feed' )
+                return false;
+
+        $wp_query-&gt;is_404 = false;
+        status_header( 200 );
+
+        if ( 'public' != $bp-&gt;groups-&gt;current_group-&gt;status ) {
+                if ( !groups_is_user_member( $bp-&gt;loggedin_user-&gt;id, $bp-&gt;groups-&gt;current_group-&gt;id ) )
+                        return false;
+        }
+
+        include_once( 'bp-activity/feeds/bp-activity-group-feed.php' );
+        die;
+}
+add_action( 'wp', 'groups_action_groups_feed', 3 );
+
+
</ins><span class="cx"> /********************************************************************************
</span><span class="cx">  * Activity &amp; Notification Functions
</span><span class="cx">  *
</span></span></pre></div>
<a id="trunkbpthemesbpdefault_inccssdefaultcss"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/css/default.css (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/css/default.css        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-themes/bp-default/_inc/css/default.css        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -501,6 +501,11 @@
</span><span class="cx">                 overflow: hidden;
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        div.item-list-tabs ul li.feed a {
+                background: url( ../images/rss.png ) center left no-repeat;
+                padding-left: 20px;
+        }
+
</ins><span class="cx"> /* &gt; Item Body
</span><span class="cx"> -------------------------------------------------------------- */
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefault_incimagesrsspng"></a>
<div class="binary"><h4>Added: trunk/bp-themes/bp-default/_inc/images/rss.png</h4>
<pre class="diff"><span>
<span class="cx">(Binary files differ)
</span></span></pre></div>
<span class="cx">Property changes on: trunk/bp-themes/bp-default/_inc/images/rss.png
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:executable
</span><span class="cx">   + *
</span><span class="cx">Name: svn:mime-type
</span><span class="cx">   + application/octet-stream
</span><a id="trunkbpthemesbpdefaultgroupssingleactivityphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/single/activity.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/single/activity.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-themes/bp-default/groups/single/activity.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -1,13 +1,18 @@
</span><del>-&lt;div class=&quot;item-list-tabs&quot; id=&quot;user-subnav&quot;&gt;
</del><ins>+&lt;div class=&quot;item-list-tabs no-ajax&quot; id=&quot;user-subnav&quot;&gt;
</ins><span class="cx">         &lt;ul&gt;
</span><ins>+                &lt;li class=&quot;feed&quot;&gt;&lt;a href=&quot;&lt;?php bp_group_activity_feed_link() ?&gt;&quot; title=&quot;RSS Feed&quot;&gt;&lt;?php _e( 'RSS', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
+
+                &lt;?php do_action('bp_activity_group_syndication_options') ?&gt;
+
</ins><span class="cx">                 &lt;li id=&quot;activity-filter-select&quot; class=&quot;last&quot;&gt;
</span><span class="cx">                         &lt;select&gt;
</span><span class="cx">                                 &lt;option value=&quot;-1&quot;&gt;&lt;?php _e( 'No Filter', 'buddypress' ) ?&gt;&lt;/option&gt;
</span><del>-                                &lt;option value=&quot;new_wire_post&quot;&gt;&lt;?php _e( 'Updates Only', 'buddypress' ) ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;new_forum_post,new_forum_topic&quot;&gt;&lt;?php _e( 'Group Forum Activity Only', 'buddypress' ) ?&gt;&lt;/option&gt;
-                                &lt;option value=&quot;new_blog_post,new_blog_comment&quot;&gt;&lt;?php _e( 'Blog Activity Only', 'buddypress' ) ?&gt;&lt;/option&gt;
</del><ins>+                                &lt;option value=&quot;new_wire_post&quot;&gt;&lt;?php _e( 'Show Updates', 'buddypress' ) ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;new_forum_topic&quot;&gt;&lt;?php _e( 'Show New Forum Topics', 'buddypress' ) ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;new_forum_post&quot;&gt;&lt;?php _e( 'Show Forum Replies', 'buddypress' ) ?&gt;&lt;/option&gt;
+                                &lt;option value=&quot;joined_group&quot;&gt;&lt;?php _e( 'Show New Group Memberships', 'buddypress' ) ?&gt;&lt;/option&gt;
</ins><span class="cx"> 
</span><del>-                                &lt;?php do_action( 'bp_activity_filter_options' ) ?&gt;
</del><ins>+                                &lt;?php do_action( 'bp_activity_group_filter_options' ) ?&gt;
</ins><span class="cx">                         &lt;/select&gt;
</span><span class="cx">                 &lt;/li&gt;
</span><span class="cx">         &lt;/ul&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/header.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/header.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-themes/bp-default/header.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -15,9 +15,17 @@
</span><span class="cx">                 &lt;link rel=&quot;stylesheet&quot; href=&quot;&lt;?php bloginfo('stylesheet_url'); ?&gt;&quot; type=&quot;text/css&quot; media=&quot;screen&quot; /&gt;
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php if ( function_exists( 'bp_sitewide_activity_feed_link' ) ) : ?&gt;
</span><del>-                        &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; &lt;?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?&gt;&quot; href=&quot;&lt;?php bp_sitewide_activity_feed_link() ?&gt;&quot; /&gt;
</del><ins>+                        &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; | &lt;?php _e('Site Wide Activity RSS Feed', 'buddypress' ) ?&gt;&quot; href=&quot;&lt;?php bp_sitewide_activity_feed_link() ?&gt;&quot; /&gt;
</ins><span class="cx">                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><ins>+                &lt;?php if ( function_exists( 'bp_member_activity_feed_link' ) &amp;&amp; bp_is_member() ) : ?&gt;
+                        &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; | &lt;?php bp_displayed_user_fullname() ?&gt; | &lt;?php _e( 'Activity RSS Feed', 'buddypress' ) ?&gt;&quot; href=&quot;&lt;?php bp_member_activity_feed_link() ?&gt;&quot; /&gt;
+                &lt;?php endif; ?&gt;
+
+                &lt;?php if ( function_exists( 'bp_group_activity_feed_link' ) &amp;&amp; bp_is_group() ) : ?&gt;
+                        &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; | &lt;?php bp_current_group_name() ?&gt; | &lt;?php _e( 'Group Activity RSS Feed', 'buddypress' ) ?&gt;&quot; href=&quot;&lt;?php bp_group_activity_feed_link() ?&gt;&quot; /&gt;
+                &lt;?php endif; ?&gt;
+
</ins><span class="cx">                 &lt;link rel=&quot;alternate&quot; type=&quot;application/rss+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; &lt;?php _e( 'Blog Posts RSS Feed', 'buddypress' ) ?&gt;&quot; href=&quot;&lt;?php bloginfo('rss2_url'); ?&gt;&quot; /&gt;
</span><span class="cx">                 &lt;link rel=&quot;alternate&quot; type=&quot;application/atom+xml&quot; title=&quot;&lt;?php bloginfo('name'); ?&gt; &lt;?php _e( 'Blog Posts Atom Feed', 'buddypress' ) ?&gt;&quot; href=&quot;&lt;?php bloginfo('atom_url'); ?&gt;&quot; /&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssingleactivityphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/activity.php (2269 => 2270)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/activity.php        2010-01-06 14:11:07 UTC (rev 2269)
+++ trunk/bp-themes/bp-default/members/single/activity.php        2010-01-06 16:04:58 UTC (rev 2270)
</span><span class="lines">@@ -1,5 +1,9 @@
</span><del>-&lt;div class=&quot;item-list-tabs&quot; id=&quot;user-subnav&quot;&gt;
</del><ins>+&lt;div class=&quot;item-list-tabs no-ajax&quot; id=&quot;user-subnav&quot;&gt;
</ins><span class="cx">         &lt;ul&gt;
</span><ins>+                &lt;li class=&quot;feed&quot;&gt;&lt;a href=&quot;&lt;?php bp_activities_member_rss_link() ?&gt;&quot; title=&quot;RSS Feed&quot;&gt;&lt;?php _e( 'RSS', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
+
+                &lt;?php do_action('bp_activity_member_syndication_options') ?&gt;
+
</ins><span class="cx">                 &lt;li id=&quot;activity-filter-select&quot; class=&quot;last&quot;&gt;
</span><span class="cx">                         &lt;select&gt;
</span><span class="cx">                                 &lt;option value=&quot;-1&quot;&gt;&lt;?php _e( 'No Filter', 'buddypress' ) ?&gt;&lt;/option&gt;
</span></span></pre>
</div>
</div>

</body>
</html>