COUNTER USER ONLINE

Status
Not open for further replies.
Dec 17, 2017
151
19
Good evening,
in the CMS that I am currently using I noticed the lack of the online user counter in the header, so I decided to insert it like this:
PHP:
<?php echo $users_online; ?> Utenti online

In the server_status table the string is called users_online
I see this
oRvtnpd.png

Thanks!! :up:
 

n4te

zzz
Oct 27, 2014
669
293
Good evening,
in the CMS that I am currently using I noticed the lack of the online user counter in the header, so I decided to insert it like this:
PHP:
<?php echo $users_online; ?> Utenti online

In the server_status table the string is called users_online
I see this
oRvtnpd.png

Thanks!! :up:
Does {online} not work? What CMS are you using?
 

n4te

zzz
Oct 27, 2014
669
293
I try now, i replace this
PHP:
<?php echo $users_online; ?>
with this
PHP:
{online}
But nothing :down:
Weird. I'd recommend using a new CMS. One you know works as it should.
 
I try now, i replace this
PHP:
<?php echo $users_online; ?>
with this
PHP:
{online}
But nothing :down:
I'll give you a rev edit if you want. I don't have any use for it anymore, as I no longer run/dev hotels.
 
Dec 17, 2017
151
19
Weird. I'd recommend using a new CMS. One you know works as it should.
 

I'll give you a rev edit if you want. I don't have any use for it anymore, as I no longer run/dev hotels.
I put soul and passion in this CMS :( I wait new answers
 
Weird. I'd recommend using a new CMS. One you know works as it should.
 

I'll give you a rev edit if you want. I don't have any use for it anymore, as I no longer run/dev hotels.
No thanks, very kind ;)
 
Dec 17, 2017
151
19
Soul and passion? But you said you're using HabboCitys CMS. Whatever though, lol. Goodluck finding a fix. I tried.
The basis is that, I have rewritten some things. Added new things and personalized a lot FeelsThinkingMan
Okay.. sorry for my bad english :confused:... i love emoji of DevBest
Thanks man!
 
UP
:down: help me please?
 

treebeard

Member
Jan 16, 2018
317
173
I don't do web development but couldn't you declare an integer variable called onlineCount then use your RCON to get the usercount.
Or somewhere use an SQL statement to fetch user count from the database and have it cycle every x amount of minutes so that it is updated to current user count.

Seems much easier than going with a whole new CMS.
 
Dec 17, 2017
151
19
I don't do web development but couldn't you declare an integer variable called onlineCount then use your RCON to get the usercount.
Or somewhere use an SQL statement to fetch user count from the database and have it cycle every x amount of minutes so that it is updated to current user count.

Seems much easier than going with a whole new CMS.
I've never heard RCON, how should I do then?
Thanks for the reply
 
Status
Not open for further replies.

Users who are viewing this thread

Top