The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
if conditional help
tried a search but i cant find anything to help me, i'm probably not inputing the correct criteria but hey, should be an easy one
looking for and if condition that specifys show a link if only members 1 and 2 so would look something like <if condition="memberid =1" OR "memberid=2">link to show</if> hope you all follow TIA dave |
#2
|
|||
|
|||
I think it would be:
Code:
<if condition="$bbuserinfo['userid'] == 1"> link to show</if> |
#3
|
||||
|
||||
Quote:
Code:
<if condition="$bbuserinfo['userid'] ==1 AND 2"> Code:
<if condition="$bbuserinfo['userid'] == 1"> <if condition="$bbuserinfo['userid'] == 2"> link to show </if> </if> |
#4
|
|||
|
|||
Ah I see. I'm not too sure on this, but I think if you did it like this it would work:
Code:
<if condition="$bbuserinfo['userid'] == 1,2"> link to show</if> |
#5
|
||||
|
||||
Thanks spank i'll give it a shot
|
#6
|
|||
|
|||
Try this:
Code:
<if condition="$bbuserinfo[userid] == 1 OR $bbuserinfo[userid] == 2"> // YOUR CODE </if> |
#7
|
||||
|
||||
Quote:
Thanks again Spank for the quick replies |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|