I have a working version of this code in my template:
If the template contains other html code, it will be displayed even if vBShout doesn't have any output.
I would rather do it in PHP and call the template with a registered variable so I could output nothing at
all or call the template. So I want to set a variable so I can call whichever shout instance I want. However,
in the template I end up with {vb:raw show.vbshout_{vb:raw shout_inst}} where I have preregistered the
template and $shout_inst I can display {vb:raw show_inst} and it is correct. I can use {vb:raw show.instance2}
and that works, but when $show_inst == instance2, and I use {vb:raw show.vbshout_{vb:raw shout_inst}},
I get nada. Does anyone know how to properly include a variable in a vb:raw statement? I could find no clues
in any of the docs or google.
Thank you!
Rick
Code:
<vb:if condition="$foruminfo['forumid'] == x">{vb:raw show.vbshout_instance1}</vb:if>
If the template contains other html code, it will be displayed even if vBShout doesn't have any output.
I would rather do it in PHP and call the template with a registered variable so I could output nothing at
all or call the template. So I want to set a variable so I can call whichever shout instance I want. However,
in the template I end up with {vb:raw show.vbshout_{vb:raw shout_inst}} where I have preregistered the
template and $shout_inst I can display {vb:raw show_inst} and it is correct. I can use {vb:raw show.instance2}
and that works, but when $show_inst == instance2, and I use {vb:raw show.vbshout_{vb:raw shout_inst}},
I get nada. Does anyone know how to properly include a variable in a vb:raw statement? I could find no clues
in any of the docs or google.
Thank you!
Rick