MyBB Community Forums

Full Version: Wrapping ads for usergroups.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
So im using

<if !in_array($GLOBALS['mybb']->user['usergroup'], array(3,4,6,8)) then> 

</if>


To wrap my ads so they dont show to staff and 1 custom user group, thing is it only works for staff, the 8 is for the custom user group but no matter what i try, ads still show.

Do i need to do it differently for custom groups?


-----

I should really stop posting here, i always fix it soon after Smile - made a group in the past and deleted it so the gid was different, i just counted how many groups i had.
Would you perhaps not be better doing this in a simple plugin as opposed to in the template (using template conditionals by the look of things)