Zen Cart Logo
Forums / Addon Sideboxes / How to embed SFE file into the page?

How to embed SFE file into the page?

Views: 2,430

Results 1 to 16 of 16
14 Apr 2011, 10:20 PM
#1
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

How to embed SFE file into the page?

Hello,

I have tried to make animated (flash) banner by using Flash banner creator. I published the file into html and swf format. After that I copied html code into the Banner manager in Admin Panel. But nothing has appeared on the page. Only white area in the size of the banner.

Here is html code which I published. Any idea what could be a problem?

Html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> </head> <body bgcolor="#FFFFFF"> <p> <p> <style type="text/css"> <!-- .style1 { color: #006633; font-weight: bold; } --> </style> <!-- saved from url=(0013)about:internet --> <table align="center" border="0" cellpadding=0 cellspacing=0> <tr> <td align="center"></td> </tr> <tr><td align="center"><br /></td></tr> <tr> <td align="center"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="700" height="130" id="tech" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="mybanner.swf" /> <param name="quality" value="high" /> <embed src="mybanner.swf" quality="high" width="700" height="130" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </td> </tr> </table> </body> </html>
14 Apr 2011, 10:46 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to embed SFE file into the page?

Only use code that is in between the <body> tags

Zen-Venom Get Bitten

14 Apr 2011, 10:48 PM
#3
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to embed SFE file into the page?

Removed

Zen-Venom Get Bitten

14 Apr 2011, 11:48 PM
#5
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to embed SFE file into the page?

post link to it

And what you now have for code

Zen-Venom Get Bitten

15 Apr 2011, 9:12 AM
#6
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: How to embed SFE file into the page?

Now the code looks like this:

<body bgcolor="#FFFFFF"> <p> <p> <style type="text/css"> <!-- .style1 { color: #006633; font-weight: bold; } --> </style> <!-- saved from url=(0013)about:internet --> <table align="center" border="0" cellpadding=0 cellspacing=0> <tr> <td align="center"></td> </tr> <tr><td align="center"><br /></td></tr> <tr> <td align="center"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="700" height="130" id="tech" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="mybanner.swf" /> <param name="quality" value="high" /> <embed src="mybanner.swf" quality="high" width="700" height="130" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </td> </tr> </table> </body>
15 Apr 2011, 11:19 PM
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to embed SFE file into the page?

post link to it

Zen-Venom Get Bitten

15 Apr 2011, 11:21 PM
#8
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: How to embed SFE file into the page?

remove the body tags

Lazar:

Now the code looks like this:

<body bgcolor="#FFFFFF"> <p> <p> <style type="text/css"> <!-- .style1 { color: #006633; font-weight: bold; } --> </style> <!-- saved from url=(0013)about:internet --> <table align="center" border="0" cellpadding=0 cellspacing=0> <tr> <td align="center"></td> </tr> <tr><td align="center"><br /></td></tr> <tr> <td align="center"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="700" height="130" id="tech" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="mybanner.swf" /> <param name="quality" value="high" /> <embed src="mybanner.swf" quality="high" width="700" height="130" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </td> </tr> </table> </body>

Webzings Design
Semi retired from Web Design

15 Apr 2011, 11:44 PM
#9
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to embed SFE file into the page?

nigelt74:

remove the body tags
Good catch, nigelt74
kobra:

Only use code that is in between the <body> tags

I was looking for a link to view the source for the js

Zen-Venom Get Bitten

16 Apr 2011, 5:41 PM
#11
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: How to embed SFE file into the page?

Lazar,

That is not a link to your ZenCart

Zen-Venom Get Bitten

16 Apr 2011, 8:58 PM
#12
nigelt74 avatar

nigelt74

Totally Zenned

Join Date:
Sep 2005
Location:
Waikato, New Zealand
Posts:
1,558
Plugin Contributions:
1

Re: How to embed SFE file into the page?

Lazar we need a link to the cart page that you are trying to use this banner on, preferably with the banner code there so we can see what is going wrong

Where exactly are you putting the banner.swf file, as it doesn't appear to be in the directory with that html file

Webzings Design
Semi retired from Web Design

22 Apr 2011, 9:37 AM
#13
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: How to embed SFE file into the page?

nigelt74:

Lazar we need a link to the cart page that you are trying to use this banner on, preferably with the banner code there so we can see what is going wrong

Where exactly are you putting the banner.swf file, as it doesn't appear to be in the directory with that html file

Hi guys,

here is the link:
http://online-shop.danilo-prvi.me/index.php?main_page=index&language=en

An also here is what I did. I insert html code of the banner into the define_main_page.php:

includes/languages/english/html_includes/define_main_page.php

The banner doesn't appear at the main page.
Any idea about this?
Manu thanks.

22 Apr 2011, 12:39 PM
#14
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: How to embed SFE file into the page?

Please take in the consideration this post because of some changes.
So, the link for the banner is the same:
http://online-shop.danilo-prvi.me/index.php?main_page=index&language=en

HTML code for the banner is embeded into the define_main_page.php located in:
inludes/languages/english/ html_includes/orange/define_main_page.php (orange is the name of the current template applied in zen cart).

There're three images in the banner. Only the first one has a link towards a product.
The banner doesn't appear at the main page where is supposed to be. Only white area can be seen.

This is the html code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title></title> </head> <body bgcolor="#FFFFFF"> <p> <p> <style type="text/css"> <!-- .style1 { color: #006633; font-weight: bold; } --> </style> <!-- saved from url=(0013)about:internet --> <table align="center" border="0" cellpadding=0 cellspacing=0> <tr> <td align="center"></td> </tr> <tr><td align="center"><br /></td></tr> <tr> <td align="center"> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="420" height="300" id="tech" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="mybanner.swf" /> <param name="quality" value="high" /> <embed src="mybanner.swf" quality="high" width="420" height="300" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object> </td> </tr> </table> </body> </html>

Regards

22 Apr 2011, 5:45 PM
#15
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: How to embed SFE file into the page?

kobra:

Lazar,

That is not a link to your ZenCart

I think that I need to upload swf file, not only html code. I've tried it but nothing has been changed. Maybe I didn't upload swf file into correct directory.
Any idea about this?

Regards

22 Apr 2011, 6:09 PM
#16
lazar avatar

lazar

Zen Follower

Join Date:
Feb 2011
Location:
Between London and Cetinje
Posts:
109
Plugin Contributions:
0

Re: How to embed SFE file into the page?

Finally works.

The HTML code is:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="420" height="300" id="tech" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="mybanner.swf" />
<param name="quality" value="high" />
<embed src="mybanner.swf" quality="high" width="420" height="300" name="tech" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

(lines between object tags)

SWF file is uploaded at the root directory of the website.