The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
This Article says you can not use {vb:raw var} in template conditionals, but, what if i *REALLY* need to use it?
i need to do this in my templates: Code:
<if condition="{vb.raw prettypicture} == 4">
<img src="images/picture/pic_{vb.raw stockimage}.png" alt="pretty pictures" />
</vb:if>
|
|
#2
|
||||
|
||||
|
You would use $prettypicture in a condition instead of {vb:raw prettypicture}. Just make sure you registered the variable for use in the template though.
|
|
#3
|
||||
|
||||
|
Quote:
gonna give it a try
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|