Can someone share it pls....???
http://www.vbulletin.org/forum/showthread.php?t=105233&highlight=ajax+online
http://www.vbulletin.org/forum/showthread.php?t=105233&highlight=ajax+online
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTTA HERE... ###
if ($_GET['do'] == 'online')
{
echo $activeusers;
exit;
}
<div class="smallfont">
<div style="white-space: nowrap"><phrase 1="$recordusers" 2="$recorddate" 3="$recordtime">$vbphrase[most_users_ever_online_was_x_y_at_z]</phrase>
<script type='text/javascript'>
<!--
function requestWhoOnline()
{
doReqOnline = new vB_AJAX_Handler(true)
doReqOnline.onreadystatechange(ReqOnlineDone)
doReqOnline.send('index.php?do=online')
}
function ReqOnlineDone()
{
if (doReqOnline.handler.readyState == 4 && doReqOnline.handler.status == 200)
{
fetch_object('whoisonline').innerHTML = doReqOnline.handler.responseText
setTimeout("requestWhoOnline()", 60000)
}
}
setTimeout("requestWhoOnline()", 20000)
-->
</script>
<div>$activeusers</div>
<div id="whoisonline">$activeusers</div>