<!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("ul#letter-list li a").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("div#blogs-list-options a").removeClass("selected");
</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("#blog-dir-list").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("#blog-dir-list").html(response);
</span><span class="cx">                                                 jQuery("#blog-dir-list").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("form#search-blogs-form").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("#blog-dir-list").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("#blog-dir-list").html(response);
</span><span class="cx">                                                 jQuery("#blog-dir-list").fadeIn(200);
</span><span class="cx">                                         }
</span><span class="lines">@@ -1074,7 +1074,7 @@
</span><span class="cx">         
</span><span class="cx">         jQuery("div#blog-dir-pag a").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("#blog-dir-list").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("#blog-dir-list").html(response);
</span><span class="cx">                                                 jQuery("#blog-dir-list").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">                                                 <?php do_action( 'bp_after_group_news' ) ?>
</span><span class="cx">                                                 
</span><span class="cx">                                         <?php endif; ?>
</span><ins>+                                        
+                                        <?php if ( bp_group_is_visible() ) : ?>
+                                                                                        
+                                                <?php if ( bp_has_activities( 'object=groups&primary_id=' . bp_get_group_id() . '&max=150&per_page=5' ) ) : ?>
+
+                                                        <?php do_action( 'bp_before_group_activity' ) ?>
+
+                                                        <div class="bp-widget">
+                                                                <h4><?php _e( 'Group Activity', 'buddypress' ); ?></h4>
+                                                                
+                                                                <div class="pagination">
+                                                                        <div class="pag-count" id="activity-count">
+                                                                                <?php bp_activity_pagination_count() ?>
+                                                                        </div>
+                
+                                                                        <div class="pagination-links" id="activity-pag">
+                                                                                &nbsp; <?php bp_activity_pagination_links() ?>
+                                                                        </div>
+                                                                </div>
+
+                                                                <ul id="activity-list" class="activity-list item-list">
+                                                                <?php while ( bp_activities() ) : bp_the_activity(); ?>
+                                                                        <li class="<?php bp_activity_css_class() ?>">
+                                                                                <div class="activity-avatar">
+                                                                                        <?php bp_activity_avatar() ?>
+                                                                                </div>
+                                                
+                                                                                <?php bp_activity_content() ?>
+                                                                        </li>
+                                                                <?php endwhile; ?>
+                                                                </ul>
+
+                                                        </div>
+                                                        
+                                                        <?php do_action( 'bp_after_group_activity' ) ?>
+                                                        
+                                                <?php endif; ?>
+                                                
+                                        <?php endif; ?>
</ins><span class="cx">                         
</span><span class="cx">                                         <?php if ( bp_group_is_visible() && bp_group_is_forum_enabled() && function_exists( 'bp_forums_setup') ) : ?>
</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">                 <div id="first-section" class="widget-section">
</span><span class="cx">                         <?php if ( !function_exists('dynamic_sidebar')
</span><del>-                         || !dynamic_sidebar('first-section') ) : ?>
</del><ins>+                         || !dynamic_sidebar('third-section') ) : ?>
</ins><span class="cx">
</span><span class="cx">                         <div class="widget-error">
</span><del>-                                <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=first-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a>
</del><ins>+                                <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=third-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a>
</ins><span class="cx">                         </div>                
</span><span class="cx">                 
</span><span class="cx">                         <?php endif; ?>
</span><span class="lines">@@ -28,10 +28,10 @@
</span><span class="cx">
</span><span class="cx">                 <div id="third-section" class="widget-section">
</span><span class="cx">                         <?php if ( !function_exists('dynamic_sidebar')
</span><del>-                         || !dynamic_sidebar('third-section') ) : ?>
</del><ins>+                         || !dynamic_sidebar('first-section') ) : ?>
</ins><span class="cx">                 
</span><span class="cx">                         <div class="widget-error">
</span><del>-                                <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=third-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a>
</del><ins>+                                <?php _e( 'Please log in and add widgets to this section.', 'buddypress' ) ?> <a href="<?php echo get_option('siteurl') ?>/wp-admin/widgets.php?s=&amp;show=&amp;sidebar=first-section"><?php _e( 'Add Widgets', 'buddypress' ) ?></a>
</ins><span class="cx">                         </div>
</span><span class="cx">                 
</span><span class="cx">                         <?php endif; ?>
</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">                         <?php do_action( 'bp_after_wire_post_form' ); /* Deprecated -> */ do_action( 'bp_wire_custom_wire_boxes_after' ); ?>
</span><span class="cx">                         
</span><span class="cx">                         <input type="submit" name="wire-post-submit" id="wire-post-submit" value="<?php _e( 'Post &raquo;', 'buddypress' ) ?>" />
</span><del>-                        <input type="hidden" name="bp_wire_item_id" id="bp_wire_item_id" value="<?php bp_wire_item_id() ?>" />
</del><ins>+                        <input type="hidden" name="bp_wire_item_id" id="bp_wire_item_id" value="<?php echo bp_get_wire_item_id() ?>" />
</ins><span class="cx">
</span><span class="cx">                         <?php wp_nonce_field( 'bp_wire_post' ) ?>
</span><span class="cx">                         
</span></span></pre>
</div>
</div>
</body>
</html>