<!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] [2184] trunk: Added styles for &quot;updated&quot; messages.</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>2184</dd>
<dt>Author</dt> <dd>apeatling</dd>
<dt>Date</dt> <dd>2009-12-15 15:03:18 +0000 (Tue, 15 Dec 2009)</dd>
</dl>

<h3>Log Message</h3>
<pre>Added styles for &quot;updated&quot; messages. Fixed navigation tab highlighting when viewing a group and member.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpcorebpcoretemplatetagsphp">trunk/bp-core/bp-core-templatetags.php</a></li>
<li><a href="#trunkbpthemesbpdefault_inccssdefaultcss">trunk/bp-themes/bp-default/_inc/css/default.css</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupssingleadminphp">trunk/bp-themes/bp-default/groups/single/admin.php</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupssingleforumphp">trunk/bp-themes/bp-default/groups/single/forum.php</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupssinglerequestmembershipphp">trunk/bp-themes/bp-default/groups/single/request-membership.php</a></li>
<li><a href="#trunkbpthemesbpdefaultheaderphp">trunk/bp-themes/bp-default/header.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssinglehomephp">trunk/bp-themes/bp-default/members/single/home.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssinglememberheaderphp">trunk/bp-themes/bp-default/members/single/member-header.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssinglemessagescomposephp">trunk/bp-themes/bp-default/members/single/messages/compose.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssingleprofilechangeavatarphp">trunk/bp-themes/bp-default/members/single/profile/change-avatar.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpcorebpcoretemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-templatetags.php (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-templatetags.php        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-core/bp-core-templatetags.php        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -1376,6 +1376,15 @@
</span><span class="cx">         return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function bp_is_member() {
+        global $bp;
+
+        if ( $bp-&gt;displayed_user-&gt;id )
+                return true;
+
+        return false;
+}
+
</ins><span class="cx"> function bp_is_user_activity() {
</span><span class="cx">         global $bp;
</span><span class="cx"> 
</span><span class="lines">@@ -1448,6 +1457,15 @@
</span><span class="cx">         return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function bp_is_group() {
+        global $bp;
+
+        if ( BP_GROUPS_SLUG == $bp-&gt;current_component &amp;&amp; $bp-&gt;groups-&gt;current_group )
+                return true;
+
+        return false;
+}
+
</ins><span class="cx"> function bp_is_group_home() {
</span><span class="cx">         global $bp;
</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 (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/css/default.css        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-themes/bp-default/_inc/css/default.css        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -585,6 +585,12 @@
</span><span class="cx">                 border-color: #a71a1a;
</span><span class="cx">         }
</span><span class="cx"> 
</span><ins>+        div#message.updated p {
+                background: #dffcd9;
+                color: #1a9b00;
+                border-color: #c4e9bd;
+        }
+
</ins><span class="cx"> form.standard-form#signup_form div div.error {
</span><span class="cx">         color: white;
</span><span class="cx">         background: red;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultgroupssingleadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/single/admin.php (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/single/admin.php        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-themes/bp-default/groups/single/admin.php        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -8,8 +8,6 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;form action=&quot;&lt;?php bp_group_admin_form_action() ?&gt;&quot; name=&quot;group-settings-form&quot; id=&quot;group-settings-form&quot; class=&quot;standard-form&quot; method=&quot;post&quot; enctype=&quot;multipart/form-data&quot;&gt;
</span><span class="cx"> 
</span><del>-&lt;?php do_action( 'template_notices' ) ?&gt;
-
</del><span class="cx"> &lt;?php /* Edit Group Details */ ?&gt;
</span><span class="cx"> &lt;?php if ( bp_is_group_admin_screen( 'edit-details' ) ) : ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultgroupssingleforumphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/single/forum.php (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/single/forum.php        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-themes/bp-default/groups/single/forum.php        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -1,5 +1,3 @@
</span><del>-&lt;?php do_action( 'template_notices' ) ?&gt;
-
</del><span class="cx"> &lt;?php if ( bp_is_group_forum_topic() ) : ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;?php locate_template( array( 'groups/single/forum/topic.php' ), true ) ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultgroupssinglerequestmembershipphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/single/request-membership.php (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/single/request-membership.php        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-themes/bp-default/groups/single/request-membership.php        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -1,7 +1,5 @@
</span><span class="cx"> &lt;?php do_action( 'bp_before_group_request_membership_content' ) ?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php do_action( 'template_notices' ) // (error/success feedback) ?&gt;
-
</del><span class="cx"> &lt;?php if ( !bp_group_has_requested_membership() ) : ?&gt;
</span><span class="cx">         &lt;p&gt;&lt;?php printf( __( &quot;You are requesting to become a member of the group '%s'.&quot;, &quot;buddypress&quot; ), bp_group_name( false, false ) ); ?&gt;&lt;/p&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/header.php (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/header.php        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-themes/bp-default/header.php        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -38,10 +38,10 @@
</span><span class="cx">                         &lt;ul id=&quot;nav&quot;&gt;
</span><span class="cx">                                 &lt;li&lt;?php if ( bp_is_page( 'home' ) ) : ?&gt; class=&quot;selected&quot;&lt;?php endif; ?&gt;&gt;&lt;a href=&quot;&lt;?php echo get_option('home') ?&gt;&quot; title=&quot;&lt;?php _e( 'Home', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Home', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</span><span class="cx">                                 &lt;li&lt;?php if ( bp_is_page( BP_HOME_BLOG_SLUG ) ) : ?&gt; class=&quot;selected&quot;&lt;?php endif; ?&gt;&gt;&lt;a href=&quot;&lt;?php echo get_option('home') ?&gt;/&lt;?php echo BP_HOME_BLOG_SLUG ?&gt;&quot; title=&quot;&lt;?php _e( 'Blog', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Blog', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</span><del>-                                &lt;li&lt;?php if ( bp_is_page( BP_MEMBERS_SLUG ) ) : ?&gt; class=&quot;selected&quot;&lt;?php endif; ?&gt;&gt;&lt;a href=&quot;&lt;?php echo get_option('home') ?&gt;/&lt;?php echo BP_MEMBERS_SLUG ?&gt;&quot; title=&quot;&lt;?php _e( 'Members', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Members', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</del><ins>+                                &lt;li&lt;?php if ( bp_is_page( BP_MEMBERS_SLUG ) || bp_is_member() ) : ?&gt; class=&quot;selected&quot;&lt;?php endif; ?&gt;&gt;&lt;a href=&quot;&lt;?php echo get_option('home') ?&gt;/&lt;?php echo BP_MEMBERS_SLUG ?&gt;&quot; title=&quot;&lt;?php _e( 'Members', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Members', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx"> 
</span><span class="cx">                                 &lt;?php if ( function_exists( 'groups_install' ) ) : ?&gt;
</span><del>-                                        &lt;li&lt;?php if ( bp_is_page( BP_GROUPS_SLUG ) ) : ?&gt; class=&quot;selected&quot;&lt;?php endif; ?&gt;&gt;&lt;a href=&quot;&lt;?php echo get_option('home') ?&gt;/&lt;?php echo BP_GROUPS_SLUG ?&gt;&quot; title=&quot;&lt;?php _e( 'Groups', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Groups', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</del><ins>+                                        &lt;li&lt;?php if ( bp_is_page( BP_GROUPS_SLUG ) || bp_is_group() ) : ?&gt; class=&quot;selected&quot;&lt;?php endif; ?&gt;&gt;&lt;a href=&quot;&lt;?php echo get_option('home') ?&gt;/&lt;?php echo BP_GROUPS_SLUG ?&gt;&quot; title=&quot;&lt;?php _e( 'Groups', 'buddypress' ) ?&gt;&quot;&gt;&lt;?php _e( 'Groups', 'buddypress' ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx">                                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;?php if ( function_exists( 'groups_install' ) &amp;&amp; ( function_exists( 'bp_forums_setup' ) &amp;&amp; !(int) get_site_option( 'bp-disable-forum-directory' ) ) ) : ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssinglehomephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/home.php (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/home.php        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-themes/bp-default/members/single/home.php        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -10,7 +10,6 @@
</span><span class="cx">                         &lt;/div&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div id=&quot;item-body&quot;&gt;
</span><del>-
</del><span class="cx">                                 &lt;?php if ( 'home' == bp_current_component() || 'activity' == bp_current_component() || !bp_current_component() ) : ?&gt;
</span><span class="cx">                                         &lt;?php locate_template( array( 'members/single/activity.php' ), true ) ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssinglememberheaderphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/member-header.php (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/member-header.php        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-themes/bp-default/members/single/member-header.php        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -26,6 +26,8 @@
</span><span class="cx"> 
</span><span class="cx"> &lt;/div&gt;
</span><span class="cx"> 
</span><ins>+&lt;?php do_action( 'template_notices' ) ?&gt;
+
</ins><span class="cx"> &lt;div class=&quot;item-list-tabs no-ajax&quot; id=&quot;user-nav&quot;&gt;
</span><span class="cx">         &lt;ul&gt;
</span><span class="cx">                 &lt;?php bp_get_user_nav() ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssinglemessagescomposephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/messages/compose.php (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/messages/compose.php        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-themes/bp-default/members/single/messages/compose.php        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -1,5 +1,3 @@
</span><del>-&lt;?php do_action( 'template_notices' ) ?&gt;
-
</del><span class="cx"> &lt;form action=&quot;&lt;?php bp_messages_form_action('compose') ?&gt;&quot; method=&quot;post&quot; id=&quot;send_message_form&quot; class=&quot;standard-form&quot;&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;?php do_action( 'bp_before_messages_compose_content' ) ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssingleprofilechangeavatarphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/profile/change-avatar.php (2183 => 2184)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/profile/change-avatar.php        2009-12-15 15:01:41 UTC (rev 2183)
+++ trunk/bp-themes/bp-default/members/single/profile/change-avatar.php        2009-12-15 15:03:18 UTC (rev 2184)
</span><span class="lines">@@ -1,7 +1,5 @@
</span><span class="cx"> &lt;h3&gt;&lt;?php _e( 'Change Avatar', 'buddypress' ) ?&gt;&lt;/h3&gt;
</span><span class="cx"> 
</span><del>-&lt;?php do_action( 'template_notices' ) ?&gt;
-
</del><span class="cx"> &lt;?php do_action( 'bp_before_profile_avatar_upload_content' ) ?&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;p&gt;&lt;?php _e( 'Your avatar will be used on your profile and throughout the site. If there is a &lt;a href=&quot;http://gravatar.com&quot;&gt;Gravatar&lt;/a&gt; associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress') ?&gt;&lt;/p&gt;
</span></span></pre>
</div>
</div>

</body>
</html>