Not Solved PHP in Templates and Template Conditionals
Not Solved
i use below code
<if (in_array($mybb->user['usergroup'], array(4,8,9)) && in_array($forum['fid'], array(168))) then>

<span class="smalltext">
<a href="{$lastpost_link}" title="{$full_lastpost_subject}"><strong>{$lastpost_subject}</strong></a>
<br />{$lastpost_date}<br />{$lang->by} {$lastpost_profilelink}</span>

<else> Protected Forum
</if>

But it show 'Protected Forum' under all forum last post rather than in forum id 168.
Is there any issue with code?
Reply


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

Forum Jump:


Users browsing this thread: 95 Guest(s)