<!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] [1841] trunk/bp-themes/bp-sn-framework:
  Added group activity streams using the new activity stream filters.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>1841</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-09-10 01:37:00 +0000 (Thu, 10 Sep 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Added group activity streams using the new activity stream filters.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpthemesbpsnframework_incjsajaxjs">trunk/bp-themes/bp-sn-framework/_inc/js/ajax.js</a></li>
<li><a href="#trunkbpthemesbpsnframeworkgroupssinglehomephp">trunk/bp-themes/bp-sn-framework/groups/single/home.php</a></li>
<li><a href="#trunkbpthemesbpsnframeworkhomephp">trunk/bp-themes/bp-sn-framework/home.php</a></li>
<li><a href="#trunkbpthemesbpsnframeworkwirepostformphp">trunk/bp-themes/bp-sn-framework/wire/post-form.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpthemesbpsnframework_incjsajaxjs"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-framework/_inc/js/ajax.js (1840 => 1841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-framework/_inc/js/ajax.js        2009-09-10 01:35:32 UTC (rev 1840)
+++ trunk/bp-themes/bp-sn-framework/_inc/js/ajax.js        2009-09-10 01:37:00 UTC (rev 1841)
</span><span class="lines">@@ -1014,7 +1014,7 @@
</span><span class="cx">         
</span><span class="cx">                 jQuery(&quot;ul#letter-list li a&quot;).livequery('click',
</span><span class="cx">                 function() { 
</span><del>-                        jQuery('#ajax-loader-blogs').toggle();
</del><ins>+                        jQuery('.ajax-loader').toggle();
</ins><span class="cx"> 
</span><span class="cx">                         jQuery(&quot;div#blogs-list-options a&quot;).removeClass(&quot;selected&quot;);
</span><span class="cx">                         jQuery(this).addClass('selected');
</span><span class="lines">@@ -1035,7 +1035,7 @@
</span><span class="cx">                                 response = response.substr(0, response.length-1);
</span><span class="cx">                                 jQuery(&quot;#blog-dir-list&quot;).fadeOut(200, 
</span><span class="cx">                                         function() {
</span><del>-                                                jQuery('#ajax-loader-blogs').toggle();
</del><ins>+                                                jQuery('.ajax-loader').toggle();
</ins><span class="cx">                                                 jQuery(&quot;#blog-dir-list&quot;).html(response);
</span><span class="cx">                                                 jQuery(&quot;#blog-dir-list&quot;).fadeIn(200);
</span><span class="cx">                                         }
</span><span class="lines">@@ -1047,7 +1047,7 @@
</span><span class="cx">         );
</span><span class="cx">         
</span><span class="cx">         jQuery(&quot;form#search-blogs-form&quot;).submit( function() { 
</span><del>-                        jQuery('#ajax-loader-blogs').toggle();
</del><ins>+                        jQuery('.ajax-loader').toggle();
</ins><span class="cx"> 
</span><span class="cx">                         jQuery.post( ajaxurl, {
</span><span class="cx">                                 action: 'directory_blogs',
</span><span class="lines">@@ -1061,7 +1061,7 @@
</span><span class="cx">                                 response = response.substr(0, response.length-1);
</span><span class="cx">                                 jQuery(&quot;#blog-dir-list&quot;).fadeOut(200, 
</span><span class="cx">                                         function() {
</span><del>-                                                jQuery('#ajax-loader-blogs').toggle();
</del><ins>+                                                jQuery('.ajax-loader').toggle();
</ins><span class="cx">                                                 jQuery(&quot;#blog-dir-list&quot;).html(response);
</span><span class="cx">                                                 jQuery(&quot;#blog-dir-list&quot;).fadeIn(200);
</span><span class="cx">                                         }
</span><span class="lines">@@ -1074,7 +1074,7 @@
</span><span class="cx">         
</span><span class="cx">         jQuery(&quot;div#blog-dir-pag a&quot;).livequery('click',
</span><span class="cx">                 function() { 
</span><del>-                        jQuery('#ajax-loader-blogs').toggle();
</del><ins>+                        jQuery('.ajax-loader').toggle();
</ins><span class="cx"> 
</span><span class="cx">                         var page = jQuery(this).attr('href');
</span><span class="cx">                         page = page.split('bpage=');
</span><span class="lines">@@ -1104,7 +1104,7 @@
</span><span class="cx">                                 response = response.substr(0, response.length-1);
</span><span class="cx">                                 jQuery(&quot;#blog-dir-list&quot;).fadeOut(200, 
</span><span class="cx">                                         function() {
</span><del>-                                                jQuery('#ajax-loader-blogs').toggle();
</del><ins>+                                                jQuery('.ajax-loader').toggle();
</ins><span class="cx">                                                 jQuery(&quot;#blog-dir-list&quot;).html(response);
</span><span class="cx">                                                 jQuery(&quot;#blog-dir-list&quot;).fadeIn(200);
</span><span class="cx">                                         }
</span></span></pre></div>
<a id="trunkbpthemesbpsnframeworkgroupssinglehomephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-framework/groups/single/home.php (1840 => 1841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-framework/groups/single/home.php        2009-09-10 01:35:32 UTC (rev 1840)
+++ trunk/bp-themes/bp-sn-framework/groups/single/home.php        2009-09-10 01:37:00 UTC (rev 1841)
</span><span class="lines">@@ -61,6 +61,45 @@
</span><span class="cx">                                                 &lt;?php do_action( 'bp_after_group_news' ) ?&gt;
</span><span class="cx">                                                 
</span><span class="cx">                                         &lt;?php endif; ?&gt;
</span><ins>+                                        
+                                        &lt;?php if ( bp_group_is_visible() ) : ?&gt;
+                                                                                        
+                                                &lt;?php if ( bp_has_activities( 'object=groups&amp;primary_id=' . bp_get_group_id() . '&amp;max=150&amp;per_page=5' ) ) : ?&gt;
+
+                                                        &lt;?php do_action( 'bp_before_group_activity' ) ?&gt;
+
+                                                        &lt;div class=&quot;bp-widget&quot;&gt;
+                                                                &lt;h4&gt;&lt;?php _e( 'Group Activity', 'buddypress' ); ?&gt;&lt;/h4&gt;
+                                                                
+                                                                &lt;div class=&quot;pagination&quot;&gt;
+                                                                        &lt;div class=&quot;pag-count&quot; id=&quot;activity-count&quot;&gt;
+                                                                                &lt;?php bp_activity_pagination_count() ?&gt;
+                                                                        &lt;/div&gt;
+                
+                                                                        &lt;div class=&quot;pagination-links&quot; id=&quot;activity-pag&quot;&gt;
+                                                                                &amp;nbsp; &lt;?php bp_activity_pagination_links() ?&gt;
+                                                                        &lt;/div&gt;
+                                                                &lt;/div&gt;
+
+                                                                &lt;ul id=&quot;activity-list&quot; class=&quot;activity-list item-list&quot;&gt;
+                                                                &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
+                                                                        &lt;li class=&quot;&lt;?php bp_activity_css_class() ?&gt;&quot;&gt;
+                                                                                &lt;div class=&quot;activity-avatar&quot;&gt;
+                                                                                        &lt;?php bp_activity_avatar() ?&gt;
+                                                                                &lt;/div&gt;
+                                                
+                                                                                &lt;?php bp_activity_content() ?&gt;
+                                                                        &lt;/li&gt;
+                                                                &lt;?php endwhile; ?&gt;
+                                                                &lt;/ul&gt;
+
+                                                        &lt;/div&gt;
+                                                        
+                                                        &lt;?php do_action( 'bp_after_group_activity' ) ?&gt;
+                                                        
+                                                &lt;?php endif; ?&gt; 
+                                                
+                                        &lt;?php endif; ?&gt;
</ins><span class="cx">                         
</span><span class="cx">                                         &lt;?php if ( bp_group_is_visible() &amp;&amp; bp_group_is_forum_enabled() &amp;&amp; function_exists( 'bp_forums_setup') ) : ?&gt;
</span><span class="cx">                                                 
</span></span></pre></div>
<a id="trunkbpthemesbpsnframeworkhomephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-framework/home.php (1840 => 1841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-framework/home.php        2009-09-10 01:35:32 UTC (rev 1840)
+++ trunk/bp-themes/bp-sn-framework/home.php        2009-09-10 01:37:00 UTC (rev 1841)
</span><span class="lines">@@ -6,10 +6,10 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;div id=&quot;first-section&quot; class=&quot;widget-section&quot;&gt;
</span><span class="cx">                         &lt;?php if ( !function_exists('dynamic_sidebar')
</span><del>-                                || !dynamic_sidebar('first-section') ) : ?&gt;
</del><ins>+                                || !dynamic_sidebar('third-section') ) : ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;div class=&quot;widget-error&quot;&gt;
</span><del>-                                &lt;?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?&gt; &lt;a href=&quot;&lt;?php echo get_option('siteurl') ?&gt;/wp-admin/widgets.php?s=&amp;amp;show=&amp;amp;sidebar=first-section&quot;&gt;&lt;?php _e( 'Add Widgets', 'buddypress' ) ?&gt;&lt;/a&gt;
</del><ins>+                                &lt;?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?&gt; &lt;a href=&quot;&lt;?php echo get_option('siteurl') ?&gt;/wp-admin/widgets.php?s=&amp;amp;show=&amp;amp;sidebar=third-section&quot;&gt;&lt;?php _e( 'Add Widgets', 'buddypress' ) ?&gt;&lt;/a&gt;
</ins><span class="cx">                         &lt;/div&gt;                
</span><span class="cx">                 
</span><span class="cx">                         &lt;?php endif; ?&gt;
</span><span class="lines">@@ -28,10 +28,10 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;div id=&quot;third-section&quot; class=&quot;widget-section&quot;&gt;
</span><span class="cx">                         &lt;?php if ( !function_exists('dynamic_sidebar')
</span><del>-                                || !dynamic_sidebar('third-section') ) : ?&gt;
</del><ins>+                                || !dynamic_sidebar('first-section') ) : ?&gt;
</ins><span class="cx">                 
</span><span class="cx">                         &lt;div class=&quot;widget-error&quot;&gt;
</span><del>-                                &lt;?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?&gt; &lt;a href=&quot;&lt;?php echo get_option('siteurl') ?&gt;/wp-admin/widgets.php?s=&amp;amp;show=&amp;amp;sidebar=third-section&quot;&gt;&lt;?php _e( 'Add Widgets', 'buddypress' ) ?&gt;&lt;/a&gt;
</del><ins>+                                &lt;?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?&gt; &lt;a href=&quot;&lt;?php echo get_option('siteurl') ?&gt;/wp-admin/widgets.php?s=&amp;amp;show=&amp;amp;sidebar=first-section&quot;&gt;&lt;?php _e( 'Add Widgets', 'buddypress' ) ?&gt;&lt;/a&gt;
</ins><span class="cx">                         &lt;/div&gt;
</span><span class="cx">                 
</span><span class="cx">                         &lt;?php endif; ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpsnframeworkwirepostformphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-sn-framework/wire/post-form.php (1840 => 1841)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-sn-framework/wire/post-form.php        2009-09-10 01:35:32 UTC (rev 1840)
+++ trunk/bp-themes/bp-sn-framework/wire/post-form.php        2009-09-10 01:37:00 UTC (rev 1841)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx">                         &lt;?php do_action( 'bp_after_wire_post_form' ); /* Deprecated -&gt; */ do_action( 'bp_wire_custom_wire_boxes_after' ); ?&gt;
</span><span class="cx">                         
</span><span class="cx">                         &lt;input type=&quot;submit&quot; name=&quot;wire-post-submit&quot; id=&quot;wire-post-submit&quot; value=&quot;&lt;?php _e( 'Post &amp;raquo;', 'buddypress' ) ?&gt;&quot; /&gt;
</span><del>-                        &lt;input type=&quot;hidden&quot; name=&quot;bp_wire_item_id&quot; id=&quot;bp_wire_item_id&quot; value=&quot;&lt;?php bp_wire_item_id() ?&gt;&quot; /&gt;
</del><ins>+                        &lt;input type=&quot;hidden&quot; name=&quot;bp_wire_item_id&quot; id=&quot;bp_wire_item_id&quot; value=&quot;&lt;?php echo bp_get_wire_item_id() ?&gt;&quot; /&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;?php wp_nonce_field( 'bp_wire_post' ) ?&gt;
</span><span class="cx">                         
</span></span></pre>
</div>
</div>

</body>
</html>