• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

xen:helper ismemberof, $user, 3 for message template

Russ

Well-known member
#1
Is there something that I can use that's like this inside the "message" template.

<xen:if is="{xen:helper ismemberof, $user, 3}">content</xen:if>

Trying to add an extra class, I'm aware of the staff css but it I need to narrow it down to a specific user group if possible. When attempting this code above, I'm getting this:



Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in blah/blah/library/XenForo/Template/Helper/Core.php, line 1155
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in blah/blah/library/XenForo/Template/Helper/Core.php on line 1163 and defined in blah/blah/library/XenForo/Model/User.php, line 1401
Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in blah/blah/library/XenForo/Template/Helper/Core.php, line 1155
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in blah/blah/library/XenForo/Template/Helper/Core.php on line 1163 and defined in blah/blah/library/XenForo/Model/User.php, line 1401
Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in blah/blah/library/XenForo/Template/Helper/Core.php, line 1155
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in blah/blah/library/XenForo/Template/Helper/Core.php on line 1163 and defined in blah/blah/library/XenForo/Model/User.php, line 1401
Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in blah/blah/library/XenForo/Template/Helper/Core.php, line 1155
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in blah/blah/library/XenForo/Template/Helper/Core.php on line 1163 and defined in blah/blah/library/XenForo/Model/User.php, line 1401
Argument 1 passed to XenForo_Template_Helper_Core::helperIsMemberOf() must be an array, null given in blah/blah/library/XenForo/Template/Helper/Core.php, line 1155
Argument 1 passed to XenForo_Model_User::isMemberOfUserGroup() must be an array, null given, called in blah/blah/library/XenForo/Template/Helper/Core.php on line 1163 and defined in blah/blah/library/XenForo/Model/User.php, line 1401
xelexi/public_html/dev/library/XenForo/Template/Helper/Cor