MyBB Community Forums

Full Version: How to do this stuff ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
With template conditional plugin

<if $GLOBALS['mybb']->user['usergroup'] == 2 then>


in the place of 2 i want multiple usergroup ids , 


if i put 2,4,6

it's going with an error.... how can i solve this ?

sorry i an dumb in php....
try this
<if in_array($mybb->user['usergroup'], array('1', '2', '5', '7', '9', '12', '11', '8', '6')) then>CONTENT</if>