Not Solved PHP in Templates and Template Conditionals
Not Solved
(2013-05-24, 06:42 PM)Destroy666 Wrote: 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.

thanks
worked without error
But messenger disable for all group
Sad

I use this form

<if in_array($mybb->user['usergroup'], array(2,1,5,13)) then>
<if $mybb->settings['enablepms'] == 0 then>
{$lang->pms_disabled}

PM links code

</if>
</if> 
I cant speak english well
Blush

Reply


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

Forum Jump:


Users browsing this thread: 96 Guest(s)