View Single Post
  #2  
Old 01-29-2009, 01:26 AM
  Yurij's Avatar 
Yurij Yurij is offline
Banned
 

X-Adept
  
Join Date: Jan 2008
Posts: 486
 

Default Re: adding flash to the welcome.tpl

Quote:
Originally Posted by tbm
hi,

trying to figure out the best way to add a small flash movie to my front page. currently i'm using a static image embedded in the welcome.tpl file. here's the code:

Code:
{* $Id: welcome.tpl,v 1.28.2.1 2006/07/12 04:51:17 svowl Exp $ *} {*DELETED HEADLINE AREA*} {* {if ($active_modules.Greet_Visitor ne "") and ($smarty.cookies.GreetingCookie ne "") and $logout_user eq ''} {assign var="_name" value=$smarty.cookies.GreetingCookie|replace:"\'":"'"} <h3>{$lng.lbl_welcome_back|substitute:"name":$_name} </h3> {elseif $lng.lbl_site_title} <h3>{$lng.lbl_welcome_to|substitute:"company":$lng.lbl_site_title}</h3> {else} <h3>{$lng.lbl_welcome_to|substitute:"company":$config.Company.company_name}</h3> {/if} *} <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td><img src="{$ImagesDir}/front_page1.jpg"></td> <td class="frontpageRight">{$lng.txt_welcome}</td> </tr> </table> <br /> {if $active_modules.Bestsellers ne "" and $config.Bestsellers.bestsellers_menu ne "Y"} {include file="modules/Bestsellers/bestsellers.tpl"} {/if} <br /> {include file="customer/main/featured.tpl" f_products=$f_products}

simply replacing the "{$ImagesDir}/front_page1.jpg" with "{$ImagesDir}/front_page1.swf" aint working, so what do i need to do?

i did check out this thread but i couldn't really make sense of it. any help would be greatly appreciated.

You can not insert a flash as a picture.
You need to use a special code to insert a flash.

PHP Code:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" 
WIDTH=264 HEIGHT=195
<
PARAM NAME=movie VALUE="{$ImagesDir}/front_page1.swf"
<
PARAM NAME=menu VALUE=false
<
PARAM NAME=quality VALUE=high
<
PARAM NAME=wmode VALUE=transparent
<
PARAM NAME=scale VALUE=noscale>
<
EMBED src={$ImagesDir}/front_page1.swf menu=false quality=high wmode=transparent scale=noscale WIDTH=264 HEIGHT=195 TYPE="application/x-shockwave-flash" 
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">
</
EMBED>
</
OBJECT
Reply With Quote