Online users won't update [RevCMS and Phoenix 3.11.0]

L0L0MGFTW

New Member
Sep 1, 2013
7
0
Hello,

I am using RevCMS with Phoenix 3.11.0. Everything works fine, except one thing, the online counter won't update. No matter how many users are online, the counter stays at 0.

I've noticed that the server_status table doesn't update, maybe that's the problem. But I don't know how to fix it. Have anyone else experienced this? Can anyone help? Thanks.
 

Tiny

Owner, Swift Industry
Aug 14, 2013
616
61
Place
PHP:
$online = mysql_fetch_array(mysql_query("SELECT users_online FROM server_status LIMIT 1"));

Above
PHP:
$tpl->set("{id}", user(id));

Then replace
PHP:
$tpl->set("{onlinecount}", $online);

with
PHP:
$tpl->set("{onlinecount}", $online['users_online']);

Hope it helps :)
 

Users who are viewing this thread

Top