Hide Ajax chat link

<?php

function bigm_chat_switch(){
global $bp;
$the_component_name = $bp->current_component;
$the_action_name = $bp->current_action;
if($the_component_name != 'groups' && bp_displayed_user_id() != get_current_user_id()){
?>
<style>
<!--
#user-chat {display:none;}
-->
</style>
<?php
}
if($the_action_name == 'my-groups'){
?>
<style>
<!--
#user-chat {display:none;}
-->
</style>
<?php
}
}
add_action('bp_after_footer','bigm_chat_switch');
?>

0 Comments

You must be logged in to post a comment.