Not Solved Refresh every 5 second
#2
Not Solved
Open member_profile template and search for

{$online_status}

replace to

<span id="online_status">{$online_status}</span>

search for

{$timeonline}

replace to

<span id="timeonline">{$timeonline}</span>

add after

</table>

this

<script type="text/javascript">
var interval = 5000;
$(document).ready(function() {
 	 $("#online_status").fadeOut("fast").load(" #online_status").fadeIn("fast");
	$("#timeonline").fadeOut("fast").load(" #timeonline").fadeIn("fast");
   var refreshId = setInterval(function() {
      $("#online_status").fadeOut("fast").load(' #online_status').fadeIn("fast");
	   $("#timeonline").fadeOut("fast").load(' #timeonline').fadeIn("fast");
   }, interval);
   $.ajaxSetup({ cache: false });
});
</script>

Hope this helps Rolleyes

Addition:
The Time Spent Online time is updated only when the user clicks something in forum.
Reply


Messages In This Thread
Refresh every 5 second - by Sazze - 2016-07-30, 03:18 PM
RE: Refresh every 5 second - by MrBrechreiz - 2016-07-30, 03:51 PM
RE: Refresh every 5 second - by Matt - 2016-07-30, 04:31 PM
RE: Refresh every 5 second - by MrBrechreiz - 2016-07-30, 05:21 PM
RE: Refresh every 5 second - by Matt - 2016-07-30, 05:28 PM
RE: Refresh every 5 second - by MrBrechreiz - 2016-07-30, 06:44 PM
RE: Refresh every 5 second - by Sazze - 2016-07-30, 06:57 PM
RE: Refresh every 5 second - by MrBrechreiz - 2016-07-30, 07:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)