Anthony Parsons
Well-known member
I am trying to make is easier to use Jaxels user ranks, by putting them into a style property and hook, however; by trying to use the hook vs. template edit calling the additional template directly, it creates errors for me, obviously as some parameters must be parsed via the hook. Hence the area I have no idea about....
If I add to message_user_info directly the below, without using the hook, then it works fine.
<xen:if is="@jaxelUserRanksActive"><xen:include template="jaxel_userranks" /></xen:if>
But trying to use the hook message_user_info_text, then I get the following errors from the attached mod.
Can anyone fix this so it does work, and explain to me how you did it so I can learn? Pretty please...
I would like to be able to use these things without template edits preferably...
If I add to message_user_info directly the below, without using the hook, then it works fine.
<xen:if is="@jaxelUserRanksActive"><xen:include template="jaxel_userranks" /></xen:if>
But trying to use the hook message_user_info_text, then I get the following errors from the attached mod.
Code:
Template Errors: jaxel_userranks
Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /Applications/MAMP/htdocs/library/XenForo/Template/Helper/Core.php, line 1146
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /Applications/MAMP/htdocs/library/XenForo/Template/Helper/Core.php on line 1154 and defined in /Applications/MAMP/htdocs/library/XenForo/Model/User.php, line 1379
Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /Applications/MAMP/htdocs/library/XenForo/Template/Helper/Core.php, line 1146
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /Applications/MAMP/htdocs/library/XenForo/Template/Helper/Core.php on line 1154 and defined in /Applications/MAMP/htdocs/library/XenForo/Model/User.php, line 1379
Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /Applications/MAMP/htdocs/library/XenForo/Template/Helper/Core.php, line 1146
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /Applications/MAMP/htdocs/library/XenForo/Template/Helper/Core.php on line 1154 and defined in /Applications/MAMP/htdocs/library/XenForo/Model/User.php, line 1379
Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in /Applications/MAMP/htdocs/library/XenForo/Template/Helper/Core.php, line 1146
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in /Applications/MAMP/htdocs/library/XenForo/Template/Helper/Core.php on line 1154 and defined in /Applications/MAMP/htdocs/library/XenForo/Model/User.php, line 1379
Can anyone fix this so it does work, and explain to me how you did it so I can learn? Pretty please...
I would like to be able to use these things without template edits preferably...