<!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] [2194] trunk: Fixing forum filtering and added &quot;My Topics&quot;
  tab to the forums directory.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>2194</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-12-17 12:24:10 +0000 (Thu, 17 Dec 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Fixing forum filtering and added &quot;My Topics&quot; tab to the forums directory.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpforumsbpforumstemplatetagsphp">trunk/bp-forums/bp-forums-templatetags.php</a></li>
<li><a href="#trunkbpforumsphp">trunk/bp-forums.php</a></li>
<li><a href="#trunkbpthemesbpdefault_incajaxphp">trunk/bp-themes/bp-default/_inc/ajax.php</a></li>
<li><a href="#trunkbpthemesbpdefault_inccssdefaultcss">trunk/bp-themes/bp-default/_inc/css/default.css</a></li>
<li><a href="#trunkbpthemesbpdefaultforumsindexphp">trunk/bp-themes/bp-default/forums/index.php</a></li>
<li><a href="#trunkbpthemesbpdefaultforumstopicsloopphp">trunk/bp-themes/bp-default/forums/topics-loop.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpforumsbpforumstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-forums/bp-forums-templatetags.php (2193 => 2194)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-forums/bp-forums-templatetags.php        2009-12-17 01:46:10 UTC (rev 2193)
+++ trunk/bp-forums/bp-forums-templatetags.php        2009-12-17 12:24:10 UTC (rev 2194)
</span><span class="lines">@@ -18,7 +18,7 @@
</span><span class="cx">         var $sort_by;
</span><span class="cx">         var $order;
</span><span class="cx"> 
</span><del>-        function BP_Forums_Template_Forum( $type, $forum_id, $page, $per_page, $max, $no_stickies, $filter ) {
</del><ins>+        function BP_Forums_Template_Forum( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms ) {
</ins><span class="cx">                 global $bp;
</span><span class="cx"> 
</span><span class="cx">                 $this-&gt;pag_page = isset( $_REQUEST['p'] ) ? intval( $_REQUEST['p'] ) : $page;
</span><span class="lines">@@ -30,23 +30,19 @@
</span><span class="cx"> 
</span><span class="cx">                 switch ( $type ) {
</span><span class="cx">                         case 'newest': default:
</span><del>-                                $this-&gt;topics = bp_forums_get_forum_topics( array( 'forum_id' =&gt; $forum_id, 'filter' =&gt; $filter, 'page' =&gt; $this-&gt;pag_page, 'per_page' =&gt; $this-&gt;pag_num, 'show_stickies' =&gt; $show_stickies ) );
</del><ins>+                                $this-&gt;topics = bp_forums_get_forum_topics( array( 'user_id' =&gt; $user_id, 'forum_id' =&gt; $forum_id, 'filter' =&gt; $search_terms, 'page' =&gt; $this-&gt;pag_page, 'per_page' =&gt; $this-&gt;pag_num, 'show_stickies' =&gt; $show_stickies ) );
</ins><span class="cx">                                 break;
</span><span class="cx"> 
</span><span class="cx">                         case 'popular':
</span><del>-                                $this-&gt;topics = bp_forums_get_forum_topics( array( 'type' =&gt; 'popular', 'filter' =&gt; $filter, 'forum_id' =&gt; $forum_id, 'page' =&gt; $this-&gt;pag_page, 'per_page' =&gt; $this-&gt;pag_num, 'show_stickies' =&gt; $show_stickies ) );
</del><ins>+                                $this-&gt;topics = bp_forums_get_forum_topics( array( 'user_id' =&gt; $user_id, 'type' =&gt; 'popular', 'filter' =&gt; $search_terms, 'forum_id' =&gt; $forum_id, 'page' =&gt; $this-&gt;pag_page, 'per_page' =&gt; $this-&gt;pag_num, 'show_stickies' =&gt; $show_stickies ) );
</ins><span class="cx">                                 break;
</span><span class="cx"> 
</span><span class="cx">                         case 'unreplied':
</span><del>-                                $this-&gt;topics = bp_forums_get_forum_topics( array( 'type' =&gt; 'unreplied', 'filter' =&gt; $filter, 'forum_id' =&gt; $forum_id, 'page' =&gt; $this-&gt;pag_page, 'per_page' =&gt; $this-&gt;pag_num, 'show_stickies' =&gt; $show_stickies ) );
</del><ins>+                                $this-&gt;topics = bp_forums_get_forum_topics( array( 'user_id' =&gt; $user_id, 'type' =&gt; 'unreplied', 'filter' =&gt; $search_terms, 'forum_id' =&gt; $forum_id, 'page' =&gt; $this-&gt;pag_page, 'per_page' =&gt; $this-&gt;pag_num, 'show_stickies' =&gt; $show_stickies ) );
</ins><span class="cx">                                 break;
</span><span class="cx"> 
</span><del>-                        case 'personal':
-                                $this-&gt;topics = bp_forums_get_forum_topics( array( 'type' =&gt; 'personal', 'filter' =&gt; $filter, 'forum_id' =&gt; $forum_id, 'page' =&gt; $this-&gt;pag_page, 'per_page' =&gt; $this-&gt;pag_num, 'show_stickies' =&gt; $show_stickies ) );
-                                break;
-
</del><span class="cx">                         case 'tag':
</span><del>-                                $this-&gt;topics = bp_forums_get_forum_topics( array( 'type' =&gt; 'tag', 'filter' =&gt; $filter, 'forum_id' =&gt; $forum_id, 'page' =&gt; $this-&gt;pag_page, 'per_page' =&gt; $this-&gt;pag_num, 'show_stickies' =&gt; $show_stickies ) );
</del><ins>+                                $this-&gt;topics = bp_forums_get_forum_topics( array( 'user_id' =&gt; $user_id, 'type' =&gt; 'tag', 'filter' =&gt; $search_terms, 'forum_id' =&gt; $forum_id, 'page' =&gt; $this-&gt;pag_page, 'per_page' =&gt; $this-&gt;pag_num, 'show_stickies' =&gt; $show_stickies ) );
</ins><span class="cx">                                 break;
</span><span class="cx">                 }
</span><span class="cx"> 
</span><span class="lines">@@ -157,11 +153,12 @@
</span><span class="cx">         $defaults = array(
</span><span class="cx">                 'type' =&gt; 'newest',
</span><span class="cx">                 'forum_id' =&gt; false,
</span><ins>+                'user_id' =&gt; false,
</ins><span class="cx">                 'page' =&gt; 1,
</span><span class="cx">                 'per_page' =&gt; 15,
</span><span class="cx">                 'max' =&gt; false,
</span><span class="cx">                 'no_stickies' =&gt; false,
</span><del>-                'filter' =&gt; false
</del><ins>+                'search_terms' =&gt; false
</ins><span class="cx">         );
</span><span class="cx"> 
</span><span class="cx">         $r = wp_parse_args( $args, $defaults );
</span><span class="lines">@@ -169,22 +166,22 @@
</span><span class="cx"> 
</span><span class="cx">         /* If we're in a single group, set this group's forum_id */
</span><span class="cx">         if ( !$forum_id &amp;&amp; $bp-&gt;groups-&gt;current_group ) {
</span><del>-                $forum_id = groups_get_groupmeta( $bp-&gt;groups-&gt;current_group-&gt;id, 'forum_id' );
</del><ins>+                $bp-&gt;groups-&gt;current_group-&gt;forum_id = groups_get_groupmeta( $bp-&gt;groups-&gt;current_group-&gt;id, 'forum_id' );
</ins><span class="cx"> 
</span><span class="cx">                 /* If it turns out there is no forum for this group, return false so we don't fetch all global topics */
</span><del>-                if ( !$forum_id )
</del><ins>+                if ( !$bp-&gt;groups-&gt;current_group-&gt;forum_id )
</ins><span class="cx">                         return false;
</span><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         /* If we're viewing a tag in the directory, let's auto set the filter to the tag name */
</span><span class="cx">         if ( $bp-&gt;is_directory &amp;&amp; 'tag' == $type &amp;&amp; !empty( $bp-&gt;action_variables[0] ) )
</span><del>-                $filter = $bp-&gt;action_variables[0];
</del><ins>+                $search_terms = $bp-&gt;action_variables[0];
</ins><span class="cx"> 
</span><del>-        /* If $_GET['s'] is set, let's auto populate the filter var */
</del><ins>+        /* If $_GET['fs'] is set, let's auto populate the search_terms var */
</ins><span class="cx">         if ( $bp-&gt;is_directory &amp;&amp; !empty( $_GET['fs'] ) )
</span><del>-                $filter = $_GET['fs'];
</del><ins>+                $search_terms = $_GET['fs'];
</ins><span class="cx"> 
</span><del>-        $forum_template = new BP_Forums_Template_Forum( $type, $forum_id, $page, $per_page, $max, $no_stickies, $filter );
</del><ins>+        $forum_template = new BP_Forums_Template_Forum( $type, $forum_id, $user_id, $page, $per_page, $max, $no_stickies, $search_terms );
</ins><span class="cx"> 
</span><span class="cx">         return apply_filters( 'bp_has_topics', $forum_template-&gt;has_topics(), &amp;$forum_template );
</span><span class="cx"> }
</span><span class="lines">@@ -934,14 +931,22 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function bp_directory_forums_search_form() {
</span><del>-        global $bp; ?&gt;
-        &lt;form action=&quot;&lt;?php echo $bp-&gt;root_domain . '/' . $bp-&gt;forums-&gt;slug . '/'; ?&gt;&quot; method=&quot;get&quot; id=&quot;search-forums-form&quot;&gt;
-                &lt;label&gt;&lt;input type=&quot;text&quot; name=&quot;fs&quot; id=&quot;forums_search&quot; value=&quot;&lt;?php if ( isset( $_GET['fs'] ) ) { echo attribute_escape( $_GET['fs'] ); } else { _e( 'Search anything...', 'buddypress' ); } ?&gt;&quot;  onfocus=&quot;if (this.value == '&lt;?php _e( 'Search anything...', 'buddypress' ) ?&gt;') {this.value = '';}&quot; onblur=&quot;if (this.value == '') {this.value = '&lt;?php _e( 'Search anything...', 'buddypress' ) ?&gt;';}&quot; /&gt;&lt;/label&gt;
-                &lt;input type=&quot;submit&quot; id=&quot;forums_search_submit&quot; name=&quot;submit&quot; value=&quot;&lt;?php _e( 'Search', 'buddypress' ) ?&gt;&quot; /&gt;
</del><ins>+        global $bp;
+
+        $search_value = __( 'Search anything...', 'buddypress' );
+        if ( !empty( $_REQUEST['fs'] ) )
+                 $search_value = $_REQUEST['fs'];
+
+        else if ( !empty( $_COOKIE['bp-forums-search-terms'] ) &amp;&amp; 'false' != $_COOKIE['bp-forums-search-terms'] )
+                 $search_value = $_COOKIE['bp-forums-search-terms'];
+
+?&gt;
+        &lt;form action=&quot;&quot; method=&quot;get&quot; id=&quot;search-forums-form&quot;&gt;
+                &lt;label&gt;&lt;input type=&quot;text&quot; name=&quot;s&quot; id=&quot;forums_search&quot; value=&quot;&lt;?php echo attribute_escape($search_value) ?&gt;&quot;  onfocus=&quot;if (this.value == '&lt;?php _e( 'Search anything...', 'buddypress' ) ?&gt;') {this.value = '';}&quot; onblur=&quot;if (this.value == '') {this.value = '&lt;?php _e( 'Search anything...', 'buddypress' ) ?&gt;';}&quot; /&gt;&lt;/label&gt;
+                &lt;input type=&quot;submit&quot; id=&quot;forums_search_submit&quot; name=&quot;forums_search_submit&quot; value=&quot;&lt;?php _e( 'Search', 'buddypress' ) ?&gt;&quot; /&gt;
</ins><span class="cx">         &lt;/form&gt;
</span><span class="cx"> &lt;?php
</span><span class="cx"> }
</span><del>-
</del><span class="cx"> function bp_forum_permalink() {
</span><span class="cx">         echo bp_get_forum_permalink();
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkbpforumsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-forums.php (2193 => 2194)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-forums.php        2009-12-17 01:46:10 UTC (rev 2193)
+++ trunk/bp-forums.php        2009-12-17 12:24:10 UTC (rev 2194)
</span><span class="lines">@@ -127,15 +127,6 @@
</span><span class="cx">         return bb_new_forum( array( 'forum_name' =&gt; stripslashes( $forum_name ), 'forum_desc' =&gt; stripslashes( $forum_desc ), 'forum_parent' =&gt; $forum_parent_id, 'forum_order' =&gt; $forum_order, 'forum_is_category' =&gt; $forum_is_category ) );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_forums_get_forum_topicpost_count( $forum_id ) {
-        global $wpdb, $bbdb;
-
-        do_action( 'bbpress_init' );
-
-        /* Need to find a bbPress function that does this */
-        return $wpdb-&gt;get_results( $wpdb-&gt;prepare( &quot;SELECT topics, posts from {$bbdb-&gt;forums} WHERE forum_id = %d&quot;, $forum_id ) );
-}
-
</del><span class="cx"> /* Topic Functions */
</span><span class="cx"> 
</span><span class="cx"> function bp_forums_get_forum_topics( $args = '' ) {
</span><span class="lines">@@ -146,6 +137,7 @@
</span><span class="cx">         $defaults = array(
</span><span class="cx">                 'type' =&gt; 'newest',
</span><span class="cx">                 'forum_id' =&gt; false,
</span><ins>+                'user_id' =&gt; false,
</ins><span class="cx">                 'page' =&gt; 1,
</span><span class="cx">                 'per_page' =&gt; 15,
</span><span class="cx">                 'exclude' =&gt; false,
</span><span class="lines">@@ -158,27 +150,22 @@
</span><span class="cx"> 
</span><span class="cx">         switch ( $type ) {
</span><span class="cx">                 case 'newest':
</span><del>-                        $query = new BB_Query( 'topic', array( 'forum_id' =&gt; $forum_id, 'per_page' =&gt; $per_page, 'page' =&gt; $page, 'number' =&gt; $per_page, 'exclude' =&gt; $exclude, 'topic_title' =&gt; $filter, 'sticky' =&gt; $show_stickies ), 'get_latest_topics' );
-                        $topics = $query-&gt;results;
</del><ins>+                        $query = new BB_Query( 'topic', array( 'forum_id' =&gt; $forum_id, 'topic_author_id' =&gt; $user_id, 'per_page' =&gt; $per_page, 'page' =&gt; $page, 'number' =&gt; $per_page, 'exclude' =&gt; $exclude, 'topic_title' =&gt; $filter, 'sticky' =&gt; $show_stickies ), 'get_latest_topics' );
+                        $topics =&amp; $query-&gt;results;
</ins><span class="cx">                 break;
</span><span class="cx"> 
</span><span class="cx">                 case 'popular':
</span><del>-                        $query = new BB_Query( 'topic', array( 'forum_id' =&gt; $forum_id, 'per_page' =&gt; $per_page, 'page' =&gt; $page, 'order_by' =&gt; 't.topic_posts', 'topic_title' =&gt; $filter, 'sticky' =&gt; $show_stickies ) );
</del><ins>+                        $query = new BB_Query( 'topic', array( 'forum_id' =&gt; $forum_id, 'topic_author_id' =&gt; $user_id, 'per_page' =&gt; $per_page, 'page' =&gt; $page, 'order_by' =&gt; 't.topic_posts', 'topic_title' =&gt; $filter, 'sticky' =&gt; $show_stickies ) );
</ins><span class="cx">                         $topics =&amp; $query-&gt;results;
</span><span class="cx">                 break;
</span><span class="cx"> 
</span><span class="cx">                 case 'unreplied':
</span><del>-                        $query = new BB_Query( 'topic', array( 'forum_id' =&gt; $forum_id, 'post_count' =&gt; 1, 'per_page' =&gt; $per_page, 'page' =&gt; $page, 'order_by' =&gt; 't.topic_time', 'topic_title' =&gt; $filter, 'sticky' =&gt; $show_stickies ) );
</del><ins>+                        $query = new BB_Query( 'topic', array( 'forum_id' =&gt; $forum_id, 'topic_author_id' =&gt; $user_id, 'post_count' =&gt; 1, 'per_page' =&gt; $per_page, 'page' =&gt; $page, 'order_by' =&gt; 't.topic_time', 'topic_title' =&gt; $filter, 'sticky' =&gt; $show_stickies ) );
</ins><span class="cx">                         $topics =&amp; $query-&gt;results;
</span><span class="cx">                 break;
</span><span class="cx"> 
</span><del>-                case 'personal':
-                        $query = new BB_Query( 'topic', array( 'forum_id' =&gt; $forum_id, 'per_page' =&gt; $per_page, 'page' =&gt; $page, 'topic_author_id' =&gt; $bp-&gt;loggedin_user-&gt;id, 'order_by' =&gt; 't.topic_time', 'topic_title' =&gt; $filter, 'sticky' =&gt; $show_stickies ), 'get_recent_user_threads' );
-                        $topics =&amp; $query-&gt;results;
-                break;
-
</del><span class="cx">                 case 'tag':
</span><del>-                        $query = new BB_Query( 'topic', array( 'forum_id' =&gt; $forum_id, 'tag' =&gt; $filter, 'per_page' =&gt; $per_page, 'page' =&gt; $page, 'order_by' =&gt; 't.topic_time', 'sticky' =&gt; $show_stickies ) );
</del><ins>+                        $query = new BB_Query( 'topic', array( 'forum_id' =&gt; $forum_id, 'topic_author_id' =&gt; $user_id, 'tag' =&gt; $filter, 'per_page' =&gt; $per_page, 'page' =&gt; $page, 'order_by' =&gt; 't.topic_time', 'sticky' =&gt; $show_stickies ) );
</ins><span class="cx">                         $topics =&amp; $query-&gt;results;
</span><span class="cx">                 break;
</span><span class="cx">         }
</span><span class="lines">@@ -318,6 +305,25 @@
</span><span class="cx">         return bb_delete_topic( $topic_id, 1 );
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function bp_forums_total_topic_count() {
+        do_action( 'bbpress_init' );
+
+        $query = new BB_Query( 'topic', array( 'page' =&gt; 1, 'per_page' =&gt; false, 'count' =&gt; true ) );
+        return $query-&gt;count;
+}
+
+function bp_forums_total_topic_count_for_user( $user_id = false ) {
+        global $bp;
+
+        do_action( 'bbpress_init' );
+
+        if ( !$user_id )
+                $user_id = ( $bp-&gt;displayed_user-&gt;id ) ? $bp-&gt;displayed_user-&gt;id : $bp-&gt;loggedin_user-&gt;id;
+
+        $query = new BB_Query( 'topic', array( 'topic_author_id' =&gt; $user_id, 'page' =&gt; 1, 'per_page' =&gt; false, 'count' =&gt; true ) );
+        return $query-&gt;count;
+}
+
</ins><span class="cx"> /* Post Functions */
</span><span class="cx"> 
</span><span class="cx"> function bp_forums_get_topic_posts( $args = '' ) {
</span></span></pre></div>
<a id="trunkbpthemesbpdefault_incajaxphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/ajax.php (2193 => 2194)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/ajax.php        2009-12-17 01:46:10 UTC (rev 2193)
+++ trunk/bp-themes/bp-default/_inc/ajax.php        2009-12-17 12:24:10 UTC (rev 2194)
</span><span class="lines">@@ -137,7 +137,7 @@
</span><span class="cx">         /* Build the querystring */
</span><span class="cx"> 
</span><span class="cx">         /* Sort out type ordering */
</span><del>-        if ( 'active' != $filter &amp;&amp; 'newest' != $filter &amp;&amp; 'alphabetical' != $filter )
</del><ins>+        if ( 'active' != $filter &amp;&amp; 'popular' != $filter &amp;&amp; 'unreplied' != $filter )
</ins><span class="cx">                 $type = 'active';
</span><span class="cx"> 
</span><span class="cx">         $bp-&gt;ajax_querystring = 'type=' . $filter . '&amp;page=' . $page;
</span><span class="lines">@@ -145,13 +145,13 @@
</span><span class="cx">         if ( $search_terms )
</span><span class="cx">                 $bp-&gt;ajax_querystring .= '&amp;search_terms=' . $search_terms;
</span><span class="cx"> 
</span><del>-        if ( !$type || ( 'all' != $type &amp;&amp; 'myblogs' != $type ) )
</del><ins>+        if ( !$type || ( 'all' != $type &amp;&amp; 'mytopics' != $type ) )
</ins><span class="cx">                 $type = 'all';
</span><span class="cx"> 
</span><del>-        if ( ( 'myblogs' == $type ) &amp;&amp; !is_user_logged_in() )
</del><ins>+        if ( ( 'mytopics' == $type ) &amp;&amp; !is_user_logged_in() )
</ins><span class="cx">                 $type = 'all';
</span><span class="cx"> 
</span><del>-        if ( 'my' == $type || $bp-&gt;displayed_user-&gt;id ) {
</del><ins>+        if ( 'mytopics' == $type || $bp-&gt;displayed_user-&gt;id ) {
</ins><span class="cx">                 $user_id = ( $bp-&gt;displayed_user-&gt;id ) ? $bp-&gt;displayed_user-&gt;id : $bp-&gt;loggedin_user-&gt;id;
</span><span class="cx">                 $bp-&gt;ajax_querystring .= '&amp;user_id=' . $user_id;
</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 (2193 => 2194)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/css/default.css        2009-12-17 01:46:10 UTC (rev 2193)
+++ trunk/bp-themes/bp-default/_inc/css/default.css        2009-12-17 12:24:10 UTC (rev 2194)
</span><span class="lines">@@ -197,7 +197,11 @@
</span><span class="cx">         float: left;
</span><span class="cx">         width: 224px;
</span><span class="cx">         margin-left: -226px;
</span><ins>+        margin-top: 1px;
</ins><span class="cx">         border-left: 1px solid #e4e4e4;
</span><ins>+        -moz-border-radius-topright: 3px;
+        -webkit-border-top-right-radius: 3px;
+        background: url( ../images/sidebar_back.gif ) top left repeat-x;
</ins><span class="cx"> }
</span><span class="cx">         div#sidebar div#sidebar-me img.avatar {
</span><span class="cx">                 float: left;
</span><span class="lines">@@ -479,9 +483,10 @@
</span><span class="cx">         div.item-list-tabs#user-subnav,
</span><span class="cx">         div.item-list-tabs#group-subnav {
</span><span class="cx">                 background: #fff;
</span><del>-                margin: 0 -15px 20px -15px;
</del><ins>+                margin: 0 -15px 0 -15px;
</ins><span class="cx">                 border-bottom: 1px solid #eaeaea;
</span><span class="cx">                 min-height: 35px;
</span><ins>+                overflow: hidden;
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx"> /* &gt; Item Body
</span><span class="lines">@@ -518,7 +523,6 @@
</span><span class="cx">         .mygroups div.pagination, .myblogs div.pagination {
</span><span class="cx">                 background: #f8f8f8;
</span><span class="cx">                 border: none;
</span><del>-                margin-top: -20px;
</del><span class="cx">                 padding: 8px 15px;
</span><span class="cx">         }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultforumsindexphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/forums/index.php (2193 => 2194)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/forums/index.php        2009-12-17 01:46:10 UTC (rev 2193)
+++ trunk/bp-themes/bp-default/forums/index.php        2009-12-17 12:24:10 UTC (rev 2194)
</span><span class="lines">@@ -9,14 +9,14 @@
</span><span class="cx">                         &lt;h2&gt;&lt;?php _e( 'Group Forums Directory', 'buddypress' ) ?&gt;&lt;?php if ( is_user_logged_in() ) : ?&gt; &amp;nbsp;&lt;a class=&quot;button&quot; href=&quot;#new-topic&quot; id=&quot;new-topic-button&quot;&gt;&lt;?php _e( 'New Topic', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;?php endif; ?&gt;&lt;/h2&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;forums-dir-search&quot; class=&quot;dir-search&quot;&gt;
</span><del>-                                &lt;?php bp_directory_groups_search_form() ?&gt;
</del><ins>+                                &lt;?php bp_directory_forums_search_form() ?&gt;
</ins><span class="cx">                         &lt;/div&gt;
</span><span class="cx">                 &lt;/form&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;new-topic-post&quot;&gt;
</span><span class="cx">                                 &lt;?php if ( is_user_logged_in() ) : ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&amp;type=alphabetical&amp;max=20&amp;per_page=20' ) ) : ?&gt;
</del><ins>+                                        &lt;?php if ( bp_has_groups( 'user_id=' . bp_loggedin_user_id() . '&amp;type=alphabetical&amp;max=100&amp;per_page=100' ) ) : ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                                 &lt;form action=&quot;&quot; method=&quot;post&quot; id=&quot;forum-topic-form&quot; class=&quot;standard-form&quot;&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -69,8 +69,12 @@
</span><span class="cx"> 
</span><span class="cx">                         &lt;div class=&quot;item-list-tabs&quot;&gt;
</span><span class="cx">                                 &lt;ul&gt;
</span><del>-                                        &lt;li class=&quot;selected&quot; id=&quot;forums-all&quot;&gt;&lt;a href=&quot;&lt;?php bp_root_domain() ?&gt;&quot;&gt;&lt;?php _e( 'All Group Forums', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</del><ins>+                                        &lt;li class=&quot;selected&quot; id=&quot;forums-all&quot;&gt;&lt;a href=&quot;&lt;?php bp_root_domain() ?&gt;&quot;&gt;&lt;?php printf( __( 'All Topics (%d)', 'buddypress' ), bp_forums_total_topic_count() ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx"> 
</span><ins>+                                        &lt;?php if ( is_user_logged_in() &amp;&amp; bp_forums_total_topic_count_for_user( bp_loggedin_user_id() ) ) : ?&gt;
+                                                &lt;li id=&quot;forums-mytopics&quot;&gt;&lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() . BP_GROUPS_SLUG . '/' ?&gt;&quot;&gt;&lt;?php printf( __( 'My Topics (%d)', 'buddypress' ), bp_forums_total_topic_count_for_user( bp_loggedin_user_id() ) ) ?&gt;&lt;/a&gt;&lt;/li&gt;
+                                        &lt;?php endif; ?&gt;
+
</ins><span class="cx">                                         &lt;?php do_action( 'bp_members_directory_group_types' ) ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                         &lt;li id=&quot;forums-order-select&quot; class=&quot;last filter&quot;&gt;
</span><span class="lines">@@ -79,7 +83,7 @@
</span><span class="cx">                                                 &lt;select&gt;
</span><span class="cx">                                                         &lt;option value=&quot;active&quot;&gt;&lt;?php _e( 'Last Active', 'buddypress' ) ?&gt;&lt;/option&gt;
</span><span class="cx">                                                         &lt;option value=&quot;popular&quot;&gt;&lt;?php _e( 'Most Posts', 'buddypress' ) ?&gt;&lt;/option&gt;
</span><del>-                                                        &lt;option value=&quot;newest&quot;&gt;&lt;?php _e( 'Unreplied', 'buddypress' ) ?&gt;&lt;/option&gt;
</del><ins>+                                                        &lt;option value=&quot;unreplied&quot;&gt;&lt;?php _e( 'Unreplied', 'buddypress' ) ?&gt;&lt;/option&gt;
</ins><span class="cx"> 
</span><span class="cx">                                                         &lt;?php do_action( 'bp_groups_directory_order_options' ) ?&gt;
</span><span class="cx">                                                 &lt;/select&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultforumstopicsloopphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/forums/topics-loop.php (2193 => 2194)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/forums/topics-loop.php        2009-12-17 01:46:10 UTC (rev 2193)
+++ trunk/bp-themes/bp-default/forums/topics-loop.php        2009-12-17 12:24:10 UTC (rev 2194)
</span><span class="lines">@@ -22,10 +22,10 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;tr&gt;
</span><span class="cx">                         &lt;th id=&quot;th-title&quot;&gt;&lt;?php _e( 'Topic Title', 'buddypress' ) ?&gt;&lt;/th&gt;
</span><del>-                        &lt;th id=&quot;th-poster&quot;&gt;&lt;?php _e( 'Last Poster', 'buddypress' ) ?&gt;&lt;/th&gt;
</del><ins>+                        &lt;th id=&quot;th-poster&quot;&gt;&lt;?php _e( 'Latest Poster', 'buddypress' ) ?&gt;&lt;/th&gt;
</ins><span class="cx"> 
</span><span class="cx">                         &lt;?php if ( !bp_is_group_forum() ) : ?&gt;
</span><del>-                                &lt;th id=&quot;th-group&quot;&gt;&lt;?php _e( 'Posted In', 'buddypress' ) ?&gt;&lt;/th&gt;
</del><ins>+                                &lt;th id=&quot;th-group&quot;&gt;&lt;?php _e( 'Posted In Group', 'buddypress' ) ?&gt;&lt;/th&gt;
</ins><span class="cx">                         &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;th id=&quot;th-postcount&quot;&gt;&lt;?php _e( 'Posts', 'buddypress' ) ?&gt;&lt;/th&gt;
</span></span></pre>
</div>
</div>

</body>
</html>