rjones@abnllc.com Posted March 23, 2010 Share Posted March 23, 2010 Hello All, I hope someone can shed some light on this. I have installed Bill's STS 4.6 on a new site. A GREAT ADD ON! I am trying to customize the $content$ on the Home/Index page. I want to add a flash script to scroll through some product photos. So I thought great I will just configure STS index (which is on) I am using template number 061 that was included with the install. I have enabled all four STS modules on the admin side. I then added a new file to the content folder inside the freeoscommerce_template_061 folder. I named the new file index.php_0.html, (which I think is correct?) So the path is catalog\includes\sts_templates\freeosc_061\content\index.php_0.html. I thought that would load the new file on the home page in the content area, but it does not. I was thinking that I could add the html code to load the flash swf file inside the index.php_0.html file but I am obviously missing a couple of steps. If I move the index.php_0.html file up one level so it is in the freeosc_061 folder It loads as the home page, but when I drill down one level in the site it is still there and I need things to go back to the original content once you drill down. The site I am playing with is www.nebwaters.com. I have spent several hours looking through the forum and also gone through the STS 4.5.8 contribution from Chris Buchi support paper, Which helped me understand the logic better. But I am still missing something. Thank you in advance for any assistance. Quote Link to comment Share on other sites More sharing options...
multimixer Posted March 23, 2010 Share Posted March 23, 2010 If you know where the forum is, hen the best is you post your question to there If you search a little, there is also a post about how to add a flash movie Quote My community profile | Template system for osCommerce - New: Responsive | Feedback channel Link to comment Share on other sites More sharing options...
bkellum Posted March 24, 2010 Share Posted March 24, 2010 Hello and thanks for the kind comments regarding STSv4.6. First, please post your question in the proper STS Support Thread. You can find the link in my signature below. The answers to all of your questions are quite simple and you can find them in the listed support thread. See you there... Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE Link to comment Share on other sites More sharing options...
rjones@abnllc.com Posted March 24, 2010 Author Share Posted March 24, 2010 Ok, I am making headway. I found the post on the flash movie, Bill Kellum post #4735. I copied the code box to a text file and named it "swfobject.js" I then created a flash folder and placed the file inside the flash folder. The path is mystore/includes/sts_templates/freeoscomm_061/flash/swfobject.js. I then copied this line of code to the sts_template.html "<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>". I then pasted this code in the index.php_0.html file inside the freeoscomm_061 folder where I want the movie to play. <td class="styleFlash"> <script type="text/javascript" src="$templatedir/flash/swfobject.js"></script> <div id="flashcontent">This text is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("images/flash/your_flash_movie.swf", "movie", "763", "368", "8", "#ffffff"); so.write("flashcontent"); </script> </td> and finally I added a folder to my base images folder called flash and copied my flash movie to this folder..... I also renamed my flash movie to "your_flash_movie.swf" thinking that matched all the references. Any ideas as to why all I see is the code text I added to my index.php_0.html file when I view the store in a browser? Thanks for the help. RJ Quote Link to comment Share on other sites More sharing options...
bkellum Posted April 16, 2010 Share Posted April 16, 2010 Ok, I am making headway. I found the post on the flash movie, Bill Kellum post #4735. I copied the code box to a text file and named it "swfobject.js" I then created a flash folder and placed the file inside the flash folder. The path is mystore/includes/sts_templates/freeoscomm_061/flash/swfobject.js. I then copied this line of code to the sts_template.html "<script type="text/javascript" src="$templatedir/flash/swfobject.js"></script>". I then pasted this code in the index.php_0.html file inside the freeoscomm_061 folder where I want the movie to play. <td class="styleFlash"> <script type="text/javascript" src="$templatedir/flash/swfobject.js"></script> <div id="flashcontent">This text is replaced by the Flash movie. </div> <script type="text/javascript"> var so = new SWFObject("images/flash/your_flash_movie.swf", "movie", "763", "368", "8", "#ffffff"); so.write("flashcontent"); </script> </td> and finally I added a folder to my base images folder called flash and copied my flash movie to this folder..... I also renamed my flash movie to "your_flash_movie.swf" thinking that matched all the references. Any ideas as to why all I see is the code text I added to my index.php_0.html file when I view the store in a browser? Thanks for the help. RJ Please visit the STSv4 Support Thread. Link is in the STS User Manual as well as in my signature below. Quote Bill Kellum Sounds Good Productions STS Tutorials & more: STSv4.6, STS Add-ons (STS Power Pack), STS V4 Forum STS Forum FREE TEMPLATE 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.