<!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] [2485] trunk: Improved noscript support.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>2485</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2010-01-31 09:45:19 +0000 (Sun, 31 Jan 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Improved noscript support.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpactivitybpactivityclassesphp">trunk/bp-activity/bp-activity-classes.php</a></li>
<li><a href="#trunkbpactivitybpactivitytemplatetagsphp">trunk/bp-activity/bp-activity-templatetags.php</a></li>
<li><a href="#trunkbpactivityphp">trunk/bp-activity.php</a></li>
<li><a href="#trunkbpcorebpcoretemplatetagsphp">trunk/bp-core/bp-core-templatetags.php</a></li>
<li><a href="#trunkbpcorephp">trunk/bp-core.php</a></li>
<li><a href="#trunkbpmessagesbpmessagestemplatetagsphp">trunk/bp-messages/bp-messages-templatetags.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="#trunkbpthemesbpdefault_incglobaljs">trunk/bp-themes/bp-default/_inc/global.js</a></li>
<li><a href="#trunkbpthemesbpdefaultactivityactivityloopphp">trunk/bp-themes/bp-default/activity/activity-loop.php</a></li>
<li><a href="#trunkbpthemesbpdefaultactivityindexphp">trunk/bp-themes/bp-default/activity/index.php</a></li>
<li><a href="#trunkbpthemesbpdefaultfunctionsphp">trunk/bp-themes/bp-default/functions.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssingleactivityphp">trunk/bp-themes/bp-default/members/single/activity.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpactivitybpactivityclassesphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-classes.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-classes.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-activity/bp-activity-classes.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -144,8 +144,10 @@
</span><span class="cx">                         $activities = BP_Activity_Activity::append_comments( &amp;$activities );
</span><span class="cx"> 
</span><span class="cx">                 /* If $max is set, only return up to the max results */
</span><del>-                if ( (int)$total_activities &gt; (int)$max )
-                        $total_activities = $max;
</del><ins>+                if ( !empty( $max ) ) {
+                        if ( (int)$total_activities &gt; (int)$max )
+                                $total_activities = $max;
+                }
</ins><span class="cx"> 
</span><span class="cx">                 return array( 'activities' =&gt; $activities, 'total' =&gt; (int)$total_activities );
</span><span class="cx">         }
</span></span></pre></div>
<a id="trunkbpactivitybpactivitytemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity/bp-activity-templatetags.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity/bp-activity-templatetags.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-activity/bp-activity-templatetags.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -116,49 +116,94 @@
</span><span class="cx"> function bp_has_activities( $args = '' ) {
</span><span class="cx">         global $bp, $activities_template;
</span><span class="cx"> 
</span><ins>+        /***
+         * Set the defaults based on the current page. Any of these will be overridden
+         * if arguments are directly passed into the loop. Custom plugins should always
+         * pass their parameters directly to the loop.
+         */
+        $user_id = false;
+        $include = false;
+        $show_hidden = false;
+        $search_terms = false;
+        $object = false;
+        $primary_id = false;
+
+        /* User filtering */
+        if ( !empty( $bp-&gt;displayed_user-&gt;id ) )
+                $user_id = $bp-&gt;displayed_user-&gt;id;
+
+        /* User activity scope filtering */
+        if ( !empty( $user_id ) ) {
+                switch ( $bp-&gt;current_action ) {
+                        case 'friends':
+                                if ( function_exists( 'friends_get_friend_user_ids' ) )
+                                        $user_id = implode( ',', (array)friends_get_friend_user_ids( $bp-&gt;displayed_user-&gt;id ) );
+                                break;
+                        case 'groups':
+                                if ( function_exists( 'groups_get_user_groups' ) ) {
+                                        $groups = groups_get_user_groups( $bp-&gt;displayed_user-&gt;id );
+                                        $object = $bp-&gt;groups-&gt;id;
+                                        $primary_id = implode( ',', (array)$groups['groups'] );
+                                        $show_hidden = ( bp_is_my_profile() ) ? 1 : 0;
+                                }
+                                break;
+                        case 'favorites':
+                                $favs = bp_activity_get_user_favorites( $bp-&gt;displayed_user-&gt;id );
+                                $include = implode( ',', (array)$favs );
+                                $show_hidden = ( bp_is_my_profile() ) ? 1 : 0;
+                                break;
+                        case 'mentions':
+                                $search_terms = '@' . bp_core_get_username( $bp-&gt;displayed_user-&gt;id, $bp-&gt;displayed_user-&gt;userdata-&gt;user_nicename, $bp-&gt;displayed_user-&gt;userdata-&gt;user_login );
+                                $show_hidden = ( bp_is_my_profile() ) ? 1 : 0;
+                                break;
+                }
+        }
+
+        /* Group filtering */
+        if ( !empty( $bp-&gt;groups-&gt;current_group ) ) {
+                $object = $bp-&gt;groups-&gt;id;
+                $primary_id = $bp-&gt;groups-&gt;current_group-&gt;id;
+        }
+
+        /* Support for permalinks on single item pages: /groups/my-group/activity/124/ */
+        if ( $bp-&gt;current_action == $bp-&gt;activity-&gt;slug )
+                $include = $bp-&gt;action_variables[0];
+
+        /* Support for basic filters in earlier BP versions. */
+        if ( isset( $_GET['afilter'] ) )
+                $filter = array( 'object' =&gt; $_GET['afilter'] );
+        else
+                $filter = array( 'user_id' =&gt; $user_id, 'object' =&gt; $object, 'action' =&gt; $action, 'primary_id' =&gt; $primary_id, 'secondary_id' =&gt; $secondary_id );
+
</ins><span class="cx">         /* Note: any params used for filtering can be a single value, or multiple values comma separated. */
</span><del>-
</del><span class="cx">         $defaults = array(
</span><del>-                'display_comments' =&gt; false, // false for none, stream/threaded - show comments in the stream or threaded under items
-                'include' =&gt; false, // pass an activity_id or string of ID's comma separated
</del><ins>+                'display_comments' =&gt; 'threaded', // false for none, stream/threaded - show comments in the stream or threaded under items
+                'include' =&gt; $include, // pass an activity_id or string of ID's comma separated
</ins><span class="cx">                 'sort' =&gt; 'DESC', // sort DESC or ASC
</span><span class="cx">                 'page' =&gt; 1, // which page to load
</span><span class="cx">                 'per_page' =&gt; 25, // number of items per page
</span><span class="cx">                 'max' =&gt; false, // max number to return
</span><del>-                'show_hidden' =&gt; false, // Show activity items that are hidden site-wide?
</del><ins>+                'show_hidden' =&gt; $show_hidden, // Show activity items that are hidden site-wide?
</ins><span class="cx"> 
</span><span class="cx">                 /* Filtering */
</span><del>-                'user_id' =&gt; false, // user_id to filter on
-                'object' =&gt; false, // object to filter on e.g. groups, profile, status, friends
</del><ins>+                'user_id' =&gt; $user_id, // user_id to filter on
+                'object' =&gt; $object, // object to filter on e.g. groups, profile, status, friends
</ins><span class="cx">                 'action' =&gt; false, // action to filter on e.g. activity_update, new_forum_post, profile_updated
</span><del>-                'primary_id' =&gt; false, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
</del><ins>+                'primary_id' =&gt; $primary_id, // object ID to filter on e.g. a group_id or forum_id or blog_id etc.
</ins><span class="cx">                 'secondary_id' =&gt; false, // secondary object ID to filter on e.g. a post_id
</span><span class="cx"> 
</span><span class="cx">                 /* Searching */
</span><del>-                'search_terms' =&gt; false // specify terms to search on
</del><ins>+                'search_terms' =&gt; $search_terms // specify terms to search on
</ins><span class="cx">         );
</span><span class="cx"> 
</span><span class="cx">         $r = wp_parse_args( $args, $defaults );
</span><span class="cx">         extract( $r, EXTR_SKIP );
</span><span class="cx"> 
</span><del>-        if ( ( 'personal' == $type || 'friends' == $type ) &amp;&amp; !$user_id )
-                $user_id = (int)$bp-&gt;displayed_user-&gt;id;
-
</del><span class="cx">         if ( $max ) {
</span><span class="cx">                 if ( $per_page &gt; $max )
</span><span class="cx">                         $per_page = $max;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        /* Support for permalinks on single item pages: /groups/my-group/activity/124/ */
-        if ( $bp-&gt;current_action == $bp-&gt;activity-&gt;slug )
-                $include = $bp-&gt;action_variables[0];
-
-        /* Support for basic filters in earlier BP versions. */
-        if ( isset( $_GET['afilter'] ) )
-                $filter = array( 'object' =&gt; $_GET['afilter'] );
-        else
-                $filter = array( 'user_id' =&gt; $user_id, 'object' =&gt; $object, 'action' =&gt; $action, 'primary_id' =&gt; $primary_id, 'secondary_id' =&gt; $secondary_id );
-
</del><span class="cx">         $activities_template = new BP_Activity_Template( $page, $per_page, $max, $include, $sort, $filter, $search_terms, $display_comments, $show_hidden );
</span><span class="cx"> 
</span><span class="cx">         return apply_filters( 'bp_has_activities', $activities_template-&gt;has_activities(), &amp;$activities_template );
</span><span class="lines">@@ -758,10 +803,18 @@
</span><span class="cx">         function bp_get_member_activity_feed_link() {
</span><span class="cx">                 global $bp;
</span><span class="cx"> 
</span><del>-                if ( ( $bp-&gt;current_component == $bp-&gt;profile-&gt;slug ) || 'just-me' == $bp-&gt;current_action )
-                        return apply_filters( 'bp_get_activities_member_rss_link', $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/feed/' );
-                else
-                        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>+                if ( $bp-&gt;current_component == $bp-&gt;profile-&gt;slug || 'just-me' == $bp-&gt;current_action )
+                        $link = $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/feed/';
+                else if ( 'friends' == $bp-&gt;current_action )
+                        $link = $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/friends/feed/';
+                else if ( 'groups' == $bp-&gt;current_action )
+                        $link = $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/groups/feed/';
+                else if ( 'favorites' == $bp-&gt;current_action )
+                        $link = $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/favorites/feed/';
+                else if ( 'mentions' == $bp-&gt;current_action )
+                        $link = $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/mentions/feed/';
+
+                return apply_filters( 'bp_get_activities_member_rss_link', $link );
</ins><span class="cx">         }
</span><span class="cx">         function bp_get_activities_member_rss_link() { return bp_get_member_activity_feed_link(); }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpactivityphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-activity.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-activity.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-activity.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -106,11 +106,14 @@
</span><span class="cx">         /* Add 'Activity' to the main navigation */
</span><span class="cx">         bp_core_new_nav_item( array( 'name' =&gt; __( 'Activity', 'buddypress' ), 'slug' =&gt; $bp-&gt;activity-&gt;slug, 'position' =&gt; 10, 'screen_function' =&gt; 'bp_activity_screen_my_activity', 'default_subnav_slug' =&gt; 'just-me', 'item_css_id' =&gt; $bp-&gt;activity-&gt;id ) );
</span><span class="cx"> 
</span><del>-        $activity_link = $bp-&gt;loggedin_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/';
</del><ins>+        $activity_link = $bp-&gt;displayed_user-&gt;domain . $bp-&gt;activity-&gt;slug . '/';
</ins><span class="cx"> 
</span><span class="cx">         /* Add the subnav items to the activity nav item if we are using a theme that supports this */
</span><del>-        bp_core_new_subnav_item( array( 'name' =&gt; __( 'Just Me', 'buddypress' ), 'slug' =&gt; 'just-me', 'parent_url' =&gt; $activity_link, 'parent_slug' =&gt; $bp-&gt;activity-&gt;slug, 'screen_function' =&gt; 'bp_activity_screen_my_activity', 'position' =&gt; 10 ) );
-        bp_core_new_subnav_item( array( 'name' =&gt; __( 'My Friends', 'buddypress' ), 'slug' =&gt; 'my-friends', 'parent_url' =&gt; $activity_link, 'parent_slug' =&gt; $bp-&gt;activity-&gt;slug, 'screen_function' =&gt; 'bp_activity_screen_friends_activity', 'position' =&gt; 20, 'item_css_id' =&gt; 'activity-my-friends' ) );
</del><ins>+        bp_core_new_subnav_item( array( 'name' =&gt; __( 'Personal', 'buddypress' ), 'slug' =&gt; 'just-me', 'parent_url' =&gt; $activity_link, 'parent_slug' =&gt; $bp-&gt;activity-&gt;slug, 'screen_function' =&gt; 'bp_activity_screen_my_activity', 'position' =&gt; 10 ) );
+        bp_core_new_subnav_item( array( 'name' =&gt; __( 'Friends', 'buddypress' ), 'slug' =&gt; 'friends', 'parent_url' =&gt; $activity_link, 'parent_slug' =&gt; $bp-&gt;activity-&gt;slug, 'screen_function' =&gt; 'bp_activity_screen_friends', 'position' =&gt; 20, 'item_css_id' =&gt; 'activity-friends' ) );
+        bp_core_new_subnav_item( array( 'name' =&gt; __( 'Groups', 'buddypress' ), 'slug' =&gt; 'groups', 'parent_url' =&gt; $activity_link, 'parent_slug' =&gt; $bp-&gt;activity-&gt;slug, 'screen_function' =&gt; 'bp_activity_screen_groups', 'position' =&gt; 30, 'item_css_id' =&gt; 'activity-groups' ) );
+        bp_core_new_subnav_item( array( 'name' =&gt; __( 'Favorites', 'buddypress' ), 'slug' =&gt; 'favorites', 'parent_url' =&gt; $activity_link, 'parent_slug' =&gt; $bp-&gt;activity-&gt;slug, 'screen_function' =&gt; 'bp_activity_screen_favorites', 'position' =&gt; 40, 'item_css_id' =&gt; 'activity-favs' ) );
+        bp_core_new_subnav_item( array( 'name' =&gt; sprintf( __( '@%s Mentions', 'buddypress' ), $bp-&gt;displayed_user-&gt;userdata-&gt;user_login ), 'slug' =&gt; 'mentions', 'parent_url' =&gt; $activity_link, 'parent_slug' =&gt; $bp-&gt;activity-&gt;slug, 'screen_function' =&gt; 'bp_activity_screen_mentions', 'position' =&gt; 50, 'item_css_id' =&gt; 'activity-mentions' ) );
</ins><span class="cx"> 
</span><span class="cx">         if ( $bp-&gt;current_component == $bp-&gt;activity-&gt;slug ) {
</span><span class="cx">                 if ( bp_is_my_profile() ) {
</span><span class="lines">@@ -152,17 +155,52 @@
</span><span class="cx">         bp_core_load_template( apply_filters( 'bp_activity_template_my_activity', 'members/single/home' ) );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function bp_activity_screen_friends_activity() {
</del><ins>+function bp_activity_screen_friends() {
</ins><span class="cx">         global $bp;
</span><span class="cx"> 
</span><del>-        /* Make sure delete links do not show for friends activity items */
</del><ins>+        if ( bp_is_deactivated( 'bp-friends.php' ) )
+                return false;
+
</ins><span class="cx">         if ( !is_site_admin() )
</span><span class="cx">                 $bp-&gt;is_item_admin = false;
</span><span class="cx"> 
</span><del>-        do_action( 'bp_activity_screen_friends_activity' );
-        bp_core_load_template( apply_filters( 'bp_activity_template_friends_activity', 'activity/my-friends' ) );
</del><ins>+        do_action( 'bp_activity_screen_friends' );
+        bp_core_load_template( apply_filters( 'bp_activity_template_friends_activity', 'members/single/home' ) );
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function bp_activity_screen_groups() {
+        global $bp;
+
+        if ( bp_is_deactivated( 'bp-groups.php' ) )
+                return false;
+
+        if ( !is_site_admin() )
+                $bp-&gt;is_item_admin = false;
+
+        do_action( 'bp_activity_screen_groups' );
+        bp_core_load_template( apply_filters( 'bp_activity_template_groups_activity', 'members/single/home' ) );
+}
+
+function bp_activity_screen_favorites() {
+        global $bp;
+
+        if ( !is_site_admin() )
+                $bp-&gt;is_item_admin = false;
+
+        do_action( 'bp_activity_screen_favorites' );
+        bp_core_load_template( apply_filters( 'bp_activity_template_favorite_activity', 'members/single/home' ) );
+}
+
+function bp_activity_screen_mentions() {
+        global $bp;
+
+        if ( !is_site_admin() )
+                $bp-&gt;is_item_admin = false;
+
+        do_action( 'bp_activity_screen_mentions' );
+        bp_core_load_template( apply_filters( 'bp_activity_template_mention_activity', 'members/single/home' ) );
+}
+
</ins><span class="cx"> function bp_activity_screen_single_activity_permalink() {
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><span class="lines">@@ -344,7 +382,7 @@
</span><span class="cx"> function bp_activity_action_friends_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;displayed_user-&gt;id || $bp-&gt;current_action != 'my-friends' || $bp-&gt;action_variables[0] != 'feed' )
</del><ins>+        if ( $bp-&gt;current_component != $bp-&gt;activity-&gt;slug || !$bp-&gt;displayed_user-&gt;id || $bp-&gt;current_action != 'friends' || $bp-&gt;action_variables[0] != 'feed' )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         $wp_query-&gt;is_404 = false;
</span><span class="lines">@@ -358,7 +396,7 @@
</span><span class="cx"> function bp_activity_action_my_groups_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;displayed_user-&gt;id || $bp-&gt;current_action != 'my-groups' || $bp-&gt;action_variables[0] != 'feed' )
</del><ins>+        if ( $bp-&gt;current_component != $bp-&gt;activity-&gt;slug || !$bp-&gt;displayed_user-&gt;id || $bp-&gt;current_action != 'groups' || $bp-&gt;action_variables[0] != 'feed' )
</ins><span class="cx">                 return false;
</span><span class="cx"> 
</span><span class="cx">         $wp_query-&gt;is_404 = false;
</span></span></pre></div>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-core/bp-core-templatetags.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -513,33 +513,23 @@
</span><span class="cx"> function bp_get_options_nav() {
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><del>-        /***
-         * Only render this navigation when the logged in user is looking at one of their own pages, or we are using it to display nav
-         * menus for something like a group, or event.
-         */
-        if ( bp_is_my_profile() || $bp-&gt;is_single_item ) {
-                if ( count( $bp-&gt;bp_options_nav[$bp-&gt;current_component] ) &lt; 1 )
-                        return false;
</del><ins>+        if ( count( $bp-&gt;bp_options_nav[$bp-&gt;current_component] ) &lt; 1 )
+                return false;
</ins><span class="cx"> 
</span><del>-                /* Loop through each navigation item */
-                foreach ( $bp-&gt;bp_options_nav[$bp-&gt;current_component] as $subnav_item ) {
-                        if ( !$subnav_item['user_has_access'] )
-                                continue;
</del><ins>+        /* Loop through each navigation item */
+        foreach ( $bp-&gt;bp_options_nav[$bp-&gt;current_component] as $subnav_item ) {
+                if ( !$subnav_item['user_has_access'] )
+                        continue;
</ins><span class="cx"> 
</span><del>-                        /* If the current action or an action variable matches the nav item id, then add a highlight CSS class. */
-                        if ( $subnav_item['slug'] == $bp-&gt;current_action ) {
-                                $selected = ' class=&quot;current selected&quot;';
-                        } else {
-                                $selected = '';
-                        }
-
-                        /* echo out the final list item */
-                        echo apply_filters( 'bp_get_options_nav_' . $subnav_item['css_id'], '&lt;li id=&quot;' . $subnav_item['css_id'] . '-personal-li&quot; ' . $selected . '&gt;&lt;a id=&quot;' . $subnav_item['css_id'] . '&quot; href=&quot;' . $subnav_item['link'] . '&quot;&gt;' . $subnav_item['name'] . '&lt;/a&gt;&lt;/li&gt;', $subnav_item );
</del><ins>+                /* If the current action or an action variable matches the nav item id, then add a highlight CSS class. */
+                if ( $subnav_item['slug'] == $bp-&gt;current_action ) {
+                        $selected = ' class=&quot;current selected&quot;';
+                } else {
+                        $selected = '';
</ins><span class="cx">                 }
</span><del>-        } else {
-                /* If we're using the classic template structure, show the displayed user nav instead */
-                if ( 'bp-sn-parent' == basename( TEMPLATEPATH ) || defined( 'BP_CLASSIC_TEMPLATE_STRUCTURE' ) )
-                        bp_get_displayed_user_nav();
</del><ins>+
+                /* echo out the final list item */
+                echo apply_filters( 'bp_get_options_nav_' . $subnav_item['css_id'], '&lt;li id=&quot;' . $subnav_item['css_id'] . '-personal-li&quot; ' . $selected . '&gt;&lt;a id=&quot;' . $subnav_item['css_id'] . '&quot; href=&quot;' . $subnav_item['link'] . '&quot;&gt;' . $subnav_item['name'] . '&lt;/a&gt;&lt;/li&gt;', $subnav_item );
</ins><span class="cx">         }
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpcorephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-core.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -1476,7 +1476,6 @@
</span><span class="cx">         return apply_filters( 'bp_core_bp_core_number_format', number_format( $number, $decimals ), $number, $decimals );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> /**
</span><span class="cx">  * bp_core_get_all_posts_for_user()
</span><span class="cx">  *
</span><span class="lines">@@ -1496,7 +1495,6 @@
</span><span class="cx">         return apply_filters( 'bp_core_get_all_posts_for_user', $wpdb-&gt;get_col( $wpdb-&gt;prepare( &quot;SELECT post_id FROM $wpdb-&gt;posts WHERE post_author = %d AND post_status = 'publish' AND post_type = 'post'&quot;, $user_id ) ) );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-
</del><span class="cx"> /**
</span><span class="cx">  * bp_core_get_site_path()
</span><span class="cx">  *
</span></span></pre></div>
<a id="trunkbpmessagesbpmessagestemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-messages/bp-messages-templatetags.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-messages/bp-messages-templatetags.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-messages/bp-messages-templatetags.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -111,7 +111,7 @@
</span><span class="cx">                 $this-&gt;thread = $this-&gt;next_thread();
</span><span class="cx"> 
</span><span class="cx">                 $last_message_index = count($this-&gt;thread-&gt;messages) - 1;
</span><del>-                $this-&gt;thread-&gt;messages = array_reverse( $this-&gt;thread-&gt;messages );
</del><ins>+                $this-&gt;thread-&gt;messages = array_reverse( (array)$this-&gt;thread-&gt;messages );
</ins><span class="cx"> 
</span><span class="cx">                 /* Set up the last message data */
</span><span class="cx">                 if ( count($this-&gt;thread-&gt;messages) &gt; 1 ) {
</span></span></pre></div>
<a id="trunkbpthemesbpdefault_incajaxphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/ajax.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/ajax.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-themes/bp-default/_inc/ajax.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -182,13 +182,13 @@
</span><span class="cx">                                 case 'friends':
</span><span class="cx">                                         $friend_ids = implode( ',', friends_get_friend_user_ids( $bp-&gt;loggedin_user-&gt;id ) );
</span><span class="cx">                                         $query_string = 'user_id=' . $friend_ids;
</span><del>-                                        $feed_url = $bp-&gt;loggedin_user-&gt;domain . BP_ACTIVITY_SLUG . '/my-friends/feed/';
</del><ins>+                                        $feed_url = $bp-&gt;loggedin_user-&gt;domain . BP_ACTIVITY_SLUG . '/friends/feed/';
</ins><span class="cx">                                         break;
</span><span class="cx">                                 case 'groups':
</span><span class="cx">                                         $groups = groups_get_user_groups( $bp-&gt;loggedin_user-&gt;id );
</span><span class="cx">                                         $group_ids = implode( ',', $groups['groups'] );
</span><span class="cx">                                         $query_string = 'object=groups&amp;primary_id=' . $group_ids . '&amp;show_hidden=1';
</span><del>-                                        $feed_url = $bp-&gt;loggedin_user-&gt;domain . BP_ACTIVITY_SLUG . '/my-groups/feed/';
</del><ins>+                                        $feed_url = $bp-&gt;loggedin_user-&gt;domain . BP_ACTIVITY_SLUG . '/groups/feed/';
</ins><span class="cx">                                         break;
</span><span class="cx">                                 case 'favorites':
</span><span class="cx">                                         $favs = bp_activity_get_user_favorites( $bp-&gt;loggedin_user-&gt;id );
</span></span></pre></div>
<a id="trunkbpthemesbpdefault_inccssdefaultcss"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/css/default.css (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/css/default.css        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-themes/bp-default/_inc/css/default.css        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -579,7 +579,7 @@
</span><span class="cx">         height: 16px;
</span><span class="cx"> }
</span><span class="cx">         div.pagination#user-pag, .friends div.pagination,
</span><del>-        .mygroups div.pagination, .myblogs div.pagination {
</del><ins>+        .mygroups div.pagination, .myblogs div.pagination, noscript div.pagination {
</ins><span class="cx">                 background: #f8f8f8;
</span><span class="cx">                 border: none;
</span><span class="cx">                 padding: 8px 15px;
</span><span class="lines">@@ -953,6 +953,7 @@
</span><span class="cx"> }
</span><span class="cx">         #item-body form#whats-new-form {
</span><span class="cx">                 margin-top: 20px;
</span><ins>+                border: none;
</ins><span class="cx">         }
</span><span class="cx"> 
</span><span class="cx">         .home-page form#whats-new-form {
</span></span></pre></div>
<a id="trunkbpthemesbpdefault_incglobaljs"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/global.js (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/global.js        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-themes/bp-default/_inc/global.js        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -1058,7 +1058,7 @@
</span><span class="cx">                 j(this).removeClass('selected');
</span><span class="cx">         });
</span><span class="cx">         j('li#activity-' + scope + ', div.item-list-tabs li.current').addClass('selected');
</span><del>-        j('div.item-list-tabs li.selected').addClass('loading');
</del><ins>+        j('div#object-nav.item-list-tabs li.selected, div.activity-type-tabs li.selected').addClass('loading');
</ins><span class="cx">         j('#activity-filter-select select option[value=' + filter + ']').attr( 'selected', 'selected' );
</span><span class="cx"> 
</span><span class="cx">         /* Reload the activity stream based on the selection */
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultactivityactivityloopphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/activity/activity-loop.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/activity/activity-loop.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-themes/bp-default/activity/activity-loop.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -4,6 +4,14 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;?php if ( bp_has_activities( bp_ajax_querystring() ) ) : ?&gt;
</span><span class="cx"> 
</span><ins>+        &lt;?php /* Show pagination if JS is not enabled, since the &quot;Load More&quot; link will do nothing */ ?&gt;
+        &lt;noscript&gt;
+                &lt;div class=&quot;pagination&quot;&gt;
+                        &lt;div class=&quot;pag-count&quot;&gt;&lt;?php bp_activity_pagination_count() ?&gt;&lt;/div&gt;
+                        &lt;div class=&quot;pagination-links&quot;&gt;&lt;?php bp_activity_pagination_links() ?&gt;&lt;/div&gt;
+                &lt;/div&gt;
+        &lt;/noscript&gt;
+
</ins><span class="cx">         &lt;?php if ( empty( $_POST['page'] ) ) : ?&gt;
</span><span class="cx">                 &lt;ul id=&quot;activity-stream&quot; class=&quot;activity-list item-list&quot;&gt;
</span><span class="cx">         &lt;?php endif; ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultactivityindexphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/activity/index.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/activity/index.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-themes/bp-default/activity/index.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -17,27 +17,27 @@
</span><span class="cx"> 
</span><span class="cx">                         &lt;div class=&quot;item-list-tabs activity-type-tabs&quot;&gt;
</span><span class="cx">                                 &lt;ul&gt;
</span><del>-                                        &lt;li class=&quot;selected&quot; id=&quot;activity-all&quot;&gt;&lt;a href=&quot;&lt;?php bp_root_domain() ?&gt;&quot; title=&quot;&lt;?php _e( 'The public activity for everyone on this site.', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_site_member_count() ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</del><ins>+                                        &lt;li class=&quot;selected&quot; id=&quot;activity-all&quot;&gt;&lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' ?&gt;&quot; title=&quot;&lt;?php _e( 'The public activity for everyone on this site.', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_site_member_count() ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx"> 
</span><span class="cx">                                         &lt;?php if ( is_user_logged_in() ) : ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                                 &lt;?php if ( function_exists( 'bp_get_total_friend_count' ) ) : ?&gt;
</span><span class="cx">                                                         &lt;?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?&gt;
</span><del>-                                                                &lt;li id=&quot;activity-friends&quot;&gt;&lt;a href=&quot;&lt;?php echo site_url( BP_ACTIVITY_SLUG . '/#friends/' ) ?&gt;&quot; title=&quot;&lt;?php _e( 'The activity of my friends only.', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</del><ins>+                                                                &lt;li id=&quot;activity-friends&quot;&gt;&lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/friends/' ?&gt;&quot; title=&quot;&lt;?php _e( 'The activity of my friends only.', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( 'My Friends (%s)', 'buddypress' ), bp_get_total_friend_count( bp_loggedin_user_id() ) ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx">                                                         &lt;?php endif; ?&gt;
</span><span class="cx">                                                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                                 &lt;?php if ( function_exists( 'bp_get_total_group_count_for_user' ) ) : ?&gt;
</span><span class="cx">                                                         &lt;?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?&gt;
</span><del>-                                                                &lt;li id=&quot;activity-groups&quot;&gt;&lt;a href=&quot;&lt;?php echo site_url( BP_ACTIVITY_SLUG . '/#groups/' ) ?&gt;&quot; title=&quot;&lt;?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</del><ins>+                                                                &lt;li id=&quot;activity-groups&quot;&gt;&lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/groups/' ?&gt;&quot; title=&quot;&lt;?php _e( 'The activity of groups I am a member of.', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( 'My Groups (%s)', 'buddypress' ), bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx">                                                         &lt;?php endif; ?&gt;
</span><span class="cx">                                                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                                 &lt;?php if ( bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) : ?&gt;
</span><del>-                                                        &lt;li id=&quot;activity-favorites&quot;&gt;&lt;a href=&quot;&lt;?php echo site_url( BP_ACTIVITY_SLUG . '/#favorites/' ) ?&gt;&quot; title=&quot;&lt;?php _e( &quot;The activity I've marked as a favorite.&quot;, 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( 'My Favorites (&lt;span&gt;%s&lt;/span&gt;)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</del><ins>+                                                        &lt;li id=&quot;activity-favorites&quot;&gt;&lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/favorites/' ?&gt;&quot; title=&quot;&lt;?php _e( &quot;The activity I've marked as a favorite.&quot;, 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( 'My Favorites (&lt;span&gt;%s&lt;/span&gt;)', 'buddypress' ), bp_get_total_favorite_count_for_user( bp_loggedin_user_id() ) ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx">                                                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><del>-                                                &lt;li id=&quot;activity-atme&quot;&gt;&lt;a href=&quot;&lt;?php echo site_url( BP_ACTIVITY_SLUG . '/#atme/' ) ?&gt;&quot; title=&quot;&lt;?php _e( 'Activity that I have been mentioned in.', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() ) ?&gt;&lt;?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?&gt; &lt;strong&gt;&lt;?php printf( __( '(%s new)', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) ?&gt;&lt;/strong&gt;&lt;?php endif; ?&gt;&lt;/a&gt;&lt;/li&gt;
</del><ins>+                                                &lt;li id=&quot;activity-atme&quot;&gt;&lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/mentions/' ?&gt;&quot; title=&quot;&lt;?php _e( 'Activity that I have been mentioned in.', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php printf( __( '@%s Mentions', 'buddypress' ), bp_get_loggedin_user_username() ) ?&gt;&lt;?php if ( bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) : ?&gt; &lt;strong&gt;&lt;?php printf( __( '(%s new)', 'buddypress' ), bp_get_total_mention_count_for_user( bp_loggedin_user_id() ) ) ?&gt;&lt;/strong&gt;&lt;?php endif; ?&gt;&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx"> 
</span><span class="cx">                                         &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultfunctionsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/functions.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/functions.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-themes/bp-default/functions.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -186,8 +186,6 @@
</span><span class="cx">         bp_core_remove_subnav_item( $bp-&gt;blogs-&gt;slug, 'my-blogs' );
</span><span class="cx">         bp_core_remove_subnav_item( $bp-&gt;blogs-&gt;slug, 'recent-posts' );
</span><span class="cx">         bp_core_remove_subnav_item( $bp-&gt;blogs-&gt;slug, 'recent-comments' );
</span><del>-        bp_core_remove_subnav_item( $bp-&gt;activity-&gt;slug, 'just-me' );
-        bp_core_remove_subnav_item( $bp-&gt;activity-&gt;slug, 'my-friends' );
</del><span class="cx"> }
</span><span class="cx"> add_action( 'init', 'bp_dtheme_remove_redundant' );
</span><span class="cx"> 
</span><span class="lines">@@ -216,6 +214,7 @@
</span><span class="cx"> }
</span><span class="cx"> add_action( 'wp_footer', 'bp_dtheme_js_terms' );
</span><span class="cx"> 
</span><ins>+
</ins><span class="cx"> /* Show a notice when the theme is activated - workaround by Ozh (http://old.nabble.com/Activation-hook-exist-for-themes--td25211004.html) */
</span><span class="cx"> if ( is_admin() &amp;&amp; isset($_GET['activated'] ) &amp;&amp; $pagenow == &quot;themes.php&quot; ) {
</span><span class="cx">         add_action( 'admin_notices', 'bp_dtheme_show_notice' );
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssingleactivityphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/activity.php (2484 => 2485)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/activity.php        2010-01-30 16:53:52 UTC (rev 2484)
+++ trunk/bp-themes/bp-default/members/single/activity.php        2010-01-31 09:45:19 UTC (rev 2485)
</span><span class="lines">@@ -2,10 +2,6 @@
</span><span class="cx">         &lt;ul&gt;
</span><span class="cx">                 &lt;?php bp_get_options_nav() ?&gt;
</span><span class="cx"> 
</span><del>-                &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_member_activity_syndication_options' ) ?&gt;
-
</del><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>