Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 If Usergroup and Forum Id than
xensor Offline
Junior Member
**
Posts: 22
Joined: Jan 2014
Post: #7
RE: If Usergroup and Forum Id than
here this will/should work

Code:
1
2
3
4
5
6
7
8
<if (in_array($mybb->user['usergroup'], array(4,8,9)) && $forum['fid'] == 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>


putting the fid in a array when there is no need to can cause issues. sometimes it just better to have actually match the single fid and such.

10-01-2016 11:15 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
RE: If Usergroup and Forum Id than - xensor - 10-01-2016 11:15 PM

 Standard Tools
Forum Jump: