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

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. :)
 
Perhaps this will work:

PHP:
if (XenForo_Visitor::getInstance()->hasPermission('addonGroupID', 'addonID'))
{
   // do something
}
 
No the listerner is only used to point to another file.

The code I posted would go in the PHP file you are extending.
Ah I see I need a php file with a extend a template :) Thank you mate for that code just need to work out how to do that file now :)
 
Back
Top Bottom