The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
forumid in_array
EDIT: Never mind, it does work :tired:
I have a piece of HTML I only want shown to Administrators (usergroup 6) in certain forums (forumids 5,6,7,9,15,16,17,18,24,25,27, and 30), so I use the following in my template: Code:
<if condition="is_member_of($bbuserinfo, 6)"> <if condition="in_array($thread[forumid], array(5,6,7,9,15,16,17,18,24,25,27,30))"> --- HTML goes here --- </if> </if> What am I doing wrong? |
#2
|
||||
|
||||
Try using $foruminfo['forumid'] instead of $thread[forumid]. Also, where are you using this?
|
#3
|
|||
|
|||
Sorry, it does work - I must have been looking at the wrong page :surprised: I was trying to add some code to SHOWTHREAD.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|