Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 If Usergroup and Forum Id than
WINBOY Offline
Member
***
Posts: 71
Joined: Nov 2012
Post: #1
If Usergroup and Forum Id than
i use below code

Code:
1
2
3
4
5
6
7
8
<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?

Please Help me.

(This post was last modified: 01-26-2016 11:37 PM by WINBOY.)
01-25-2016 08:05 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
If Usergroup and Forum Id than - WINBOY - 01-25-2016 08:05 PM

 Standard Tools
Forum Jump: