View Single Post
  #2  
Old 10-30-2008, 04:01 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: Trouble with flash files in head.tpl

I don't use flash, but here is x-cart's solution...
Code:
{*** Remove this part of code if you want to replace a flash movie with an image *** <td valign="top"> <object type="application/x-shockwave-flash" data="{$ImagesDir}/custom/flash_logo.swf" width="341" height="206" id="flash_logo" align="top"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="{$ImagesDir}/custom/flash_logo.swf" /> <param name="menu" value="false" /> <param name="loop" value="false" /> <param name="quality" value="high" /> <param name="bgcolor" value="#ffffff" /> <param name="FlashVars" value="not_home_page={if $main eq "catalog" && $current_category.category eq ""}0{else}1{/if}&amp;final_image={#FinalImage#}&amp;company_name_path={$ImagesDir}/custom/company_name.swf&amp;home_path={$current_location}/customer/home.php" /> <param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" /> <param name="swLiveConnect" value="true" /> </object> </td> *** Remove this part of code if you want to replace a flash movie with an image ***}

It goes in head.tpl in place of where the logo is normally displayed.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote