X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Problems displaying Flash Banner (https://forum.x-cart.com/showthread.php?t=14038)

shealey 05-16-2005 07:55 PM

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>


shealey 05-22-2005 11:41 PM

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.

jb1013 05-24-2005 12:04 AM

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

shealey 05-24-2005 09:53 PM

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!!

jb1013 05-24-2005 10:38 PM

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>


snorocket 05-24-2005 11:57 PM

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

jb1013 05-25-2005 07:22 AM

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

jb1013 05-25-2005 07:29 AM

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

shipmerchant 05-28-2005 02:03 PM

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. :D

jb1013 05-28-2005 03:16 PM

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


All times are GMT -8. The time now is 10:14 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.