Not Solved PHP in Templates and Template Conditionals
Not Solved
Well, sorry, but I'm not entirely sure what you want to achieve. To block groups let's say 2 and 34 from viewing the nav PM links use this in usercp_nav_messenger:
<tr>
<if !in_array($mybb->user['usergroup'], array(2,34)) then>
(... replace this with rest of code which had been before except trs and tbody, so tds etc...)
<else>
<td class="trow1 smalltext">
{$lang->pms_disabled}
</td>
</if>
</tr>
</tbody>

Still don't know why you want to use $mybb->settings['enablepms'] so I removed it because it made no sense for me there.
Reply


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

Forum Jump:


Users browsing this thread: 93 Guest(s)