Not Solved PHP in Templates and Template Conditionals
Not Solved
1. - probably caused by 3. You have a redundant ) somewhere.

2. and 3.
<if in_array($mybb->user['usergroup'], array(1,2,3)) then>
<if $mybb->settings['enablepms'] == 0 then>
{$lang->pms_disabled}
</if>
</if> 
1,2,3 - comma separated group ids which aren't allowed to view PMs.
Not sure why you want to use $mybb->settings['enablepms'] for that, so the result of the code I posted may be unexpected for you.
Reply


Messages In This Thread
RE: PHP in Templates and Template Conditionals - by Destroy666 - 2013-05-24, 06:42 PM
RE: Template conditionals - by expat - 2015-01-31, 05:28 AM

Forum Jump:


Users browsing this thread: 95 Guest(s)