The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Conditionals
I want to display an ad on the showthread.php page but show a different ad depending on what forums the user is browsing.
PHP Code:
thanks |
#2
|
||||
|
||||
Something like... ?
HTML Code:
<vb:if condition="$threadinfo['forumid'] == 1"> ad for 1 <vb:elseif condition="$threadinfo['forumid'] == 2" /> ad for 2 <vb:elseif condition="$threadinfo['forumid'] == 3" /> ad for 3 </vb:if> |
#3
|
||||
|
||||
Awesome!
Now, what if I want to do the same but this time to certain forum groups? I tried: PHP Code:
|
#4
|
||||
|
||||
How exactly didn't it work? Just saying "it didn't work" tells us nothing.
|
#5
|
||||
|
||||
Thank you, Lynne!
As you can see, I forgot the slash "/" in the <vb:elseif tag. Working great now (: |
#6
|
||||
|
||||
Ah yes, that / is very important!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|