Show
Ignore:
Timestamp:
02/12/09 08:36:37 (3 years ago)
Author:
daris
Message:

portal: fixed bug with not displaying users online in who is online panel

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/portal_by_daris/panels/who_is_online.php

    r5 r35  
    2727        ); 
    2828 
    29         ($hook = get_hook('pr_qr_get_user_count')) ? eval($hook) : null; 
     29        ($hook = get_hook('xn_portal_by_daris_wio_qr_get_user_count')) ? eval($hook) : null; 
    3030        $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 
    3131        $stats['total_users'] = $forum_db->result($result); 
     
    3636        ); 
    3737 
    38         ($hook = get_hook('pr_qr_get_post_stats')) ? eval($hook) : null; 
     38        ($hook = get_hook('xn_portal_by_daris_wio_qr_get_post_stats')) ? eval($hook) : null; 
    3939        $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 
    4040        list($stats['total_topics'], $stats['total_posts']) = $forum_db->fetch_row($result); 
     
    4545 
    4646 
    47         ($hook = get_hook('pr_pre_users_online')) ? eval($hook) : null; 
     47        ($hook = get_hook('xn_portal_by_daris_wio_pre_users_online')) ? eval($hook) : null; 
    4848 
    4949        if ($forum_config['o_users_online'] == '1') 
     
    5656                        'ORDER BY'      => 'o.ident' 
    5757                ); 
    58                 ($hook = get_hook('pr_qr_get_users_online')) ? eval($hook) : null; 
    59                 $result = $forum_db->query_build($query, true) or error(__FILE__, __LINE__); 
     58                ($hook = get_hook('xn_portal_by_daris_wio_qr_get_users_online')) ? eval($hook) : null; 
     59                $result = $forum_db->query_build($query) or error(__FILE__, __LINE__); 
    6060                $num_guests = 0; 
    6161                $users = array(); 
     
    6363                while ($forum_user_online = $forum_db->fetch_assoc($result)) 
    6464                { 
    65 //                      ($hook = get_hook('ft_add_online_user_loop')) ? eval($hook) : null; 
     65                        ($hook = get_hook('xn_portal_by_daris_wio_add_online_user_loop')) ? eval($hook) : null; 
    6666 
    6767                        if ($forum_user_online['user_id'] > 1)