XF 1.2 Members on line (alphabetical order)

Set the cache time for 1, wait for it to rebuild and then set it to 360 (or whatever the desired number is).

Setting it to 0 actually doesn't bother setting the cache at all, it just gets the data and displays it.
 
It's possible with a very simple code edit:

Open the file: library/XenForo/Model/Session.php

Find:

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

Shortly below that you'll see:

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

Change 'view_date' to 'username'.
@Chris D - unfortunately this is no longer working recently, any input how to get the members online in alphabetical order? The code mentioned here is no longer existing in that PHP file. (not sure why it is not default however...)
 
Top Bottom