View Full Version : Somebody knows the if conditions of
Medina
05-24-2008, 10:17 AM
private message and postbit legacy?
because I have add something in my signature for postbit (topics).
But it dissapear also in private messages. So how can I give it a if condition?
Opserty
05-24-2008, 11:18 AM
You could just check to see if the variable has a value like...
<if condition="$somevar">
The value is: $somevar
</if>
What is your current code?
An alternative would be to check the script name like:
<if condition="in_array(THIS_SCRIPT, array('showthread', 'showpost'))">
The value is: $somevar
</if>
Medina
05-24-2008, 11:59 AM
Maybe you don`t understand me,
but what I have, is a image that have to show up in topics.
so when somebody post, it have to show up. But I wanna in a private message there showing up a other picture.
example:
<if condition="showTOPIC">
<img src="blabla.gif">
</if>
<if condition="showPRIVATE MESSAGE">
<img src="vbulletin.gif">
</if>
Opserty
05-24-2008, 12:43 PM
Then use the last condition I posted above...
<if condition="in_array(THIS_SCRIPT, array('showthread', 'showpost'))">
<img src="blabla.gif">
<else />
<img src="vbulletin.gif">
</if>
Medina
05-24-2008, 01:05 PM
Works perfect, thank you very much. ;)
--------------- Added 1211717966 at 1211717966 ---------------
Opserty, I found a little problem with those conditions.
If i post a quick reply in a topic, it doesn`t dissapear. When I refresh my page, then it dissapears.
I think showpost is the problem, because a quick reply have the same condition isn`t it?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.