Dr.CustUmz
02-15-2021, 01:50 PM
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)
<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>
and my img src is printing as "$vboptions[drc_img]" rather than the option.
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...
<div id="notice">$vboptions[drc_notice]</div>
my code is as follows: (within a template)
<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>
and my img src is printing as "$vboptions[drc_img]" rather than the option.
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...
<div id="notice">$vboptions[drc_notice]</div>