The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to combine two <if> conditionals
Hi all. I've googled and tried but I can't anymore, lol.
Can anyone help me how to combine these two conditionals please. <if condition="in_array($forumid, array(X,Y,Z))"> and <if condition="$thread['postuserid'] == $post['userid']"> I've tried everything on google and vb.org and vb.com but I just can't get it right. This code is being placed into the postbit_legacy template and what I want it to do is, if in a certain forum then an image/link will be displayed but only on the original thread starters posts. If the conditionals are used separately then they work fine, but as soon as I try to use both they seem to cancel each other out somehow. I've tried so many different ways of combing them but I'm not a coder. Thanks. |
#2
|
|||
|
|||
You can do this:
Code:
<if condition="in_array($forumid, array(X,Y,Z)) AND $thread['postuserid'] == $post['userid']"> // Image code here </if> but doing this should also have worked: Code:
<if condition="in_array($forumid, array(X,Y,Z))"> <if condition="$thread['postuserid'] == $post['userid']"> // Image code here </if> </if> |
#3
|
||||
|
||||
Thank you.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|