Jump to content

How to add PHP to the fron page


Guest benfrain.com

Recommended Posts

Guest benfrain.com

I'd like to add an Image rotator to the front page of a site. Here is the 'rotator' PHP script I'll use: http://www.alistapart.com/articles/betterrotator

It's a great script I have used before on non-Cubecart sites. Essentially you upload the rotator.php script (the clever bit that does the roatations), upload a images.ini file (a text file which specifies the images you want to rotate and where you want them to link to) and then link to the PHP file in the page like so...

At the top of the page you add

<?php include('rotator.php'); ?>




And then when you want the rotating image to appear you add:




<?php showImage(); ?>

However, where can I add the PHP code in Cubecart - I understand the TPL files will strip it out? How does one go about inserting PHP into a page in Cubecart?

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.

×
×
  • Create New...