Hi, Has anybody ever used a SSI Random Links rotator script in a CubeCart website? I'm trying to call the SSI but nothing is happening, also any ideas what command in the template I would use? Here's what I'm using: <?php include("phpadtext.php"); ?> with the actual script and text file in my root. Thanks
that isn't SSI dude, that's php. you are inclusing the file but not saying what to do with it once it is included. Here is what you are meaning to do... <?php require_once('phpadtext.php'); echo $output_variable; exit; ?> But I prefer to do this. Create a php file of any name and put this into it: <?php srand((double)microtime()*1000000); $array_ad = spliti("BREAKBREAKBREAK",join('',file("./Hbanner.txt"))); $Hbanner1 = $array_ad[rand(0,sizeof($array_ad)-1)]; echo $Hbanner; ?> Now upload a textfile named Hbanner.txt and chmod it to 666. Now, Put in your ads/links and betweek each one, put the text BREAKBREAKBREAK like this: <a href="#">Ad number one</a> BREAKBREAKBREAK <a href="#">Ad number two</a> BREAKBREAKBREAK <a href="#">Ad number three</a>