[RT] Online Status Ribbon

[RT] Online Status Ribbon 1.3.7

No permission to download
Okay, solved it ($xenOptions are used in the template so access to the params is needed).

Go to Asp/Plugin.php

REMOVE:
PHP:
$tempParams = $template->getParams();
$params += $tempParams;
$params['userStatus'] = $userStatus;
self::_getOnlineStatusTemplate()->setParams($params);

REPLACE ABOVE WITH:
PHP:
$params['userStatus'] = $userStatus;
$params['xenOptions'] = $template->getParam('xenOptions');

self::_getOnlineStatusTemplate()->setParams($params);

This will be a little bit more resource friendly.

However, it would be best to recreate the whole thing avoiding template handling in php at all and switch to template modifications only.

It is very ridiculous to fetch the static $xenOptions each single time at every message shown...
 
Last edited:
thanks @HWS really :)
I used your fix, a page
  • that takes 0.38 sec to load ( Stock XF is rather slow, it's a fact:( )
  • used to take 0.88 sec to load with RT's OnlineStatus mod enabled
  • now takes "only" 0.45 sec with your fix
It's still 30% of the entire loading time devoted to this mod, so it's awful, but at least it's semi useable now. Prior to your fix, it was half a second per page, and worse than that a CPU hog when many users online ; it is simply not worth activating.

Would you please be so kind to give a little more details about how to use template modifs in this mod ?
 
I think it may be best to code a new addon. Is anyone interested in sharing the costs?
I`d join if this here isn`t maintained any more.

Question: this doesn`t consider the "Show online status" user setting. Can this be added?
 
holy man, stay away from this mod if you have any kind of traffic. With 1800 users online, cpu load with this addon enabled went from 1-2 to 10-14. Page loads slowed, etc. See above posts for reasons why. Not worth it.
 
We wrote a new add-on for online/offline indicators in postbit which is compatible with high traffic sites.
It'll be released within the next weeks.
We are waiting it

Need add the online status to conversations too..
 
  • Like
Reactions: rdn
Back
Top Bottom