Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Add flash in a .tpl

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-01-2009, 06:27 AM
 
et-sa et-sa is offline
 

Newbie
  
Join Date: May 2008
Posts: 3
 

Unhappy Add flash in a .tpl

hi, i'm trying to put a flash newsbox into the file news.tpl but nothing happen...i tried with a wrapper page and with this example(http://www.xcartmods.co.uk/adding-flash-x-cart-mods-pg-8.html) with no result......anybody has an idea???
__________________
xcart 4[1].1.12pro
Reply With Quote
  #2  
Old 04-01-2009, 07:34 AM
  Petepots's Avatar 
Petepots Petepots is offline
 

eXpert
  
Join Date: Aug 2007
Location: Surrey, UK
Posts: 275
 

Default Re: Add flash in a .tpl

I am having the same problem except I get "swfobect" is undefind error

All I have done is to follow the below url
http://www.xcartmods.co.uk/adding-flash-x-cart-mods-pg-8.html

I downloaded the file
placed the "flash" folder in skin1
copied the texted given in that file in my txt_welcome

and then I get that "swfobect" is undefind

Its so simple to install, what have I done wrong
__________________
Version 4.7.2
Reply With Quote
  #3  
Old 04-01-2009, 07:43 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Add flash in a .tpl

the very first line
Code:
<script type="text/javascript" src="{$SkinDir}/flash/swfobject.js"></script>

should be
Code:
<script type="text/javascript" src="swfobject.js"></script>

In this example is assumed that swf file is in the flash directory
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #4  
Old 04-01-2009, 08:13 AM
  Petepots's Avatar 
Petepots Petepots is offline
 

eXpert
  
Join Date: Aug 2007
Location: Surrey, UK
Posts: 275
 

Default Re: Add flash in a .tpl

Thanks Victor

But it still gives the same error

I don't understand why you took the flash folder out of that string surely xcart wont know where the 3 files are located
__________________
Version 4.7.2
Reply With Quote
  #5  
Old 04-01-2009, 08:20 AM
  Victor D's Avatar 
Victor D Victor D is offline
 

X-Adept
  
Join Date: Aug 2008
Posts: 643
 

Default Re: Add flash in a .tpl

swfobject.js is located directly in skin1 folder for default x-cart skin after installation. Just look into skin1
I have missed $SkinDir... sad but true.
Code:
<script type="text/javascript" src="{$SkinDir}/swfobject.js"></script>

check spelling for swfobject in your previous post "j" is missing
__________________
Regards,
Victor Dubiniuk

X-Cart Skins Store
- twenty two different skins for 4.1.x and 4.2.x;
- 4.3.x compatible versions are available;
- refresh you store now!

Smart menu X-Cart add-on for 4.1.8 - 4.3.x
Featured Products Slide Show X-Cart add-on for 4.1.8 - 4.3.x
Reply With Quote
  #6  
Old 04-01-2009, 08:55 AM
  Petepots's Avatar 
Petepots Petepots is offline
 

eXpert
  
Join Date: Aug 2007
Location: Surrey, UK
Posts: 275
 

Default Re: Add flash in a .tpl

Victor sorry about the spelling

Still giving me the same error I do have the swfobject in both flash and skin1 directorys, so what the file read to start with was

<script type="text/javascript" src="{$SkinDir}/flash/swfobject.js"></script>

then you changed it to

<script type="text/javascript" src="{$SkinDir}/swfobject.js"></script>

as I said the swfobject.js is in both, so I cant understand why I get this error
__________________
Version 4.7.2
Reply With Quote
  #7  
Old 04-01-2009, 09:05 AM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

Default Re: Add flash in a .tpl

THis is what I have on my top page and it works:

object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="511" height="140" id="welcome_header" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="welcome_header.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="http://www.MYDOMAIN.com/images/categoryheaders/welcome_header.swf" quality="high" bgcolor="#ffffff" width="511" height="140" name="welcome_header" align="middle" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

hope this helps
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
  #8  
Old 04-01-2009, 09:17 AM
 
Jerrad Jerrad is offline
 

X-Adept
  
Join Date: Nov 2004
Location: The Netherlands
Posts: 484
 

Default Re: Add flash in a .tpl

And this works great for me

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="676" height="300" id="front_1" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="/front_1.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="/front_1.swf" quality="high" bgcolor="#ffffff" width="676" height="300" name="front_1" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer_nl" />
</object>
__________________
X-Cart 4.0.12
Heavy modified with paid, free and forum mods.
PHP 5.2.5 | MYSQL 5.0.51a
Reply With Quote
  #9  
Old 04-02-2009, 02:31 AM
  Petepots's Avatar 
Petepots Petepots is offline
 

eXpert
  
Join Date: Aug 2007
Location: Surrey, UK
Posts: 275
 

Default Re: Add flash in a .tpl

Thanks guys for your help

I got it to work by taking out {$SkinDir}/ and replaced it by skin1/

What I would like to know is why wont it work using {$SkinDir}/ on the code





<script type="text/javascript" src="{$SkinDir}/flash/swfobject.js"></script>
<script type="text/javascript">
swfobject.registerObject("myId", "9.0.0", "{$SkinDir}/flash/expressInstall.swf");
</script>
<div style="text-align:center;">
<object id="myId" classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" width="200" height="200">
<param name="movie" value="{$SkinDir}/flash/xcart.swf" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="{$SkinDir}/flash/xcart.swf" width="200" height="200">
<!--<![endif]-->
<div>
<h1>Please Install Flash</h1>
<p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
__________________
Version 4.7.2
Reply With Quote
  #10  
Old 04-02-2009, 09:13 AM
  crazyoval's Avatar 
crazyoval crazyoval is offline
 

X-Adept
  
Join Date: Jun 2006
Location: UK
Posts: 559
 

Default Re: Add flash in a .tpl

Petebots, are you making this too hard? why do you need all that smarty stuff in there for your flash player? (excuse my ignorance)
__________________
X-Cart 4.1.11 on Linux
HandsOnWebHosting: Very helpful & professional
Custom Skin Design by ARS.
Numerous, ney, hundreds of modifications by ARS.
AlteredCart: Download Expander, One Page Checkout,
BCS Engineering: Great team, Top service.
WebsiteCM: good products & very professional
CDSEO, Hidden Categories, Custom Work
Magnetic One Store Manager: Brill
Forms To Go: Excellent+A+support
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 04:16 AM.

   

 
X-Cart forums © 2001-2020