<!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] [1834] trunk: Backwards compatibility updates for 1.0.
 3 built themes</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>1834</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-09-09 22:20:13 +0000 (Wed, 09 Sep 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Backwards compatibility updates for 1.0.3 built themes</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivitytemplatetagsphp">trunk/bp-activity/bp-activity-templatetags.php</a></li>
<li><a href="#trunkbpactivitybpactivitywidgetsphp">trunk/bp-activity/bp-activity-widgets.php</a></li>
<li><a href="#trunkbpcoredeprecatedcssstructurecss">trunk/bp-core/deprecated/css/structure.css</a></li>
<li><a href="#trunkbpforumsphp">trunk/bp-forums.php</a></li>
<li><a href="#trunkbpfriendsbpfriendstemplatetagsphp">trunk/bp-friends/bp-friends-templatetags.php</a></li>
<li><a href="#trunkbpgroupsbpgroupstemplatetagsphp">trunk/bp-groups/bp-groups-templatetags.php</a></li>
<li><a href="#trunkbpgroupsdeprecatedbpgroupsdeprecatedphp">trunk/bp-groups/deprecated/bp-groups-deprecated.php</a></li>
<li><a href="#trunkbpwirebpwiretemplatetagsphp">trunk/bp-wire/bp-wire-templatetags.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivitytemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-templatetags.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-templatetags.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-activity/bp-activity-templatetags.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -344,7 +344,7 @@
</span><span class="cx">         function bp_get_activity_delete_link() {
</span><span class="cx">                 global $activities_template, $bp;
</span><span class="cx"> 
</span><del>-                return apply_filters( 'bp_get_activity_delete_link', '&lt;a href=&quot;' . wp_nonce_url( $bp-&gt;root_domain . '/' . $bp-&gt;activity-&gt;slug . '/delete/' . $activities_template-&gt;activity-&gt;id, 'bp_activity_delete_link' ) . '&quot; class=&quot;item-button delete confirm&quot;&gt;' . __( 'Delete', 'buddypress' ) . '&lt;/a&gt;' );
</del><ins>+                return apply_filters( 'bp_get_activity_delete_link', '&lt;a href=&quot;' . wp_nonce_url( $bp-&gt;root_domain . '/' . $bp-&gt;activity-&gt;slug . '/delete/' . $activities_template-&gt;activity-&gt;id, 'bp_activity_delete_link' ) . '&quot; class=&quot;item-button delete-activity confirm&quot;&gt;' . __( 'Delete', 'buddypress' ) . '&lt;/a&gt;' );
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx"> function bp_activity_filter_links( $args = false ) {
</span></span></pre></div>
<a id="trunkbpactivitybpactivitywidgetsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-widgets.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-widgets.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-activity/bp-activity-widgets.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -24,26 +24,31 @@
</span><span class="cx">                    . $after_title; ?&gt;
</span><span class="cx">         
</span><span class="cx">         &lt;?php if ( bp_has_activities( 'type=sitewide&amp;max=' . $instance['max_items'] . '&amp;per_page=' . $instance['per_page'] ) ) : ?&gt;
</span><del>-                &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;
</del><ins>+
+                &lt;?php if ( !file_exists( WP_CONTENT_DIR . '/bp-themes' ) ) : ?&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;
</ins><span class="cx">                 
</span><del>-                        &lt;div class=&quot;pagination-links&quot; id=&quot;activity-pag&quot;&gt;
-                                &amp;nbsp; &lt;?php bp_activity_pagination_links() ?&gt;
</del><ins>+                                &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;
</ins><span class="cx">                         &lt;/div&gt;
</span><del>-                &lt;/div&gt;
</del><span class="cx">                 
</span><del>-                &lt;ul id=&quot;activity-filter-links&quot;&gt;
-                        &lt;?php bp_activity_filter_links() ?&gt;
-                &lt;/ul&gt;
</del><ins>+                        &lt;ul id=&quot;activity-filter-links&quot;&gt;
+                                &lt;?php bp_activity_filter_links() ?&gt;
+                        &lt;/ul&gt;
+                &lt;?php endif; ?&gt;
</ins><span class="cx">                 
</span><span class="cx">                 &lt;ul id=&quot;site-wide-stream&quot; class=&quot;activity-list&quot;&gt;
</span><span class="cx">                 &lt;?php while ( bp_activities() ) : bp_the_activity(); ?&gt;
</span><span class="cx">                         &lt;li class=&quot;&lt;?php bp_activity_css_class() ?&gt;&quot;&gt;
</span><del>-                                &lt;div class=&quot;activity-avatar&quot;&gt;
-                                        &lt;?php bp_activity_avatar() ?&gt;
-                                &lt;/div&gt;
</del><ins>+                                &lt;?php if ( !file_exists( WP_CONTENT_DIR . '/bp-themes' ) ) : ?&gt;
+                                        &lt;div class=&quot;activity-avatar&quot;&gt;
+                                                &lt;?php bp_activity_avatar() ?&gt;
+                                        &lt;/div&gt;
+                                &lt;?php endif; ?&gt;
</ins><span class="cx">                                 
</span><span class="cx">                                 &lt;?php bp_activity_content() ?&gt;
</span><span class="cx">                         &lt;/li&gt;
</span></span></pre></div>
<a id="trunkbpcoredeprecatedcssstructurecss"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/deprecated/css/structure.css (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/deprecated/css/structure.css        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-core/deprecated/css/structure.css        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -61,6 +61,7 @@
</span><span class="cx">  * Main Column &amp; Info Groups
</span><span class="cx">  */
</span><span class="cx"> 
</span><ins>+
</ins><span class="cx"> .main-column {
</span><span class="cx">         margin-left: 200px;
</span><span class="cx"> }
</span><span class="lines">@@ -71,27 +72,27 @@
</span><span class="cx">                         margin: 0 0 1.2em 0;
</span><span class="cx">                 }
</span><span class="cx"> 
</span><del>-        div.bp-widget {
</del><ins>+        div.info-group {
</ins><span class="cx">                 margin-bottom: 2em;
</span><span class="cx">         }        
</span><del>-                div.bp-widget h4 {
</del><ins>+                div.info-group h4 {
</ins><span class="cx">                         height: 30px;
</span><span class="cx">                         padding: 3px 10px;
</span><span class="cx">                         margin-bottom: 0.5em;
</span><span class="cx">                         position: relative;
</span><span class="cx">                 }
</span><del>-                        .left-menu div.bp-widget {
</del><ins>+                        .left-menu div.info-group {
</ins><span class="cx">                                 margin-top: 1.5em;
</span><span class="cx">                         }
</span><span class="cx"> 
</span><del>-                        div.bp-widget h4 span {
</del><ins>+                        div.info-group h4 a {
</ins><span class="cx">                                 position: absolute;
</span><span class="cx">                                 top: 0.31em;
</span><span class="cx">                                 right: 1em;
</span><span class="cx">                                 font-weight: normal;
</span><span class="cx">                         }
</span><span class="cx"> 
</span><del>-                        .left-menu div.bp-widget img.avatar {
</del><ins>+                        .left-menu div.info-group img.avatar {
</ins><span class="cx">                                 float: left;
</span><span class="cx">                                 margin-right: 1em;
</span><span class="cx">                         }
</span><span class="lines">@@ -129,7 +130,7 @@
</span><span class="cx">                 padding: 0.5em 0.7em;
</span><span class="cx">         }
</span><span class="cx">         
</span><del>-        div.bp-widget .pagination-links {
</del><ins>+        div.info-group .pagination-links {
</ins><span class="cx">                 margin: 0 0 5px 0;
</span><span class="cx">                 float: none;
</span><span class="cx">                 text-align: right;
</span></span></pre></div>
<a id="trunkbpforumsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-forums.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-forums.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-forums.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -131,8 +131,8 @@
</span><span class="cx">                 'topic_poster_name' =&gt; $bp-&gt;loggedin_user-&gt;fullname, // accept names
</span><span class="cx">                 'topic_last_poster' =&gt; $bp-&gt;loggedin_user-&gt;id, // accepts ids
</span><span class="cx">                 'topic_last_poster_name' =&gt; $bp-&gt;loggedin_user-&gt;fullname, // accept names
</span><del>-                'topic_start_time' =&gt; bb_current_time( 'mysql' ),
-                'topic_time' =&gt; bb_current_time( 'mysql' ),
</del><ins>+                'topic_start_time' =&gt; date( 'Y-m-d H:i:s' ),
+                'topic_time' =&gt; date( 'Y-m-d H:i:s' ),
</ins><span class="cx">                 'topic_open' =&gt; 1,
</span><span class="cx">                 'forum_id' =&gt; 0 // accepts ids or slugs
</span><span class="cx">         );
</span><span class="lines">@@ -246,7 +246,7 @@
</span><span class="cx">                 'post_id' =&gt; false, 
</span><span class="cx">                 'topic_id' =&gt; false,
</span><span class="cx">                 'post_text' =&gt; '',
</span><del>-                'post_time' =&gt; bb_current_time( 'mysql' ),
</del><ins>+                'post_time' =&gt; date( 'Y-m-d H:i:s' ),
</ins><span class="cx">                 'poster_id' =&gt; $bp-&gt;loggedin_user-&gt;id, // accepts ids or names
</span><span class="cx">                 'poster_ip' =&gt; $_SERVER['REMOTE_ADDR'],
</span><span class="cx">                 'post_status' =&gt; 0, // use bb_delete_post() instead
</span></span></pre></div>
<a id="trunkbpfriendsbpfriendstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-friends/bp-friends-templatetags.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-friends/bp-friends-templatetags.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-friends/bp-friends-templatetags.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -406,8 +406,8 @@
</span><span class="cx">                 wp_cache_set( 'friends_friend_ids_' . $bp-&gt;displayed_user-&gt;id, $friend_ids, 'bp' );
</span><span class="cx">         }
</span><span class="cx"> ?&gt;        
</span><del>-        &lt;div class=&quot;bp-widget&quot;&gt;
-                &lt;h4&gt;&lt;?php bp_word_or_name( __( &quot;My Friends&quot;, 'buddypress' ), __( &quot;%s's Friends&quot;, 'buddypress' ) ) ?&gt;  (&lt;?php echo BP_Friends_Friendship::total_friend_count( $bp-&gt;displayed_user-&gt;id ) ?&gt;)  &lt;a href=&quot;&lt;?php echo $bp-&gt;displayed_user-&gt;domain . $bp-&gt;friends-&gt;slug ?&gt;&quot;&gt;&lt;?php _e('See All', 'buddypress') ?&gt; &amp;raquo;&lt;/a&gt;&lt;/h4&gt;
</del><ins>+        &lt;div class=&quot;info-group&quot;&gt;
+                &lt;h4&gt;&lt;?php bp_word_or_name( __( &quot;My Friends&quot;, 'buddypress' ), __( &quot;%s's Friends&quot;, 'buddypress' ) ) ?&gt;  (&lt;?php echo BP_Friends_Friendship::total_friend_count( $bp-&gt;displayed_user-&gt;id ) ?&gt;) &lt;span&gt;&lt;a href=&quot;&lt;?php echo $bp-&gt;displayed_user-&gt;domain . $bp-&gt;friends-&gt;slug ?&gt;&quot;&gt;&lt;?php _e('See All', 'buddypress') ?&gt; &amp;raquo;&lt;/a&gt;&lt;/span&gt;&lt;/h4&gt;
</ins><span class="cx">                 
</span><span class="cx">                 &lt;?php if ( $friend_ids ) { ?&gt;
</span><span class="cx">                         &lt;ul class=&quot;horiz-gallery&quot;&gt;
</span></span></pre></div>
<a id="trunkbpgroupsbpgroupstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/bp-groups-templatetags.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/bp-groups-templatetags.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-groups/bp-groups-templatetags.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -708,57 +708,6 @@
</span><span class="cx">                 return apply_filters( 'bp_get_group_all_members_permalink', bp_get_group_permalink( $group ) . '/members' );
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-function bp_group_active_forum_topics( $total_topics = 3, $group = false ) {
-        global $groups_template, $forum_template;
-
-        if ( !$group )
-                $group =&amp; $groups_template-&gt;group;
-
-        $forum_id = groups_get_groupmeta( $group-&gt;id, 'forum_id' );
-
-        if ( $forum_id &amp;&amp; $forum_id != '' ) {
-                if ( function_exists( 'bp_forums_setup' ) ) {
-                        $latest_topics = bp_forums_get_forum_topics( $forum_id );
-                
-                        if ( $latest_topics ) { ?&gt;
-                                &lt;ul class=&quot;item-list&quot; id=&quot;recent-forum-topics&quot;&gt;&lt;?php
-                                
-                                $counter = 0;
-                                
-                                foreach( $latest_topics as $topic ) {
-                                        $alt = ( $counter % 2 == 1 ) ? ' class=&quot;alt&quot;' : '';
-                                        $forum_template-&gt;topic = (object)$topic; ?&gt;
-                                        
-                                        &lt;li&lt;?php echo $alt ?&gt;&gt;
-                                                &lt;div class=&quot;avatar&quot;&gt;
-                                                        &lt;?php bp_the_topic_poster_avatar() ?&gt;
-                                                &lt;/div&gt;
-
-                                                &lt;a href=&quot;&lt;?php bp_the_topic_permalink() ?&gt;&quot; title=&quot;&lt;?php bp_the_topic_title() ?&gt; - &lt;?php _e( 'Permalink', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php bp_the_topic_title() ?&gt;&lt;/a&gt; 
-                                                &lt;span class=&quot;small&quot;&gt;- &lt;?php bp_the_topic_total_post_count() ?&gt; &lt;/span&gt;
-                                                &lt;p&gt;&lt;span class=&quot;activity&quot;&gt;&lt;?php echo sprintf( __( 'updated %s ago', 'buddypress' ), bp_the_topic_time_since_last_post( false ) ) ?&gt;&lt;/span&gt;&lt;/p&gt;
-                                
-                                                &lt;div class=&quot;latest-post&quot;&gt;
-                                                        &lt;?php _e( 'Latest by', 'buddypress' ) ?&gt; &lt;?php bp_the_topic_last_poster_name() ?&gt;:
-                                                        &lt;?php bp_the_topic_latest_post_excerpt() ?&gt;
-                                                &lt;/div&gt;
-                                        &lt;/li&gt;
-                                        &lt;?php $counter++ ?&gt;
-                                        
-                                &lt;?php } ?&gt;
-                                &lt;/ul&gt;
-                                &lt;?php
-                        } else {
-                        ?&gt;
-                                &lt;div id=&quot;message&quot; class=&quot;info&quot;&gt;
-                                        &lt;p&gt;&lt;?php _e( 'There are no active forum topics for this group', 'buddypress' ) ?&gt;&lt;/p&gt;
-                                &lt;/div&gt;
-                        &lt;?php
-                        }
-                }
-        }
-}
-
</del><span class="cx"> function bp_group_search_form() {
</span><span class="cx">         global $groups_template, $bp;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpgroupsdeprecatedbpgroupsdeprecatedphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-groups/deprecated/bp-groups-deprecated.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-groups/deprecated/bp-groups-deprecated.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-groups/deprecated/bp-groups-deprecated.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -230,8 +230,8 @@
</span><span class="cx">         }
</span><span class="cx">         
</span><span class="cx"> ?&gt;        
</span><del>-        &lt;div class=&quot;bp-widget&quot;&gt;
-                &lt;h4&gt;&lt;?php bp_word_or_name( __( &quot;My Groups&quot;, 'buddypress' ), __( &quot;%s's Groups&quot;, 'buddypress' ) ) ?&gt; (&lt;?php echo BP_Groups_Member::total_group_count() ?&gt;) &lt;a href=&quot;&lt;?php echo $bp-&gt;displayed_user-&gt;domain . $bp-&gt;groups-&gt;slug ?&gt;&quot;&gt;&lt;?php _e('See All', 'buddypress') ?&gt; &amp;raquo;&lt;/a&gt;&lt;/h4&gt;
</del><ins>+        &lt;div class=&quot;info-group&quot;&gt;
+                &lt;h4&gt;&lt;?php bp_word_or_name( __( &quot;My Groups&quot;, 'buddypress' ), __( &quot;%s's Groups&quot;, 'buddypress' ) ) ?&gt; (&lt;?php echo BP_Groups_Member::total_group_count() ?&gt;) &lt;span&gt;&lt;a href=&quot;&lt;?php echo $bp-&gt;displayed_user-&gt;domain . $bp-&gt;groups-&gt;slug ?&gt;&quot;&gt;&lt;?php _e('See All', 'buddypress') ?&gt; &amp;raquo;&lt;/a&gt;&lt;/span&gt;&lt;/h4&gt;
</ins><span class="cx">                 &lt;?php if ( $group_ids ) { ?&gt;
</span><span class="cx">                         &lt;ul class=&quot;horiz-gallery&quot;&gt;
</span><span class="cx">                         &lt;?php 
</span><span class="lines">@@ -241,7 +241,7 @@
</span><span class="cx">                                         wp_cache_set( 'groups_group_nouserdata_' . $group_ids[$i], $group, 'bp' );
</span><span class="cx">                                 }
</span><span class="cx">                         ?&gt;                                &lt;li&gt;
</span><del>-                                        &lt;a href=&quot;&lt;?php echo bp_get_group_permalink( $group ) ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php echo attribute_escape( $group-&gt;avatar_thumb ); ?&gt;&quot; class=&quot;avatar&quot; alt=&quot;&lt;?php _e( 'Group Avatar', 'buddypress' ) ?&gt;&quot; /&gt;&lt;/a&gt;
</del><ins>+                                        &lt;a href=&quot;&lt;?php echo bp_get_group_permalink( $group ) ?&gt;&quot;&gt;&lt;?php echo bp_core_fetch_avatar( array( 'item_id' =&gt; $group-&gt;id, 'object' =&gt; 'group', 'type' =&gt; 'thumb' ) ) ?&gt;&lt;/a&gt;
</ins><span class="cx">                                         &lt;h5&gt;&lt;a href=&quot;&lt;?php echo bp_get_group_permalink( $group ) ?&gt;&quot;&gt;&lt;?php echo attribute_escape( $group-&gt;name ) ?&gt;&lt;/a&gt;&lt;/h5&gt;
</span><span class="cx">                                 &lt;/li&gt;
</span><span class="cx">                         &lt;?php } ?&gt;
</span><span class="lines">@@ -256,6 +256,59 @@
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+/* DEPRECATED - use bp_has_topics() template loop */
+function bp_group_active_forum_topics( $total_topics = 3, $group = false ) {
+        global $groups_template, $forum_template;
+
+        if ( !$group )
+                $group =&amp; $groups_template-&gt;group;
+                
+        $forum_id = groups_get_groupmeta( $group-&gt;id, 'forum_id' );
+
+        if ( $forum_id &amp;&amp; $forum_id != '' ) {
+                if ( function_exists( 'bp_forums_setup' ) ) {
+                        $latest_topics = bp_forums_get_forum_topics( array( 'forum_id' =&gt; $forum_id ) );
+                
+                        if ( $latest_topics ) { ?&gt;
+                                &lt;ul class=&quot;item-list&quot; id=&quot;recent-forum-topics&quot;&gt;&lt;?php
+                                
+                                $counter = 0;
+                                
+                                foreach( $latest_topics as $topic ) {
+                                        $alt = ( $counter % 2 == 1 ) ? ' class=&quot;alt&quot;' : '';
+                                        $forum_template-&gt;topic = (object)$topic; ?&gt;
+                                        
+                                        &lt;li&lt;?php echo $alt ?&gt;&gt;
+                                                &lt;div class=&quot;avatar&quot;&gt;
+                                                        &lt;?php bp_the_topic_poster_avatar() ?&gt;
+                                                &lt;/div&gt;
+
+                                                &lt;a href=&quot;&lt;?php bp_the_topic_permalink() ?&gt;&quot; title=&quot;&lt;?php bp_the_topic_title() ?&gt; - &lt;?php _e( 'Permalink', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php bp_the_topic_title() ?&gt;&lt;/a&gt; 
+                                                &lt;span class=&quot;small&quot;&gt;- &lt;?php bp_the_topic_total_post_count() ?&gt; &lt;/span&gt;
+                                                &lt;p&gt;&lt;span class=&quot;activity&quot;&gt;&lt;?php echo sprintf( __( 'updated %s ago', 'buddypress' ), bp_the_topic_time_since_last_post( false ) ) ?&gt;&lt;/span&gt;&lt;/p&gt;
+                                
+                                                &lt;div class=&quot;latest-post&quot;&gt;
+                                                        &lt;?php _e( 'Latest by', 'buddypress' ) ?&gt; &lt;?php bp_the_topic_last_poster_name() ?&gt;:
+                                                        &lt;?php bp_the_topic_latest_post_excerpt() ?&gt;
+                                                &lt;/div&gt;
+                                        &lt;/li&gt;
+                                        &lt;?php $counter++ ?&gt;
+                                        
+                                &lt;?php } ?&gt;
+                                &lt;/ul&gt;
+                                &lt;?php
+                        } else {
+                        ?&gt;
+                                &lt;div id=&quot;message&quot; class=&quot;info&quot;&gt;
+                                        &lt;p&gt;&lt;?php _e( 'There are no active forum topics for this group', 'buddypress' ) ?&gt;&lt;/p&gt;
+                                &lt;/div&gt;
+                        &lt;?php
+                        }
+                }
+        }
+}
+
+
</ins><span class="cx"> /* DEPRECATED - use group invite template loop (see groups/create.php in skeleton BuddyPress theme) */
</span><span class="cx"> function bp_group_send_invite_form( $group = false ) {
</span><span class="cx">         global $bp, $groups_template, $invites;
</span><span class="lines">@@ -478,7 +531,7 @@
</span><span class="cx">                 &lt;?php case 'group-avatar': ?&gt;
</span><span class="cx">                         &lt;?php if ( bp_are_previous_group_creation_steps_complete( 'group-avatar' ) ) { ?&gt;
</span><span class="cx">                                 &lt;div class=&quot;left-menu&quot;&gt;
</span><del>-                                        &lt;?php bp_group_current_avatar() ?&gt;
</del><ins>+                                        &lt;?php bp_new_group_avatar() ?&gt;
</ins><span class="cx">                                 &lt;/div&gt;
</span><span class="cx">                                 
</span><span class="cx">                                 &lt;div class=&quot;main-column&quot;&gt;
</span></span></pre></div>
<a id="trunkbpwirebpwiretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-wire/bp-wire-templatetags.php (1833 => 1834)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-wire/bp-wire-templatetags.php        2009-09-09 14:11:08 UTC (rev 1833)
+++ trunk/bp-wire/bp-wire-templatetags.php        2009-09-09 22:20:13 UTC (rev 1834)
</span><span class="lines">@@ -162,7 +162,7 @@
</span><span class="cx">                 return apply_filters( 'bp_get_wire_title', $bp_wire_header );
</span><span class="cx">         }
</span><span class="cx">         
</span><del>-function bp_wire_item_id( $deprecated = true ) {
</del><ins>+function bp_wire_item_id( $deprecated = false ) {
</ins><span class="cx">         global $bp_item_id;
</span><span class="cx">         
</span><span class="cx">         if ( $deprecated )
</span><span class="lines">@@ -362,9 +362,9 @@
</span><span class="cx"> 
</span><span class="cx">                 if ( ( $wire_posts_template-&gt;wire_post-&gt;user_id == $bp-&gt;loggedin_user-&gt;id ) || $bp-&gt;is_item_admin || is_site_admin() ) {
</span><span class="cx">                         if ( $bp-&gt;wire-&gt;slug == $bp-&gt;current_component || $bp-&gt;profile-&gt;slug == $bp-&gt;current_component ) {
</span><del>-                                return apply_filters( 'bp_get_wire_delete_link', '&lt;a class=&quot;item-button delete confirm&quot; href=&quot;' . wp_nonce_url( $bp-&gt;displayed_user-&gt;domain . $bp-&gt;wire-&gt;slug . '/delete/' . $wire_posts_template-&gt;wire_post-&gt;id, 'bp_wire_delete_link' ) . '&quot;&gt;' . __('Delete', 'buddypress') . '&lt;/a&gt;' );
</del><ins>+                                return apply_filters( 'bp_get_wire_delete_link', '&lt;a class=&quot;item-button delete-post confirm&quot; href=&quot;' . wp_nonce_url( $bp-&gt;displayed_user-&gt;domain . $bp-&gt;wire-&gt;slug . '/delete/' . $wire_posts_template-&gt;wire_post-&gt;id, 'bp_wire_delete_link' ) . '&quot;&gt;' . __('Delete', 'buddypress') . '&lt;/a&gt;' );
</ins><span class="cx">                         } else {
</span><del>-                                return apply_filters( 'bp_get_wire_delete_link', '&lt;a class=&quot;item-button delete confirm&quot; href=&quot;' . wp_nonce_url( site_url( $bp-&gt;{$bp-&gt;current_component}-&gt;slug . '/' . $uri . '/wire/delete/' . $wire_posts_template-&gt;wire_post-&gt;id ), 'bp_wire_delete_link' ) . '&quot;&gt;' . __('Delete', 'buddypress') . '&lt;/a&gt;' );
</del><ins>+                                return apply_filters( 'bp_get_wire_delete_link', '&lt;a class=&quot;item-button delete-post confirm&quot; href=&quot;' . wp_nonce_url( site_url( $bp-&gt;{$bp-&gt;current_component}-&gt;slug . '/' . $uri . '/wire/delete/' . $wire_posts_template-&gt;wire_post-&gt;id ), 'bp_wire_delete_link' ) . '&quot;&gt;' . __('Delete', 'buddypress') . '&lt;/a&gt;' );
</ins><span class="cx">                         }
</span><span class="cx">                 }
</span><span class="cx">         }
</span></span></pre>
</div>
</div>

</body>
</html>