![]() |
Using options in scripts within template
Ok for those who know me know im use to vb3, but I am working on something for vb4 and was wondering why my option wont print within a script in a template...
my code is as follows: (within a template) Code:
<vb:if condition="$vboptions[drc_img] == ''"> also another instance of this is that last div I show in the code above. the div shows, but displays $vboptions[drc_notice] when it should be displaying the Text... Code:
<div id="notice">$vboptions[drc_notice]</div> |
Quote:
Code:
<div id="notice">{vb:raw vboptions.drc_notice}</div> |
Quote:
is the vb:raw standard for all $ within templates in vb4 then? |
For output/echo values use curly braces and for array use dot syntax instead of square brackets.
https://www.vbulletin.com/docs/html?...rsion=40205500 - search for "template syntax" Quote:
|
Thanks shka (thinking in my head ShotKalla) lol
|
All times are GMT. The time now is 06:52 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|