gr8green Posted July 25, 2010 Share Posted July 25, 2010 Is it possible to add php to the tpl files? I have a banner rotation set up on my regular php layout (The banners are added to my site through my cPanel) I would like to have the same banner layout on my WHMCS areas this is the code to display my banners <div align="right"> <?php $file = file_get_contents ('http://gr8greenhosting.com/banner.shtml'); Echo $file; ?> </div> I did it in php, because the only other option was to have this code on .shtm or .shtml files <!--#include virtual="cgi-bin/entropybanner.cgi"--> to have them display I'm sure I could do it with an iframe but would rather avoid that if I could this is my sites home page http://gr8greenhosting.com/ I would like to get that banner to show on the client side as well Thanks in advance for any input 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted July 26, 2010 WHMCS Support Manager Share Posted July 26, 2010 Yes absolutely. PHP needs to be wrapped in {php} tags an javascript (and others) in {literal} tags. For more please review http://wiki.whmcs.com/Template_Syntax 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.