Jump to content

Clientside Banner rotation in WHMCS using php?


gr8green

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated