Not Solved PHP in Templates and Template Conditionals
#57
Not Solved
(2009-11-29, 01:56 AM)Yumi Wrote:
<if $GLOBALS['mybb']->user['usergroup'] == 4 || $GLOBALS['mybb']->user['usergroup'] == 5 || $GLOBALS['mybb']->user['usergroup'] == 6 then> stuff for usergroup 4,5,6</if>

or

<if in_array($GLOBALS['mybb']->user['usergroup'], array(4,5,6)) then> stuff for usergroup 4,5,6</if>

Thank you much! It works perfectly. Smile
[Image: mcb-half-ad.png]
Reply


Messages In This Thread
RE: PHP in Templates and Template Conditionals - by xScopex - 2009-12-01, 12:45 AM
RE: Template conditionals - by expat - 2015-01-31, 05:28 AM

Forum Jump:


Users browsing this thread: 92 Guest(s)