The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
using custom vars in conditionals
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
|
||||
|
||||
thank you gonna give it a try
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|