View Full Version : If condition for open thread?
v123shine
06-19-2012, 08:58 PM
If i want to show some message for "closed thread" i use this code:
<if condition="$threadinfo[open] == 0">
I try using this code for "open thread" but dont work.
<if condition="$threadinfo[open] != 0">
What is condition for open thread???
Thank you
Which template are those in? Are you saying the one for closed works but the one for open doesn't?
v123shine
06-19-2012, 09:21 PM
In postbit_legacy
can you tell to me, if condition for "open thread" and "closed thread" please!
And you're putting that in the same template? Seems like it should work - a value has got to be either == 0 or not.
v123shine
06-19-2012, 09:29 PM
Dear kh99,
I using vb 3.8.x
In postbit_legacy
can you tell to me, if condition for "open thread" and "closed thread" please!
I try this code and dont work in postbit_lagacy:
<if condition="$threadinfo[open] == 0">code </if>
Oh, OK - try this:
<if condition="$thread[open] != 0">code </if>
v123shine
06-19-2012, 09:34 PM
Thank you so much Kh99 for help me.
The code work perfectly for me :)
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.