The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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] == ''"> $('[id^="post_message_"] img').css('display','none'); <vb:else /> $('[id^="post_message_"] img').attr('src','$vboptions[drc_img]'); </vb:if> <vb:if condition="$vboptions[drc_notice]"> $('#notice').show(); </vb:if> 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> |
#2
|
|||
|
|||
Quote:
Code:
<div id="notice">{vb:raw vboptions.drc_notice}</div> |
Благодарность от: | ||
Dr.CustUmz |
#3
|
||||
|
||||
THANK YOU!
is the vb:raw standard for all $ within templates in vb4 then? |
#4
|
|||
|
|||
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:
|
#5
|
||||
|
||||
Thanks shka (thinking in my head ShotKalla) lol
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|