10
           
            
                
     
    
    i tried this in yogurt 3.3rc2 with XOOPS 2.3
but it is not working..i am always showed as 
offline 
..can someone check what did i do wrong ?.. 
open modules/yogurt/index.php 
find
 /** 
 * Closing the page 
 */  
include("../../footer.php"); 
?>  
 before the code above add this code below
 //user online status 
 
$user_online = new XoopsUser($thisUser->getVar('uid')); 
 
if ($user_online->isOnline()) 
 
{ 
    $xoopsTpl->assign('user_online', true); 
 
}  
open modules/yogurt/templates/yogurt_index.html
find
 <p class="even"> <img src="images/clock.gif" /> <span class="yogurt-profileinfo-label"><{$lang_lastlogin}>:span><span class="yogurt-profileinfo-value"><{$user_lastlogin}>span>p>  
before the code above add this code below
 <p class="even"> <img src="images/clock.gif" /> <span class="yogurt-profileinfo-label">Online Statusspan><span class="yogurt-profileinfo-value"> 
<{if $user_online == true}> 
                <span style='color:#ee0000;'>Onlinespan><br /> 
<{else}> 
                <span style='color:#000000;'>Offlinespan><br /> 
<{/if}> 
 
span>p>  
clear cache (eg:\xoops_data\caches\smarty_compile) (except for index.html)