Jake Bunce
Well-known member
![Screen shot 2011-10-06 at 2.07.02 PM.webp Screen shot 2011-10-06 at 2.07.02 PM.webp](https://xenforo.com/community/data/attachments/19/19664-c1cd61983a582f7738d1f8b58e3b5abf.jpg)
Edit this file:
library/XenForo/ControllerPublic/Online.php
Add the red code (don't forget the comma on the far right):
Rich (BB code):
$conditions = array(
'cutOff' => array('>', $sessionModel->getOnlineStatusTimeout()),
'getInvisible' => $bypassUserPrivacy,
'getUnconfirmed' => $bypassUserPrivacy,
// allow force including of self, even if invisible
'forceInclude' => ($bypassUserPrivacy ? false : XenForo_Visitor::getUserId()),
'userLimit' => 'registered'
);
$onlineUsers = $sessionModel->getSessionActivityRecords($conditions, array(
'perPage' => $userPerPage,
'page' => $page,
'join' => XenForo_Model_Session::FETCH_USER,
'order' => 'view_date'
));