1. If you have a site and looking for specific help, please submit a support ticket through Site Owner Dashboard instead of creating a thread in the support forum
    Dismiss Notice

VB 4.x Online Users Count is Zero

Discussion in 'vBulletin Discussion' started by 3DGLabs, Feb 17, 2017.

  1. 3DGLabs

    3DGLabs New Member

    Joined:
    Feb 1, 2012
    Messages:
    25
    Likes Received:
    12
    Hi there. When i go to our forum in Tapatalk, running latest API for VB 4.x, i get all the users online listing OK, but the "CURRENTLY ONLINE (x)" gives a ZERO count. Event though we've got 2000+ online users and the list displays ok.

    I've logged the return call:

    Total Online: 2418
    Total Registered: 928
    Total Guest: 1490
    Total Visible: 1806

    That corresponds to variables $total_online, $numberregistered, $numberguest, $numbervisible. Though, online $numberregistered and $numberguest and the $list is returned to the app.

    $return_data = array(
    'member_count' => new xmlrpcval($numberregistered, 'int'),
    'guest_count' => new xmlrpcval($numberguest, 'int'),
    'list' => new xmlrpcval($login_users, 'array'),
    );

    So, what's missing?. Is there something outdated in this API version and should i send another value to the RPC call?

    The refered file is get_online_users.php in /functions directory and the function i've got the code from is get_online_users_func($params).

    Thanks.
     
  2. Howdy

    Howdy Administrator Staff Member

    Joined:
    May 11, 2015
    Messages:
    1,072
    Likes Received:
    360
    HI
    Can you pls. advise on which forum you have this issue?