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

If the xen:username is in a group...


Well-known member
Is this for a permission?
Yes mate, so say if the user who has posted is in a certain group, it will display a icon however if they aren't in that group it doesn't show anything. I've got the helper sorted. Just stuck on trying to get it to displayed if the user has the group. :)


Well-known member
Perhaps this will work:

if (XenForo_Visitor::getInstance()->hasPermission('addonGroupID', 'addonID'))
   // do something