![]() |
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 |
Try using <if condition="$thread['open']"> instead
|
Thanks kh99 but unfortunately I have tried and it also isn't working :(
|
Quote:
Code:
<if condition="$thread['open']"> 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']. |
Yes, you're right! It's working fine!
Thank you very much kh99 :) |
All times are GMT. The time now is 07:27 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|