I'm running a clipshare tube site, and it uses .tpl files. I want to add some ad rotator script in php. However, it obviously won't run properly in a tpl file. Any suggestions on how to pull it off? The only options I can see is editting the htaccess so tpl can run php, or linking to the php file in the tpl. I'm not sure how to do either. Any help is greatly appreciated! Thanks.
You can just put the iframe code into a tpl file as it is, say: <IFRAME SRC="http://www.dream-dating.org/index.php" WIDTH=100 HEIGHT=100> </IFRAME> Zubair.
Well, the thing is that you're not supposed to need to use it in the tpl files. All of the logic should be done in the .php file and set as variables that you can use in the .tpl file. But if you insist on using it in the .tpl file, this can be done with {literal}<?php echo "php goes here"; ?>{/literal} http://www.smarty.net/manual/en/language.function.literal.php