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
le="color: #000000"><?php /** * Closing the page */ include("../../footer.php"); ?>
before the code above add this code below
le="color: #000000"><?php //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
le="color: #000000"><?php <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
le="color: #000000"><?php <p class="even"> <img src="images/clock.gif" /> <span class="yogurt-profileinfo-label">Online Status</span><span class="yogurt-profileinfo-value"> <{if $user_online == true}> <span style='color:#ee0000;'>Online</span><br /> <{else}> <span style='color:#000000;'>Offline</span><br /> <{/if}> </span></p>
clear cache (eg:\xoops_data\caches\smarty_compile) (except for index.html)