F
Floris
Guest
Removed.
$visitor = XenForo_Visitor::getInstance();
$sessionModel = $this->getModelFromCache('XenForo_Model_Session');
$onlineUsers = $sessionModel->getSessionActivityQuickList(
$visitor->toArray(),
array('cutOff' => array('>', $sessionModel->getOnlineStatusTimeout())),
($visitor['user_id'] ? $visitor->toArray() : null)
);
$boardTotals = $this->getModelFromCache('XenForo_Model_DataRegistry')->get('boardTotals');
if (!$boardTotals)
$boardTotals = $this->getModelFromCache('XenForo_Model_Counters')->rebuildBoardTotalsCounter();
$viewParams = array(
'onlineUsers' => $onlineUsers,
'boardTotals' => $boardTotals
);
$visitor = XenForo_Visitor::getInstance(); $sessionModel = $this->getModelFromCache('XenForo_Model_Session'); $onlineUsers = $sessionModel->getSessionActivityQuickList( $visitor->toArray(), array('cutOff' => array('>', $sessionModel->getOnlineStatusTimeout())), ($visitor['user_id'] ? $visitor->toArray() : null) ); $boardTotals = $this->getModelFromCache('XenForo_Model_DataRegistry')->get('boardTotals'); if (!$boardTotals) $boardTotals = $this->getModelFromCache('XenForo_Model_Counters')->rebuildBoardTotalsCounter(); $viewParams = array( 'onlineUsers' => $onlineUsers, 'boardTotals' => $boardTotals );
$visitor = XenForo_Visitor::getInstance(); $sessionModel = $this->getModelFromCache('XenForo_Model_Session'); $onlineUsers = $sessionModel->getSessionActivityQuickList( $visitor->toArray(), array('cutOff' => array('>', $sessionModel->getOnlineStatusTimeout())), ($visitor['user_id'] ? $visitor->toArray() : null) ); $boardTotals = $this->getModelFromCache('XenForo_Model_DataRegistry')->get('boardTotals'); if (!$boardTotals) $boardTotals = $this->getModelFromCache('XenForo_Model_Counters')->rebuildBoardTotalsCounter(); $viewParams = array( 'onlineUsers' => $onlineUsers, 'boardTotals' => $boardTotals );
ohh.. then it should be moved to Development Tutorials and ResourcesWhat does styling have to do with anything? It's a div with a class, nothing else.
It's just an example plugin to show the user that wanted something how it can be done.
How they use this is up to them. Styling has nothing to do with this little thingy.
No, it's a release, it just isn't styled to YOUR particular liking. You don't know what future releases might include that doesn't just help this individual and others - but even more people with more features / settings (and/or styling). Who knows, it might have modules for Oni's Blog, Jaxel's portal, someone's shopping cart, or a visual switcher that let's the end user decide between plain text, a styled block, and/or it's location.ohh.. then it should be moved to Development Tutorials and Resources![]()
Minus the lacking class importantMessage, this appears to be working on 1.1.0 beta 1.
Thanks Floris, good to know it will be included some time when you can, I wasn't aware of your handicap thereFuture, yes. Timeline: Unknown. I want to, but need the free time, and because of my visual handicap I can only do my hobbies a few hours tops per day.
No worries, was just explaining that unfortn. it means I have to pick my coding battles hehe.Thanks Floris, good to know it will be included some time when you can, I wasn't aware of your handicap there![]()
We use essential cookies to make this site work, and optional cookies to enhance your experience.