Disable Members Online Now

You can do this to save running the code.

library/XenForo/Model/Session.php

line 55

PHP:
  public function getSessionActivityQuickList(array $viewingUser, array $conditions = array(), array $forceInclude = null)
   {

    // start hack
    return;
    // end hack

     $fetchOptions = array(
       'join' => self::FETCH_USER,
       'order' => 'username'
     );

It's possible to create an add-on to do the above so you won't have to edit the core code every time you upgrade.
Thank you, i tried this and it works
PHP:
return array(
            'guests' => 0,
            'robots' => 0,
            'members' => 0,
            'total' => 0,
            'records' => array()
        );
I found an addon but it only prohibits access on online page, and on sidebar it is still displayed. thank you for the help anyway.
 
I have the exact opposite problem... I inherited a forum and cant seems to show the current uses online. I've double checked permissions as well as the sidebar template and everything looks normal. is there something I'm missing or a way to force it to display via injecting some code?
 
Top Bottom