• 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...

MichaelDance

Well-known member
#3
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. :)
 

AndyB

Well-known member
#4
Perhaps this will work:

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