@NaN so no
So {supersizer path="/uploads/$one.pic" width='190' height='95' } should work imho.
doesn't work and it's due to something a little more basic..
Single/Double quotes just tell the smarty engine if the value should be handled as a variable or just as a string.
This is everywhere, php etc..
Smarty need the back tick because in php you can't say var phptest="/uploads/$one.test"; it'd be var phptest="/uploads/".$one.test;
to which the back tick tries to solve this issues where smarty can't do this..
{assign var=bar value="image.jpg"}
{assign var=foo value="uploads/".$bar}
from that you need to go
{assign var=bar value="image.jpg"}
{assign var=foo value="uploads/`$bar`"}
here is a quick test and the output.. thru CGblogs
Code: Select all
{assign var=bar value="image.jpg"}
{assign var=foo value="uploads/".$bar}
{$foo}
<br/>__________________________<br/>
{assign var=bar value="image.jpg"}
{assign var=foo value="uploads/`$bar`"}
{$foo}
<br/>__________________________<br/>
{assign var=bar value="$event.event_created_by"}
{assign var=foo value="uploads/`$bar`"}
{$foo}
<br/>__________________________<br/>
{assign var=bar value=$event.event_created_by}
{assign var=foo value="uploads/`$bar`"}
{$foo}
where
$event.event_created_by = 3
and the ouput
"uploads/".image.jpg
__________________________
uploads/image.jpg
__________________________
uploads/Array.event_created_by
__________________________
uploads/3
the cool things is from that you can use a {{}} in smarty, just with a capture.. but that is a whole other topic... hope that clears it up a little.. that or I at least didn't muddy it more
@kendo451 I'll take a look here in a bit and she what the heck I drops and try to produce the failure.. hard to fix what you can see

I’ll get back here soon on that.. tk