Thread: Flash in X-cart
View Single Post
  #10  
Old 04-06-2008, 11:15 PM
 
Macy Macy is offline
 

Member
  
Join Date: Apr 2008
Posts: 17
 

Default Re: Flash in X-cart

I have tried following the instructions in this thread. However, I have had no success. The problem is I do not know html or php or "Smarty" (what ever that is). If anyone could help, this is what I did.

1. I downloaded the /shop/skin1/customer/main/welcome.tpl file from my host server to my personal computer.

2. I opened it in Dreamweaver CS3 and used Dreamwever to Insert > Flash. I inserted the Flash (.swf) right below this line "{$lng.txt_welcome}"

3. This is what Dreamweaver inserted in the code area:

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','250','heigh t','250','src','flash/Movie1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','flash/Movie1' ); //end AC code
</script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="250" height="250">
<param name="movie" value="flash/Movie1.swf" />
<param name="quality" value="high" />
<embed src="flash/Movie1.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="250" height="250"></embed>
</object></noscript>

4. I changed every reference of "flash/Movie1" to "{$ImagesDir}/Movie1". I did this because Movie1.swf was on my PC in a folder named flash. But, on the server it would be in another folder, presumably one named images. So, now the code looks like this:

<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','250','heigh t','250','src','{$ImagesDir}/Movie1','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movi e','{$ImagesDir}/Movie1' ); //end AC code
</script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="250" height="250">
<param name="movie" value="{$ImagesDir}/Movie1.swf" />
<param name="quality" value="high" />
<embed src="{$ImagesDir}/Movie1.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="250" height="250"></embed>
</object></noscript>

5. I save the welcome.tpl file in Dreamweaver.

6. Now, on the hosting co server I backup the original welcome.tpl to a different location and replace it with the newly uploaded Dreamweaver altered welcome.tpl file.

7. Because, I am not sure which "images" folder is being referenced by "{$ImagesDir}", I upload my "Movie1.swf" to all of them:
/shop/images
/shop/images/T (because it might be referring to images for Templates)
/shop/skin1/images

I even create an /images folder on the root.

8. Then, I held my breath and checked my website's home page to see my flash animation.

NOTHING happened. And I have no idea what to do. Any help is greatly appreciated.
__________________
X-Cart 4.1.9
Reply With Quote