The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Single Thread conditional?
Is it possible to have a conditional for a single thread?
For example, this banner would run on this one thread, and a second banner would run on every other thread |
#2
|
||||
|
||||
Well, if you know the threadid, sure
if condition="$thread[threadid] == XX" |
#3
|
||||
|
||||
Although, depending on what template this condition will be in, you may need to use the variable $GLOBALS[threadid] instead of $thread[threadid]
|
#4
|
||||
|
||||
It would be in the showthread template
Simply, I want to replace adsense ads on just one particular thread. |
#5
|
||||
|
||||
In that template, I'm pretty sure you can just use $threadid.
HTML Code:
<vb:if condition="$threadid == xx"> code here <vb:else /> other code here </vb:if> |
Благодарность от: | ||
RichieBoy67 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|