Solved: 1 Year, 3 Weeks ago show totall online user number in index
#11
Solved: 1 Year, 3 Weeks ago
This user has been denied support. This user has been denied support.
(2020-11-07, 07:05 PM)effone Wrote: 1. Add this to your index sidebar template, exactly where you want the number to show up:
<span id="onlinecount"></span>

2. Add this at the end of your index_whosonline template:
<script type="text/javascript">
var onlinecount = {$onlinecount};
$(function(){$('#onlinecount').text(onlinecount);});
</script>


Save the templates.

in index_whisinline template gives this error


[Image: 6061d8f1f828aeadb02c00123aa0dd0d.png]
Reply
#12
Solved: 1 Year, 3 Weeks ago
Try and add that code in multilines:
<script type="text/javascript">
var onlinecount = {$onlinecount};
$(function(){
	$('#onlinecount').text(onlinecount);
});
</script>
Reply
#13
Solved: 1 Year, 3 Weeks ago
This user has been denied support. This user has been denied support.
both solution is working now sir. thanks for your help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)