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

Problems displaying Flash Banner

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2005, 07:55 PM
 
shealey shealey is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 8
 

Default Problems displaying Flash Banner

I have been searching continuously for an answer to this and am close to giving up. I have created a Flash header that I want to be displayed at the top of the page. I have included the Flash code in head.tpl as shown below. When I view the page, it hangs with 1 item to download and the flash banner just appears as whitespace. You can right click on where the flash should be and the Flash menu options appears (Play, Loop, About Flash etc). If anyone could help me it would be great as this seems like a really simple thing but I cant get it to work & I dont want to buy a mod. You can view it at http://www.supplementzone.com.au/xcart/home.php

Code:
{* $Id: head.tpl,v 1.40.2.3 2004/11/19 06:40:15 max Exp $ *} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <HTML> <HEAD> <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> <TITLE>xlogo</TITLE> </HEAD> <TD> <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="1000" HEIGHT="148" id="xlogo" ALIGN=""> <PARAM NAME="movie" VALUE="{$ImagesDir}/xlogo.swf"> <PARAM NAME="quality" VALUE="high"> <EMBED src="{$ImagesDir}/xlogo.swf" quality=high WIDTH="1000" HEIGHT="184" NAME="xlogo" ALIGN="left" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> </TD>
__________________
szone
xcart v 4.0.12 [win]
Reply With Quote
  #2  
Old 05-22-2005, 11:41 PM
 
shealey shealey is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 8
 

Default will someone please reply??

Could someone please help me? No one has replied and all i want is to be able to insert flash into my header??
Thankyou.
__________________
szone
xcart v 4.0.12 [win]
Reply With Quote
  #3  
Old 05-24-2005, 12:04 AM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default Try removing this

Try removing this from the head.tpl file

Code:
<HTML> <HEAD> <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> <TITLE>xlogo</TITLE> </HEAD>

See if that fixes the problem. Also make sure that the .swf file is uploaded to the Skin1/images folder.

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
  #4  
Old 05-24-2005, 09:53 PM
 
shealey shealey is offline
 

Newbie
  
Join Date: Apr 2005
Posts: 8
 

Default Doesnt work

jb1013 Thankyou for your suggestion but it didnt work. The page still comes up as 1 item remaining, and when you right click on where the movie should be it says movie not loaded.
Can anyone please help to correctly insert my Flash header? PLEASE!!
__________________
szone
xcart v 4.0.12 [win]
Reply With Quote
  #5  
Old 05-24-2005, 10:38 PM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default Here's my head.tpl which has a working Flash Header

Here's my head.tpl which has a working Flash Header. Hope it helps.

