<!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][3698] trunk/bp-themes/bp-default: Swap function_exists calls to bp_is_active in BP-Default.</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>3698</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2011-01-11 17:41:53 +0000 (Tue, 11 Jan 2011)</dd>
</dl>

<h3>Log Message</h3>
<pre>Swap function_exists calls to bp_is_active in BP-Default. See #2718</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpthemesbpdefault_incajaxphp">trunk/bp-themes/bp-default/_inc/ajax.php</a></li>
<li><a href="#trunkbpthemesbpdefaultactivityindexphp">trunk/bp-themes/bp-default/activity/index.php</a></li>
<li><a href="#trunkbpthemesbpdefaultactivitypostformphp">trunk/bp-themes/bp-default/activity/post-form.php</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupscreatephp">trunk/bp-themes/bp-default/groups/create.php</a></li>
<li><a href="#trunkbpthemesbpdefaultgroupssingleadminphp">trunk/bp-themes/bp-default/groups/single/admin.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmembersindexphp">trunk/bp-themes/bp-default/members/index.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssinglememberheaderphp">trunk/bp-themes/bp-default/members/single/member-header.php</a></li>
<li><a href="#trunkbpthemesbpdefaultmemberssingleprofileprofileloopphp">trunk/bp-themes/bp-default/members/single/profile/profile-loop.php</a></li>
<li><a href="#trunkbpthemesbpdefaultregistrationregisterphp">trunk/bp-themes/bp-default/registration/register.php</a></li>
<li><a href="#trunkbpthemesbpdefaultsidebarphp">trunk/bp-themes/bp-default/sidebar.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpthemesbpdefault_incajaxphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/_inc/ajax.php (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/_inc/ajax.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/_inc/ajax.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -146,10 +146,10 @@
</span><span class="cx">                 return false;
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-        if ( empty( $_POST['object'] ) &amp;&amp; function_exists( 'bp_activity_post_update' ) ) {
</del><ins>+        if ( empty( $_POST['object'] ) &amp;&amp; bp_is_active( 'activity' ) ) {
</ins><span class="cx">                 $activity_id = bp_activity_post_update( array( 'content' =&gt; $_POST['content'] ) );
</span><span class="cx">         } elseif ( $_POST['object'] == 'groups' ) {
</span><del>-                if ( !empty( $_POST['item_id'] ) &amp;&amp; function_exists( 'groups_post_update' ) )
</del><ins>+                if ( !empty( $_POST['item_id'] ) &amp;&amp; bp_is_active( 'groups' ) )
</ins><span class="cx">                         $activity_id = groups_post_update( array( 'content' =&gt; $_POST['content'], 'group_id' =&gt; $_POST['item_id'] ) );
</span><span class="cx">         } else
</span><span class="cx">                 $activity_id = apply_filters( 'bp_activity_custom_update', $_POST['object'], $_POST['item_id'], $_POST['content'] );
</span><span class="lines">@@ -588,7 +588,7 @@
</span><span class="cx">                         $user_ids = apply_filters( 'bp_core_autocomplete_ids', $user_ids, $_GET['q'], $limit );
</span><span class="cx">                 }
</span><span class="cx">         } else {
</span><del>-                if ( function_exists( 'friends_search_friends' ) ) {
</del><ins>+                if ( bp_is_active( 'friends' ) ) {
</ins><span class="cx">                         $users = friends_search_friends( $_GET['q'], $bp-&gt;loggedin_user-&gt;id, $limit, 1 );
</span><span class="cx"> 
</span><span class="cx">                         // Keeping the bp_friends_autocomplete_list filter for backward compatibility
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultactivityindexphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/activity/index.php (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/activity/index.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/activity/index.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx"> 
</span><span class="cx">                                                 &lt;?php do_action( 'bp_before_activity_type_tab_friends' ) ?&gt;
</span><span class="cx"> 
</span><del>-                                                &lt;?php if ( function_exists( 'bp_get_total_friend_count' ) ) : ?&gt;
</del><ins>+                                                &lt;?php if ( bp_is_active( 'friends' ) ) : ?&gt;
</ins><span class="cx">                                                         &lt;?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?&gt;
</span><span class="cx">                                                                 &lt;li id=&quot;activity-friends&quot;&gt;&lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_FRIENDS_SLUG . '/' ?&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;
</span><span class="cx">                                                         &lt;?php endif; ?&gt;
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx"> 
</span><span class="cx">                                                 &lt;?php do_action( 'bp_before_activity_type_tab_groups' ) ?&gt;
</span><span class="cx"> 
</span><del>-                                                &lt;?php if ( function_exists( 'bp_get_total_group_count_for_user' ) ) : ?&gt;
</del><ins>+                                                &lt;?php if ( bp_is_active( 'groups' ) ) : ?&gt;
</ins><span class="cx">                                                         &lt;?php if ( bp_get_total_group_count_for_user( bp_loggedin_user_id() ) ) : ?&gt;
</span><span class="cx">                                                                 &lt;li id=&quot;activity-groups&quot;&gt;&lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() . BP_ACTIVITY_SLUG . '/' . BP_GROUPS_SLUG . '/' ?&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;
</span><span class="cx">                                                         &lt;?php endif; ?&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultactivitypostformphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/activity/post-form.php (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/activity/post-form.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/activity/post-form.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -33,7 +33,7 @@
</span><span class="cx">                                 &lt;input type=&quot;submit&quot; name=&quot;aw-whats-new-submit&quot; id=&quot;aw-whats-new-submit&quot; value=&quot;&lt;?php _e( 'Post Update', 'buddypress' ) ?&gt;&quot; /&gt;
</span><span class="cx">                         &lt;/div&gt;
</span><span class="cx"> 
</span><del>-                        &lt;?php if ( function_exists('bp_has_groups') &amp;&amp; !bp_is_my_profile() &amp;&amp; !bp_is_group() ) : ?&gt;
</del><ins>+                        &lt;?php if ( bp_is_active( 'groups' ) &amp;&amp; !bp_is_my_profile() &amp;&amp; !bp_is_group() ) : ?&gt;
</ins><span class="cx">                                 &lt;div id=&quot;whats-new-post-in-box&quot;&gt;
</span><span class="cx">                                         &lt;?php _e( 'Post in', 'buddypress' ) ?&gt;:
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultgroupscreatephp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/create.php (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/create.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/groups/create.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -40,13 +40,7 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;?php do_action( 'bp_before_group_settings_creation_step' ); ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php if ( function_exists('bp_wire_install') ) : ?&gt;
-                                        &lt;div class=&quot;checkbox&quot;&gt;
-                                                &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;group-show-wire&quot; id=&quot;group-show-wire&quot; value=&quot;1&quot;&lt;?php if ( bp_get_new_group_enable_wire() ) { ?&gt; checked=&quot;checked&quot;&lt;?php } ?&gt; /&gt; &lt;?php _e('Enable comment wire', 'buddypress') ?&gt;&lt;/label&gt;
-                                        &lt;/div&gt;
-                                        &lt;?php endif; ?&gt;
-
-                                        &lt;?php if ( function_exists('bp_forums_is_installed_correctly') ) : ?&gt;
</del><ins>+                                        &lt;?php if ( bp_is_active( 'forums' ) ) : ?&gt;
</ins><span class="cx">                                                 &lt;?php if ( bp_forums_is_installed_correctly() ) : ?&gt;
</span><span class="cx">                                                         &lt;div class=&quot;checkbox&quot;&gt;
</span><span class="cx">                                                                 &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;group-show-forum&quot; id=&quot;group-show-forum&quot; value=&quot;1&quot;&lt;?php if ( bp_get_new_group_enable_forum() ) { ?&gt; checked=&quot;checked&quot;&lt;?php } ?&gt; /&gt; &lt;?php _e('Enable discussion forum', 'buddypress') ?&gt;&lt;/label&gt;
</span><span class="lines">@@ -156,7 +150,7 @@
</span><span class="cx"> 
</span><span class="cx">                                         &lt;?php do_action( 'bp_before_group_invites_creation_step' ); ?&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php if ( function_exists( 'bp_get_total_friend_count' ) &amp;&amp; bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?&gt;
</del><ins>+                                        &lt;?php if ( bp_is_active( 'friends' ) &amp;&amp; bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?&gt;
</ins><span class="cx">                                                 &lt;div class=&quot;left-menu&quot;&gt;
</span><span class="cx"> 
</span><span class="cx">                                                         &lt;div id=&quot;invite-list&quot;&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultgroupssingleadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/groups/single/admin.php (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/groups/single/admin.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/groups/single/admin.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -39,16 +39,8 @@
</span><span class="cx"> 
</span><span class="cx">         &lt;?php do_action( 'bp_before_group_settings_admin' ); ?&gt;
</span><span class="cx"> 
</span><del>-        &lt;?php if ( function_exists('bp_wire_install') ) : ?&gt;
</del><ins>+        &lt;?php if ( bp_is_active( 'forums' ) ) : ?&gt;
</ins><span class="cx"> 
</span><del>-                &lt;div class=&quot;checkbox&quot;&gt;
-                        &lt;label&gt;&lt;input type=&quot;checkbox&quot; name=&quot;group-show-wire&quot; id=&quot;group-show-wire&quot; value=&quot;1&quot;&lt;?php bp_group_show_wire_setting() ?&gt;/&gt; &lt;?php _e( 'Enable comment wire', 'buddypress' ) ?&gt;&lt;/label&gt;
-                &lt;/div&gt;
-
-        &lt;?php endif; ?&gt;
-
-        &lt;?php if ( function_exists('bp_forums_is_installed_correctly') ) : ?&gt;
-
</del><span class="cx">                 &lt;?php if ( bp_forums_is_installed_correctly() ) : ?&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;div class=&quot;checkbox&quot;&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmembersindexphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/index.php (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/index.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/members/index.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -17,7 +17,7 @@
</span><span class="cx">                                 &lt;ul&gt;
</span><span class="cx">                                         &lt;li class=&quot;selected&quot; id=&quot;members-all&quot;&gt;&lt;a href=&quot;&lt;?php bp_root_domain() ?&gt;&quot;&gt;&lt;?php printf( __( 'All Members (%s)', 'buddypress' ), bp_get_total_member_count() ) ?&gt;&lt;/a&gt;&lt;/li&gt;
</span><span class="cx"> 
</span><del>-                                        &lt;?php if ( is_user_logged_in() &amp;&amp; function_exists( 'bp_get_total_friend_count' ) &amp;&amp; bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?&gt;
</del><ins>+                                        &lt;?php if ( is_user_logged_in() &amp;&amp; bp_is_active( 'friends' ) &amp;&amp; bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?&gt;
</ins><span class="cx">                                                 &lt;li id=&quot;members-personal&quot;&gt;&lt;a href=&quot;&lt;?php echo bp_loggedin_user_domain() . BP_FRIENDS_SLUG . '/my-friends/' ?&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;
</span><span class="cx">                                         &lt;?php endif; ?&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 (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/member-header.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/members/single/member-header.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -14,7 +14,7 @@
</span><span class="cx">         &lt;?php do_action( 'bp_before_member_header_meta' ) ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;div id=&quot;item-meta&quot;&gt;
</span><del>-                &lt;?php if ( function_exists( 'bp_activity_latest_update' ) ) : ?&gt;
</del><ins>+                &lt;?php if ( bp_is_active( 'activity' ) ) : ?&gt;
</ins><span class="cx">                         &lt;div id=&quot;latest-update&quot;&gt;
</span><span class="cx">                                 &lt;?php bp_activity_latest_update( bp_displayed_user_id() ) ?&gt;
</span><span class="cx">                         &lt;/div&gt;
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultmemberssingleprofileprofileloopphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/members/single/profile/profile-loop.php (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/members/single/profile/profile-loop.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/members/single/profile/profile-loop.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -1,6 +1,6 @@
</span><span class="cx"> &lt;?php do_action( 'bp_before_profile_loop_content' ) ?&gt;
</span><span class="cx"> 
</span><del>-&lt;?php if ( function_exists('xprofile_get_profile') ) : ?&gt;
</del><ins>+&lt;?php if ( bp_is_active( 'xprofile' ) ) : ?&gt;
</ins><span class="cx"> 
</span><span class="cx">         &lt;?php if ( bp_has_profile() ) : ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultregistrationregisterphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/registration/register.php (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/registration/register.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/registration/register.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -56,7 +56,7 @@
</span><span class="cx">                                                 &lt;h4&gt;&lt;?php _e( 'Profile Details', 'buddypress' ) ?&gt;&lt;/h4&gt;
</span><span class="cx"> 
</span><span class="cx">                                                 &lt;?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?&gt;
</span><del>-                                                &lt;?php if ( function_exists( 'bp_has_profile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?&gt;
</del><ins>+                                                &lt;?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( 'profile_group_id=1' ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?&gt;
</ins><span class="cx"> 
</span><span class="cx">                                                 &lt;?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkbpthemesbpdefaultsidebarphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-themes/bp-default/sidebar.php (3697 => 3698)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-themes/bp-default/sidebar.php        2011-01-10 21:30:32 UTC (rev 3697)
+++ trunk/bp-themes/bp-default/sidebar.php        2011-01-11 17:41:53 UTC (rev 3698)
</span><span class="lines">@@ -22,7 +22,7 @@
</span><span class="cx"> 
</span><span class="cx">                 &lt;?php do_action( 'bp_after_sidebar_me' ) ?&gt;
</span><span class="cx"> 
</span><del>-                &lt;?php if ( function_exists( 'bp_message_get_notices' ) ) : ?&gt;
</del><ins>+                &lt;?php if ( bp_is_active( 'messages' ) ) : ?&gt;
</ins><span class="cx">                         &lt;?php bp_message_get_notices(); /* Site wide notices to all users */ ?&gt;
</span><span class="cx">                 &lt;?php endif; ?&gt;
</span><span class="cx"> 
</span><span class="lines">@@ -60,7 +60,7 @@
</span><span class="cx">                 &lt;div id=&quot;forum-directory-tags&quot; class=&quot;widget tags&quot;&gt;
</span><span class="cx"> 
</span><span class="cx">                         &lt;h3 class=&quot;widgettitle&quot;&gt;&lt;?php _e( 'Forum Topic Tags', 'buddypress' ) ?&gt;&lt;/h3&gt;
</span><del>-                        &lt;?php if ( function_exists('bp_forums_tag_heat_map') ) : ?&gt;
</del><ins>+                        &lt;?php if ( bp_is_active( 'forums' ) ) : ?&gt;
</ins><span class="cx">                                 &lt;div id=&quot;tag-text&quot;&gt;&lt;?php bp_forums_tag_heat_map(); ?&gt;&lt;/div&gt;
</span><span class="cx">                         &lt;?php endif; ?&gt;
</span><span class="cx">                 &lt;/div&gt;
</span></span></pre>
</div>
</div>

</body>
</html>