who can I realize something like this:
Code: Select all
<img src="{serendipity_getFile file="img/{$template_option.colorset}_graph_bar_horisontal.png"}Code: Select all
<img src="{serendipity_getFile file="img/{$template_option.colorset}_graph_bar_horisontal.png"}Code: Select all
{assign var="searchfile" value=`img/{$template_option.colorset}_graph_bar_horisontal.png`}
<img src="{serendipity_getFile file=$searchfile}" />if I use this:garvinhicking wrote:Hi!
I believe something like this could work:
HTH,Code: Select all
{assign var="searchfile" value=`img/{$template_option.colorset}_graph_bar_horisontal.png`} <img src="{serendipity_getFile file=$searchfile}" />
Garvin
Code: Select all
{assign var="searchfile" value='img/{$template_option.colorset}_graph_bar_horisontal.png'}
file={$searchfile}-<br>Code: Select all
$template_config = array(
array(
'var' => 'colorset',
'name' => THEME_COLORSET,
'type' => 'select',
'default' => '',
'select_values' => $colorsets
),becausegarvinhicking wrote:Hi!
Why did you use different code than I pasted?
I used `and not ', that makes a big difference...
Code: Select all
{assign var="searchfile" value=`img/{$template_option.colorset}_graph_bar_horisontal.png`}
file={$searchfile}-<br>Code: Select all
{assign var="searchfile" value=`'img/' + $template_option.colorset + '_graph_bar_horisontal.png'`}
file={$searchfile}-<br>Code: Select all
$template_loaded_config = serendipity_loadThemeOptions($template_config, $serendipity['smarty_vars']['template_option']);
$serendipity['smarty']->assign('searchfile', 'img/' . $template_loaded_config['colorset'] . '_graph_bar_horisontal.png');