The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||
|
|||
|
You could just check to see if the variable has a value like...
Code:
<if condition="$somevar">
The value is: $somevar
</if>
What is your current code? An alternative would be to check the script name like: Code:
<if condition="in_array(THIS_SCRIPT, array('showthread', 'showpost'))">
The value is: $somevar
</if>
|
|
#3
|
|||
|
|||
|
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: Quote:
|
|
#4
|
|||
|
|||
|
Then use the last condition I posted above...
Code:
<if condition="in_array(THIS_SCRIPT, array('showthread', 'showpost'))">
<img src="blabla.gif">
<else />
<img src="vbulletin.gif">
</if>
|
|
#5
|
|||
|
|||
|
Works perfect, thank you very much.
![]() --------------- Added [DATE]1211717966[/DATE] at [TIME]1211717966[/TIME] --------------- 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? |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|