Guest benfrain.com Posted November 3, 2008 Share Posted November 3, 2008 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? Quote Link to comment Share on other sites More sharing options...
cb2004 Posted November 4, 2008 Share Posted November 4, 2008 You would have to assign the code to a template tag and then put the code into your template file! Quote Link to comment Share on other sites More sharing options...
Guest benfrain.com Posted November 4, 2008 Share Posted November 4, 2008 Apologies but where can I find more info about that and how it is done? 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.