<!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" />
<title>[BuddyPress][3989] trunk: Switch setting from bp-deactivated-components to bp-active-components.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { 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 #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg > ul, #logmsg > ol { margin-left: 0; margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#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>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd>3989</dd>
<dt>Author</dt> <dd>johnjamesjacoby</dd>
<dt>Date</dt> <dd>2011-02-02 01:26:28 +0000 (Wed, 02 Feb 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Switch setting from bp-deactivated-components to bp-active-components. Adjust some verbiage on the component settings page. Use smarter logic to show/hide possible directory page assignments based on active components.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpcoreadminbpcoreadminphp">trunk/bp-core/admin/bp-core-admin.php</a></li>
<li><a href="#trunkbpcorebpcorebootstrapphp">trunk/bp-core/bp-core-bootstrap.php</a></li>
<li><a href="#trunkbpcorebpcoretemplatephp">trunk/bp-core/bp-core-template.php</a></li>
<li><a href="#trunkbpxprofileadmincssadmindevcss">trunk/bp-xprofile/admin/css/admin.dev.css</a></li>
<li><a href="#trunkbpxprofilebpxprofileadminphp">trunk/bp-xprofile/bp-xprofile-admin.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpcoreadminbpcoreadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/admin/bp-core-admin.php (3988 => 3989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/admin/bp-core-admin.php        2011-02-02 00:30:28 UTC (rev 3988)
+++ trunk/bp-core/admin/bp-core-admin.php        2011-02-02 01:26:28 UTC (rev 3989)
</span><span class="lines">@@ -227,19 +227,21 @@
</span><span class="cx">                         return false;
</span><span class="cx"> 
</span><span class="cx">                 // Settings form submitted, now save the settings. First, set active components
</span><del>-                foreach ( (array)$_POST['bp_components'] as $key =&gt; $value ) {
-                        if ( !(int) $value )
-                                $disabled[$key] = 1;
</del><ins>+                if ( isset( $_POST['bp_components'] ) ) {
+                        $bp-&gt;active_components = stripslashes_deep( $_POST['bp_components'] );
+                        update_site_option( 'bp-active-components', $bp-&gt;active_components );
</ins><span class="cx">                 }
</span><del>-                update_site_option( 'bp-deactivated-components', $disabled );
-                
</del><ins>+
</ins><span class="cx">                 // Then, update the directory pages
</span><del>-                $directory_pages = array();        
-                foreach ( (array)$_POST['bp_pages'] as $key =&gt; $value ) {
-                        if ( !empty( $value ) )
-                                $directory_pages[$key] = (int)$value;
</del><ins>+                if ( isset( $_POST['bp_pages'] ) ) {
+                        $directory_pages = array();
+                        foreach ( (array)$_POST['bp_pages'] as $key =&gt; $value ) {
+                                if ( !empty( $value ) ) {
+                                        $directory_pages[$key] = (int)$value;
+                                }
+                        }
+                        bp_core_update_page_meta( $directory_pages );
</ins><span class="cx">                 }
</span><del>-                bp_core_update_page_meta( $directory_pages );
</del><span class="cx">         } ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;div class=&quot;wrap&quot;&gt;
</span><span class="lines">@@ -262,7 +264,6 @@
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php
</span><span class="cx"> 
</span><del>-                                $disabled_components = get_site_option( 'bp-deactivated-components' );
</del><span class="cx">                                 bp_core_admin_component_options();
</span><span class="cx">                                 bp_core_admin_page_options();
</span><span class="cx"> 
</span><span class="lines">@@ -291,30 +292,34 @@
</span><span class="cx">  */
</span><span class="cx"> function bp_core_admin_component_options() {
</span><span class="cx">         global $bp_wizard;
</span><ins>+
+        $active_components = apply_filters( 'bp_active_components', get_site_option( 'bp-active-components' ) );
</ins><span class="cx">         
</span><del>-        $disabled_components = apply_filters( 'bp_deactivated_components', get_site_option( 'bp-deactivated-components' ) ); 
-        
</del><span class="cx">         // An array of strings looped over to create component setup markup
</span><span class="cx">         $optional_components = array(
</span><span class="cx">                 'xprofile' =&gt; array(
</span><span class="cx">                         'title'       =&gt; __( 'Extended Profiles', 'buddypress' ),
</span><del>-                        'description' =&gt; __( 'Fully editable profile fields allow you to define the fields users can fill in to describe themselves. Tailor profile fields to suit your audience.', 'buddypress' )
</del><ins>+                        'description' =&gt; __( 'Customize your community with fully editable profile fields that allow your users use to uniquely describe themselves.', 'buddypress' )
</ins><span class="cx">                 ),
</span><ins>+                'settings' =&gt; array(
+                        'title'       =&gt; __( 'Account Settings', 'buddypress' ),
+                        'description' =&gt; __( 'Allow your users to modify their account and notification settings directly from within their profiles.', 'buddypress' )
+                ),
</ins><span class="cx">                 'friends' =&gt; array(
</span><span class="cx">                         'title'       =&gt; __( 'Friend Connections', 'buddypress' ),
</span><del>-                        'description' =&gt; __( 'Let your users make connections so they can track the activity of others, or filter on only those users they care about the most.', 'buddypress' )
</del><ins>+                        'description' =&gt; __( 'Let your users make connections so they can track the activity of others and focus on the people they care about the most.', 'buddypress' )
</ins><span class="cx">                 ),
</span><span class="cx">                 'messages' =&gt; array(
</span><span class="cx">                         'title'              =&gt; __( 'Private Messaging', 'buddypress' ),
</span><del>-                        'description' =&gt; __( 'Private messaging will allow your users to talk to each other directly, and in private. Not just limited to one on one discussions, your users can send messages to multiple recipients.', 'buddypress' )
</del><ins>+                        'description' =&gt; __( 'Allow your users to talk to each other directly and in private. They are not just limited to one-on-one discussions, and can send messages to multiple recipients.', 'buddypress' )
</ins><span class="cx">                 ),
</span><span class="cx">                 'activity' =&gt; array(
</span><span class="cx">                         'title'       =&gt; __( 'Activity Streams', 'buddypress' ),
</span><del>-                        'description' =&gt; __( 'Global, personal and group activity streams with threaded commenting, direct posting, favoriting and @mentions. All with full RSS feed and email notification support.', 'buddypress' )
</del><ins>+                        'description' =&gt; __( 'Global, personal, and group activity streams with threaded commenting, direct posting, favoriting and @mentions, all with full RSS feed and email notification support.', 'buddypress' )
</ins><span class="cx">                 ),
</span><span class="cx">                 'groups' =&gt; array(
</span><del>-                        'title'       =&gt; __( 'Extensible Groups', 'buddypress' ),
-                        'description' =&gt; __( 'Powerful public, private or hidden groups allow your users to break the discussion down into specific topics with a separate activity stream and member listing.', 'buddypress' )
</del><ins>+                        'title'       =&gt; __( 'User Groups', 'buddypress' ),
+                        'description' =&gt; __( 'Groups allow your users to organize themselves into specific public, private or hidden sections with a separate activity stream and member listing.', 'buddypress' )
</ins><span class="cx">                 ),
</span><span class="cx">                 'forums' =&gt; array(
</span><span class="cx">                         'title'       =&gt; __( 'Discussion Forums', 'buddypress' ),
</span><span class="lines">@@ -349,8 +354,8 @@
</span><span class="cx">                                         &lt;th scope=&quot;row&quot;&gt;&lt;?php echo esc_html( $labels['title'] ); ?&gt;&lt;/th&gt;
</span><span class="cx"> 
</span><span class="cx">                                         &lt;td&gt;
</span><del>-                                                &lt;label for=&quot;bp_components[bp-&lt;?php echo esc_attr( $name ); ?&gt;.php]&quot;&gt;
-                                                        &lt;input type=&quot;checkbox&quot; name=&quot;bp_components[bp-&lt;?php echo esc_attr( $name ); ?&gt;.php]&quot; value=&quot;1&quot;&lt;?php if ( !isset( $disabled_components['bp-' . esc_attr( $name ) . '.php'] ) ) : ?&gt; checked=&quot;checked&quot;&lt;?php endif ?&gt; /&gt;
</del><ins>+                                                &lt;label for=&quot;bp_components[&lt;?php echo esc_attr( $name ); ?&gt;]&quot;&gt;
+                                                        &lt;input type=&quot;checkbox&quot; name=&quot;bp_components[&lt;?php echo esc_attr( $name ); ?&gt;]&quot; value=&quot;1&quot;&lt;?php checked( isset( $active_components[esc_attr( $name )] ) ); ?&gt; /&gt;
</ins><span class="cx"> 
</span><span class="cx">                                                         &lt;?php echo esc_html( $labels['description'] ); ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -361,16 +366,13 @@
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php endforeach ?&gt;
</span><span class="cx"> 
</span><ins>+                        &lt;?php do_action( 'bp_active_external_components' ); ?&gt;
+
</ins><span class="cx">                 &lt;/tbody&gt;
</span><span class="cx">         &lt;/table&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php /* Make sure that the blogs component is deactivated when multisite is shut off */ ?&gt;
-        &lt;?php if ( !is_multisite() ) : ?&gt;
</del><ins>+        &lt;input type=&quot;hidden&quot; name=&quot;bp_components[members]&quot; value=&quot;1&quot; /&gt;
</ins><span class="cx"> 
</span><del>-                &lt;input type=&quot;hidden&quot; name=&quot;bp_components[bp-blogs.php]&quot; value=&quot;0&quot; /&gt;
-
-        &lt;?php endif ?&gt;
-        
</del><span class="cx">         &lt;?php
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -386,31 +388,70 @@
</span><span class="cx"> function bp_core_admin_page_options() {
</span><span class="cx">         // Get the existing WP pages
</span><span class="cx">         $existing_pages = bp_core_get_page_meta();
</span><del>-        
</del><ins>+
</ins><span class="cx">         // An array of strings looped over to create component setup markup
</span><span class="cx">         $directory_pages = array(
</span><del>-                'groups'   =&gt; __( 'Groups Directory', 'buddypress' ),
-                'forums'   =&gt; __( 'Forums Directory', 'buddypress' ),
-                'members'  =&gt; __( 'Members Directory', 'buddypress' ),
-                'activity' =&gt; __( 'Activity', 'buddypress' ),
-                'register' =&gt; __( 'Register', 'buddypress' ),
-                'activate' =&gt; __( 'Activate', 'buddypress' )
</del><ins>+                'members'  =&gt; __( 'Members Directory',  'buddypress' ),
+                'activity' =&gt; __( 'Activity Directory', 'buddypress' ),
+                'groups'   =&gt; __( 'Groups Directory',   'buddypress' ),
+                'forums'   =&gt; __( 'Forums Directory',   'buddypress' ),
</ins><span class="cx">         );
</span><span class="cx">         
</span><span class="cx">         if ( is_multisite() )
</span><span class="cx">                 $directory_pages['blogs'] = __( &quot;Blogs Directory&quot;, 'buddypress' ); ?&gt;
</span><span class="cx">         
</span><del>-        &lt;h3&gt;&lt;?php _e( 'Page Setup', 'buddypress' ); ?&gt;&lt;/h3&gt;
</del><ins>+        &lt;h3&gt;&lt;?php _e( 'Directory Pages', 'buddypress' ); ?&gt;&lt;/h3&gt;
</ins><span class="cx">         
</span><del>-        &lt;p&gt;&lt;?php _e( 'Choose the WordPress pages you would like to associate with the following BuddyPress content.', 'buddypress' ); ?&gt;&lt;/p&gt;
-        
-        &lt;p&gt;&lt;?php _e( 'Leaving any of these items unset makes that content inaccessible to visitors, so be sure to fill this section out carefully.', 'buddypress' ); ?&gt;&lt;/p&gt;
-        
</del><ins>+        &lt;p&gt;&lt;?php _e( 'Choose a WordPress Page to associate with each BuddyPress component directory. Setting to &quot;None&quot; will render that page inaccessible.', 'buddypress' ); ?&gt;&lt;/p&gt;
+
</ins><span class="cx">         &lt;table class=&quot;form-table&quot;&gt;
</span><span class="cx">                 &lt;tbody&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php foreach ( $directory_pages as $name =&gt; $label ) : ?&gt;
</span><span class="cx"> 
</span><ins>+                                &lt;?php if ( bp_is_active( $name ) ) : ?&gt;
+
+                                        &lt;tr valign=&quot;top&quot;&gt;
+                                                &lt;th scope=&quot;row&quot;&gt;
+                                                        &lt;label for=&quot;bp_pages[&lt;?php echo esc_attr( $name ) ?&gt;]&quot;&gt;&lt;?php echo esc_html( $label ) ?&gt;&lt;/label&gt;
+                                                &lt;/th&gt;
+
+                                                &lt;td&gt;
+                                                        &lt;?php echo wp_dropdown_pages( array(
+                                                                'name'             =&gt; 'bp_pages[' . esc_attr( $name ) . ']',
+                                                                'echo'             =&gt; false,
+                                                                'show_option_none' =&gt; __( '- None -', 'buddypress' ),
+                                                                'selected'         =&gt; !empty( $existing_pages[$name] ) ? $existing_pages[$name] : false
+                                                        ) ) ?&gt;
+                                                &lt;/td&gt;
+                                        &lt;/tr&gt;
+
+                                &lt;?php endif; ?&gt;
+
+                        &lt;?php endforeach ?&gt;
+
+                        &lt;?php do_action( 'bp_active_external_directories' ); ?&gt;
+
+                &lt;/tbody&gt;
+        &lt;/table&gt;
+        
+        &lt;?php
+
+        // Static pages
+        $static_pages = array(
+                'register' =&gt; __( 'Sign up Page',    'buddypress' ),
+                'activate' =&gt; __( 'Activation Page', 'buddypress' ),
+        ); ?&gt;
+
+        &lt;h3&gt;&lt;?php _e( 'Other Pages', 'buddypress' ); ?&gt;&lt;/h3&gt;
+
+        &lt;p&gt;&lt;?php _e( 'Associate WordPress Pages with the following BuddyPress pages. Setting to &quot;None&quot; will render that page inaccessible.', 'buddypress' ); ?&gt;&lt;/p&gt;
+
+        &lt;table class=&quot;form-table&quot;&gt;
+                &lt;tbody&gt;
+
+                        &lt;?php foreach ( $static_pages as $name =&gt; $label ) : ?&gt;
+
</ins><span class="cx">                                 &lt;tr valign=&quot;top&quot;&gt;
</span><span class="cx">                                         &lt;th scope=&quot;row&quot;&gt;
</span><span class="cx">                                                 &lt;label for=&quot;bp_pages[&lt;?php echo esc_attr( $name ) ?&gt;]&quot;&gt;&lt;?php echo esc_html( $label ) ?&gt;&lt;/label&gt;
</span><span class="lines">@@ -428,9 +469,11 @@
</span><span class="cx"> 
</span><span class="cx">                         &lt;?php endforeach ?&gt;
</span><span class="cx"> 
</span><ins>+                        &lt;?php do_action( 'bp_active_external_pages' ); ?&gt;
+
</ins><span class="cx">                 &lt;/tbody&gt;
</span><span class="cx">         &lt;/table&gt;
</span><del>-        
</del><ins>+
</ins><span class="cx">         &lt;?php
</span><span class="cx"> }
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpcorebpcorebootstrapphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-bootstrap.php (3988 => 3989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-bootstrap.php        2011-02-02 00:30:28 UTC (rev 3988)
+++ trunk/bp-core/bp-core-bootstrap.php        2011-02-02 01:26:28 UTC (rev 3989)
</span><span class="lines">@@ -28,38 +28,38 @@
</span><span class="cx">         do_action( 'bp_core_loaded' );
</span><span class="cx"> 
</span><span class="cx">         // Get a list of deactivated components
</span><del>-        $bp_deactivated = apply_filters( 'bp_deactivated_components', get_site_option( 'bp-deactivated-components' ) );
</del><ins>+        $bp-&gt;active_components = apply_filters( 'bp_active_components', get_site_option( 'bp-active-components' ) );
</ins><span class="cx"> 
</span><span class="cx">         // Activity Streams
</span><del>-        if ( !isset( $bp_deactivated['bp-activity/bp-activity-loader.php'] ) &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-activity/bp-activity-loader.php') )
</del><ins>+        if ( bp_is_active( 'activity') &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-activity/bp-activity-loader.php') )
</ins><span class="cx">                 include( BP_PLUGIN_DIR . '/bp-activity/bp-activity-loader.php' );
</span><span class="cx"> 
</span><span class="cx">         // Blog Tracking
</span><del>-        if ( !isset( $bp_deactivated['bp-blogs/bp-blogs-loader.php'] ) &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-blogs/bp-blogs-loader.php') )
</del><ins>+        if ( bp_is_active( 'blogs') &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-blogs/bp-blogs-loader.php') )
</ins><span class="cx">                 include( BP_PLUGIN_DIR . '/bp-blogs/bp-blogs-loader.php' );
</span><span class="cx"> 
</span><span class="cx">         // bbPress Forum Integration
</span><del>-        if ( !isset( $bp_deactivated['bp-forums/bp-forums-loader.php'] ) &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-forums/bp-forums-loader.php') )
</del><ins>+        if ( bp_is_active( 'forums') &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-forums/bp-forums-loader.php') )
</ins><span class="cx">                 include( BP_PLUGIN_DIR . '/bp-forums/bp-forums-loader.php' );
</span><span class="cx"> 
</span><span class="cx">         // Friend Connections
</span><del>-        if ( !isset( $bp_deactivated['bp-friends/bp-friends-loader.php'] ) &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-friends/bp-friends-loader.php') )
</del><ins>+        if ( bp_is_active( 'friends') &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-friends/bp-friends-loader.php') )
</ins><span class="cx">                 include( BP_PLUGIN_DIR . '/bp-friends/bp-friends-loader.php' );
</span><span class="cx"> 
</span><span class="cx">         // Groups Support
</span><del>-        if ( !isset( $bp_deactivated['bp-groups/bp-groups-loader.php'] ) &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-groups/bp-groups-loader.php') )
</del><ins>+        if ( bp_is_active( 'groups') &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-groups/bp-groups-loader.php') )
</ins><span class="cx">                 include( BP_PLUGIN_DIR . '/bp-groups/bp-groups-loader.php' );
</span><span class="cx"> 
</span><span class="cx">         // Private Messaging
</span><del>-        if ( !isset( $bp_deactivated['bp-messages/bp-messages-loader.php'] ) &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-messages/bp-messages-loader.php') )
</del><ins>+        if ( bp_is_active( 'messages') &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-messages/bp-messages-loader.php') )
</ins><span class="cx">                 include( BP_PLUGIN_DIR . '/bp-messages/bp-messages-loader.php' );
</span><span class="cx"> 
</span><span class="cx">         // Extended Profiles
</span><del>-        if ( !isset( $bp_deactivated['bp-xprofile/bp-xprofile-loader.php'] ) &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-loader.php') )
</del><ins>+        if ( bp_is_active( 'xprofile') &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-loader.php') )
</ins><span class="cx">                 include( BP_PLUGIN_DIR . '/bp-xprofile/bp-xprofile-loader.php' );
</span><span class="cx"> 
</span><span class="cx">         // Member Settings
</span><del>-        if ( !isset( $bp_deactivated['bp-settings/bp-settings-loader.php'] ) &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-settings/bp-settings-loader.php') )
</del><ins>+        if ( bp_is_active( 'settings') &amp;&amp; file_exists( BP_PLUGIN_DIR . '/bp-settings/bp-settings-loader.php') )
</ins><span class="cx">                 include( BP_PLUGIN_DIR . '/bp-settings/bp-settings-loader.php' );
</span><span class="cx"> 
</span><span class="cx">         // Always require BuddyPress Members - It cannot be turned off (yet)
</span></span></pre></div>
<a id="trunkbpcorebpcoretemplatephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-template.php (3988 => 3989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-template.php        2011-02-02 00:30:28 UTC (rev 3988)
+++ trunk/bp-core/bp-core-template.php        2011-02-02 01:26:28 UTC (rev 3989)
</span><span class="lines">@@ -857,9 +857,9 @@
</span><span class="cx"> /** Components ****************************************************************/
</span><span class="cx"> 
</span><span class="cx"> function bp_is_active( $component ) {
</span><del>-        global $bp_deactivated;
</del><ins>+        global $bp;
</ins><span class="cx"> 
</span><del>-        if ( !isset( $bp_deactivated[ 'bp-' . $component . '/bp-' . $component . '-loader.php' ] ) )
</del><ins>+        if ( isset( $bp-&gt;active_components[$component] ) )
</ins><span class="cx">                 return true;
</span><span class="cx"> 
</span><span class="cx">         return false;
</span></span></pre></div>
<a id="trunkbpxprofileadmincssadmindevcss"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/admin/css/admin.dev.css (3988 => 3989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/admin/css/admin.dev.css        2011-02-02 00:30:28 UTC (rev 3988)
+++ trunk/bp-xprofile/admin/css/admin.dev.css        2011-02-02 01:26:28 UTC (rev 3989)
</span><span class="lines">@@ -121,7 +121,6 @@
</span><span class="cx">                 margin-left: 10px;
</span><span class="cx">         }
</span><span class="cx">         .field-group div.actions {
</span><del>-                display: none;
</del><span class="cx">                 position: absolute;
</span><span class="cx">                 right: 20px;
</span><span class="cx">                 top: 0;
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofileadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-admin.php (3988 => 3989)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-admin.php        2011-02-02 00:30:28 UTC (rev 3988)
+++ trunk/bp-xprofile/bp-xprofile-admin.php        2011-02-02 01:26:28 UTC (rev 3989)
</span><span class="lines">@@ -72,7 +72,7 @@
</span><span class="cx">                         if ( !empty( $groups ) ) :
</span><span class="cx">                                 foreach ( $groups as $group ) { ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;li id=&quot;group_&lt;?php echo $group-&gt;id; ?&gt;&quot;&gt;&lt;a href=&quot;#tabs-&lt;?php echo $group-&gt;id; ?&gt;&quot; class=&quot;ui-tab&quot;&gt;&lt;?php echo esc_attr( $group-&gt;name ); ?&gt;&lt;?php if ( !$group-&gt;can_delete ) : ?&gt; &lt;?php _e( '(Core)', 'buddypress'); endif; ?&gt;&lt;/a&gt;&lt;/li&gt;
</del><ins>+                                        &lt;li id=&quot;group_&lt;?php echo $group-&gt;id; ?&gt;&quot;&gt;&lt;a href=&quot;#tabs-&lt;?php echo $group-&gt;id; ?&gt;&quot; class=&quot;ui-tab&quot;&gt;&lt;?php echo esc_attr( $group-&gt;name ); ?&gt;&lt;?php if ( !$group-&gt;can_delete ) : ?&gt; &lt;?php _e( '(Primary)', 'buddypress'); endif; ?&gt;&lt;/a&gt;&lt;/li&gt;
</ins><span class="cx"> 
</span><span class="cx"> &lt;?php                        }
</span><span class="cx">                         endif; ?&gt;
</span><span class="lines">@@ -360,7 +360,7 @@
</span><span class="cx">         $field = $admin_field; ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                                 &lt;fieldset id=&quot;field_&lt;?php echo esc_attr( $field-&gt;id ); ?&gt;&quot; class=&quot;sortable&lt;?php echo ' ' . $field-&gt;type; if ( $class ) echo ' ' . $class; ?&gt;&quot;&gt;
</span><del>-                                                        &lt;legend&gt;&lt;?php bp_the_profile_field_name(); ?&gt; &lt;?php if( !$field-&gt;can_delete ) : ?&gt; &lt;?php _e( '(Core)', 'buddypress' ); endif; ?&gt; &lt;?php if ( bp_get_the_profile_field_is_required() ) : ?&gt;&lt;?php _e( '(required)', 'buddypress' ) ?&gt;&lt;?php endif; ?&gt;&lt;/legend&gt;
</del><ins>+                                                        &lt;legend&gt;&lt;?php bp_the_profile_field_name(); ?&gt; &lt;?php if( !$field-&gt;can_delete ) : ?&gt; &lt;?php _e( '(Primary)', 'buddypress' ); endif; ?&gt; &lt;?php if ( bp_get_the_profile_field_is_required() ) : ?&gt;&lt;?php _e( '(Required)', 'buddypress' ) ?&gt;&lt;?php endif; ?&gt;&lt;/legend&gt;
</ins><span class="cx">                                                         &lt;div class=&quot;field-wrapper&quot;&gt;
</span><span class="cx"> 
</span><span class="cx"> &lt;?php
</span></span></pre>
</div>
</div>

</body>
</html>