Code:
{* $Id: head.tpl,v 1.40.2.3 2004/11/19 06:40:15 max Exp $ *} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="760" height="200"> <param name="movie" value="/~marquis/header.swf" /> <param name="quality" value="high" /> <param name="bgcolor" value="#800000" /> <param name=FlashVars value="slideshow=store"/> <embed src="/~marquis/header.swf" flashvars="slideshow=store" quality="high" bgcolor="#800000" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="760" height="200"></embed> </object> </TD> </TR> </TABLE> <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <TD class="VertMenuBorder">[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> <TR> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> </TR> {******** Remove this line to display how much products there are online **** <TR> <TD class="NumberOfArticles" align="right">{insert name="productsonline"} {$lng.lbl_products} {if $config.Appearance.show_in_stock eq "Y"}{$lng.lbl_and} {insert name="itemsonline"} {$lng.lbl_items} {/if}{$lng.lbl_online}</TD> </TR> **** Remove this line to display how much products there are online ********} <TR> <TD valign="middle" height="32"> <TABLE cellspacing="0" cellpadding="0" border="0" width="100%" height="18"> <TR> <TD>[img]{$ImagesDir}/spacer.gif[/img]</TD> {if (($main eq 'catalog' && $cat ne '') || $main eq 'product' || ($main eq 'comparison' && $mode eq 'compare_table') || ($main eq 'choosing' && $smarty.get.mode eq 'choose')) && $config.Appearance.enabled_printable_version eq 'Y'} <TD valign="middle" align="right">{include file="printable.tpl"}</TD> <TD width="20"></TD> <TD align="center"></TD> <TD width="20"></TD> {/if} </TR> </TABLE> </TD> </TR> </TABLE>
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
  #6  
Old 05-24-2005, 11:57 PM
 
snorocket snorocket is offline
 

X-Adept
  
Join Date: Dec 2002
Posts: 403
 

Default I don't thin k flash works in x-cart

I don't think flash works in x-cart, I've tried it myself and gave up, BOOMER has a mod that will make flash work. I know this sucks bigtime because flash should be supported by x-cart out-of-the-box, BOOMERS flash link below:

http://www.cart-lab.com/lab/customer/product.php?productid=46&cat=0&page=1#tabs
Reply With Quote
  #7  
Old 05-25-2005, 07:22 AM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default Flash worked for me

http://www.themarquistheater.com/store/xcart/home.php

The store is heavily moded and still in development, but I didn't do any thing special to get the Flash Header working. My head.tpl is above, so hopefully you can figure out what your missing.

Good Luck,

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
  #8  
Old 05-25-2005, 07:29 AM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default Is this All of your head.tpl?

Code:
{* $Id: head.tpl,v 1.40.2.3 2004/11/19 06:40:15 max Exp $ *} <TABLE border="0" cellpadding="0" cellspacing="0" width="100%"> <TR> <HTML> <HEAD> <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> <TITLE>xlogo</TITLE> </HEAD> <TD> <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="1000" HEIGHT="148" id="xlogo" ALIGN=""> <PARAM NAME="movie" VALUE="{$ImagesDir}/xlogo.swf"> <PARAM NAME="quality" VALUE="high"> <EMBED src="{$ImagesDir}/xlogo.swf" quality=high WIDTH="1000" HEIGHT="184" NAME="xlogo" ALIGN="left" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED> </OBJECT> </TD>

Is this everything? First thing that I noticed was that
Code:
<HTML> <HEAD> <meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1"> <TITLE>xlogo</TITLE> </HEAD>
is randomly out of place and shouldn't even be there at all.

The second thing you might want to check assuming this is everything is that you have unclosed <TR> and <Table> tags.

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
Reply With Quote
  #9  
Old 05-28-2005, 02:03 PM
  shipmerchant's Avatar 
shipmerchant shipmerchant is offline
 

eXpert
  
Join Date: Mar 2005
Posts: 361
 

Default Jason Cool site!

Hi Jason,

You have a cool site.... I will be probably adding a flash to to my pages here in a few weeks and will be following your advice. Hopefully I will be as sucessful as you in implementing this.

Not to change the subject or anything: how did you get that cool red background in?

THanks in advance.
__________________
Mil Mascaras
Live Xcart Site #1-V- 4.1.8
Live Xcart site # 2-V 4.4.3
CDSEO Mod - Firetank MM30 - 7DANA- The bestTemplates!
Linux - EWD Host Servers awesome service!
AlteredCart One Page Checkout
Reply With Quote
  #10  
Old 05-28-2005, 03:16 PM
 
jb1013 jb1013 is offline
 

Advanced Member
  
Join Date: Jul 2004
Posts: 80
 

Default

Check this thread for some more details on the gradient background.
http://forum.x-cart.com/viewtopic.php?t=19547&highlight=

Here's what I modified.

The body tag has a background image added in skin1.css

Code:
body { text-align: left; background:url(../../../images/bg.gif) repeat-y center center; background-attachment: fixed;

Here's the image:

http://www.themarquistheater.com/images/bg.gif

Then I added this class to skin1.css

Code:
.gradient { background-image:url(../../../images/bg_gradient_moments.gif); background-repeat: repeat-x; }

Then this is the last three lines of rectangle_top.tpl

Code:
<TABLE class="gradient" align="center" border="0" cellpadding="0" cellspacing="0" width="{$width|default:"760px"}" height="100%"> <TR> <TD valign="top">

The bg_gradient_moments.gif image can be veiwed here:

http://www.themarquistheater.com/images/bg_gradient_moments.gif

Hope that helps.

Peace,

JB
__________________
Jason Brantley
Axis Computer Conuslting
www.axiscc.com
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 02:39 AM.

   

 
X-Cart forums © 2001-2020