@henry
Thank you!
I already tryed al of those options before with no succes.
Kind regards,
Ishanna
@ishanna, this should work for you, if not let me know as I have another version.
<div id="online">
<?php
global $bp;
function check_is_user_online($user_id){
if ( bp_has_members( 'type=online&include='.$user_id) ) return true;
else return false;
}
$this_id = bp_displayed_user_id();
$is_online = check_is_user_online($this_id);
if ($is_online) echo "<img src='http://www.yourweb.com/wp-content/themes/yourtheme/_inc/images/online.png' />";
else{ echo "<img src='http://www.yourweb.com/wp-content/themes/yourtheme/_inc/images/offline.png' />";}
Naijaping
@Naijaping
Where should I paste the code? I tried it in the bp-custom.php file but I get a syntax error.
Kind regards,
Ishanna
Hi guys,
I need exactly the same thing. Have found nothing so far that could be useful.
The code above doesn’t works.
Thanks in advance,
Henry.