The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
[SOLVED] HELP - Two values in conditionals
Code:
<vb:if condition="$post[userid] == 19"> <a href="#" target="_blank"><img class="inline" src="{vb:stylevar imgdir_button}/ip.gif" alt="Shekii says no no" title="Shekii says no no" /></a> <!--KAI HIDE--> <vb:elseif condition="$post[userid] == 1" /> a href="#" target="_blank"><img class="inline" src="{vb:stylevar imgdir_button}/ip.gif" alt="Shekii says no no" title="Shekii says no no" /></a> <!--TREVOR HIDE--> <vb:elseif condition="$post[userid] == 140" /> <a href="#" target="_blank"><img class="inline" src="{vb:stylevar imgdir_button}/ip.gif" alt="Shekii says no no" title="Shekii says no no" /></a> </vb:if> Code:
<vb:if condition="$post[userid] == 19,1,140"> but it gave an error. |
#2
|
|||
|
|||
One way would be like this:
Code:
<vb:if condition="in_array($post[userid], array(19,1,140))"> |
#3
|
|||
|
|||
Thank you, just solved it myself testing. Apparently this works:
Code:
<vb:if condition="$post[userid] == 19 AND 1 AND 140"> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|