Added in the query.That is the query that is looking up the user that goes with a particular session. If you want to affect the viewonline list you want the query after// Get user list
Code:
AND u.user_type NOT IN (" . USER_FOUNDER . ", " . USER_IGNORE .
Code:
// Get user list$sql_ary = array('SELECT'=> 'u.user_id, u.username, u.username_clean, u.user_type, u.user_colour, s.session_id, s.session_time, s.session_page, s.session_ip, s.session_browser, s.session_viewonline, s.session_forum_id','FROM'=> array(USERS_TABLE=> 'u',SESSIONS_TABLE=> 's',),'WHERE'=> 'u.user_id = s.session_user_idAND u.user_type NOT IN (" . USER_FOUNDER . ", " . USER_IGNORE .AND s.session_time >= ' . (time() - ($config['load_online_time'] * 60)) .((!$show_guests) ? ' AND s.session_user_id <> ' . ANONYMOUS : ''),'ORDER_BY'=> $order_by,);
Statistics: Posted by exemplary1 — Thu Mar 07, 2024 3:17 pm