Trying to get a php include to work properly in a tpl file (smarty), with no luck. I want to duplicate a url with variable like this one {$my_pligg_base}/play.php?id={$link_id} (this is working fine) Now i am trying to do something like: {php}include file='http://www.mysite.com/thumb.php?id={$link_id}'{/php} The include works, but i can't get the variable to show correctly inside the smarty php tags. Any advice would be greatly appreciated.
i don't think that you must variable throw smarty try define a variable in working php. next in tpl file try to use code like this: {PHP}include 'http://www.mysite.com/thumb.php?id='.$your_variable;{/PHP} PHP: I'm not tested this but i think this should work
Seems like the variable is not included with the URL. If i type http://www.mysite.com/thumb.php?id=28 it works fine {PHP}include 'http://www.mysite.com/thumb.php?id='.$your_variable;{/PHP} however is just getting processed as http://www.mysite.com/thumb.php?id= (variable is not being passed) Is it possible what i am trying to do?