The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Make a conditional to work in a different template
Hi,
I'd like to make use of the conditional <if condition="$show['closethread']"> (located at showthread template) in my threadbit template. I tried and it doesn't work. How I can make that conditional to work in my threadbit template? Thank you, Jonathan |
#2
|
|||
|
|||
Try using <if condition="$thread['open']"> instead
|
#3
|
|||
|
|||
Thanks kh99 but unfortunately I have tried and it also isn't working
|
#4
|
|||
|
|||
Quote:
Code:
<if condition="$thread['open']"> Thread open <else /> Thread closed </if> and it correctly tells whether or not the thread is open. Maybe I misunderstood what you're trying to do. ETA:...also, in showthread.php there is: Code:
$show['closethread'] = iif($threadinfo['open'], true, false); which is why I think $thread['open'] is equivalent to $show['closethread']. |
#5
|
|||
|
|||
Yes, you're right! It's working fine!
Thank you very much kh99 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|