sliver
09-08-2008, 05:20 PM
Hi all
i'm a newbie scripting with php-mysql and i've problem writing an addon.
I want to do in mysecretaddon.php something like this:
if($var==1){
$secret = '<GOOGLEMAP>';
}elseif($var==2){
$secret = '<THUMBNAILS>';
}else{
$secret = '<ANOTHERTAG>';
}
$tpl = str_replace("<SECRETADDON>",$secret,$tpl);
but when i try it doesn't work...
so there's any workarount to execute <TAG> from a php addons file?
thank you very much
i'm a newbie scripting with php-mysql and i've problem writing an addon.
I want to do in mysecretaddon.php something like this:
if($var==1){
$secret = '<GOOGLEMAP>';
}elseif($var==2){
$secret = '<THUMBNAILS>';
}else{
$secret = '<ANOTHERTAG>';
}
$tpl = str_replace("<SECRETADDON>",$secret,$tpl);
but when i try it doesn't work...
so there's any workarount to execute <TAG> from a php addons file?
thank you very much