Okay, solved it ($xenOptions are used in the template so access to the params is needed).
Go to Asp/Plugin.php
REMOVE:
REPLACE ABOVE WITH:
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...
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: