-
Problem with Flash Header
Hi:
I wonder if someone can help me. I have changed my header logo into a flash on but the flash.swf doesn´t load. I mean, it seems that it loads but theres is no image and the page doesn´t finish loading.
When I roll the mouse over the flash image there is a message that says: "click to activate and use the control".
I don´t know what to do.
Please help me!!!
-
Re: Problem with Flash Header
Maybe it could be important: I´m using 1.3.5 ZenCart version. How many files do I have to change in this version in order to change to a flas header?
-
Re: Problem with Flash Header
You are more than likely using IE to view your site and therefore you are caught in the problem with IE and Macromedia legal disputes.
See this post for information on getting flash to display properly in IE :
http://www.zen-cart.com/forum/showth...ght=java+flash
-
Re: Problem with Flash Header
Hi Tina, thanks a lot for answering me. I have some more questions. I understand that I have to create a javascript file but:
1. I´m using a customized template, Do I have to create a directory name jscript" or I have to put the java script in Template_default/jscript?
2. After de java script I have to write this :"<script src="includes/templates/blue_strip/jscript/paragone.js"></script>". Where do I write it? I mean; What subdirectory or file?
Thanks a lot for your time.
Hector
-
Re: Problem with Flash Header
You would want to place the javascript portion in the folder includes/templates/YOUR_TEMPLATE/javascript
The code to call it will go where you would normally put you <embed....... > code so in your case it would be in includes/templates/YOUR_TEMPLATE/common/tpl_header.php since you are using a flash header.
Hope that helps clarify it a little more for you !
-
Re: Problem with Flash Header
Thanks again. It didnt work. Maybe there´s something I´m doing wrong buty I don´t know what.
Good luck!
Hector
-
Re: Problem with Flash Header
With refer to the other topic at Reviewer's Corner Shop has gone live: please review
Our fellow member JohneeMac suggested the following for the Flash.
SWFObject: Javascript Flash Player detection and embed script
I had tested, it works, with more functions and with XHTML validation.
And below are the steps of the test which use the JavaScript download from the above site.
1. save the header Flash file to the following directory (just for example)
includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf
2. download the zip packaged file from the above site
3. unzip and save the included swfobject.js file (not compressed and about 6.5 KB) to your ZC template directory
includes/templates/YOUR_TEMPLTE/jscript/swfobject.js
4. If in before, the tpl_header.php had not been modified,
then copy the following file:
includes/templates/template_default/common/tpl_header.php
and save it to your template override directory:
include/templates/YOUR_TEMPALTE/common/tpl_header.php
5. Open up the new saved tpl_header.php file in your override directory
include/templates/YOUR_TEMPALTE/common/tpl_header.php
Add and modify the codes according to your requirements.
For detail usuages, please refer to the docs and the original site for more infos.
For example,
in the tpl_header.php, just insert the codes for Flash below the section of:
<!--bof-branding display-->
<div id="logoWrapper">
PHP Code:
<!--bof-branding display-->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf", "YOUR_HEADER", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
Note:
In the above codes, where:
YOUR_TEMPLATE = the name of your template.
YOUR_HEADER = the file name of your Flash file.
.
-
Re: Problem with Flash Header
Thanks, I´ll try.
Good luck,
Hector
-
Re: Problem with Flash Header
Guess I screwed up correctly for a change!
My flash file works in IE but not FF
Quote:
echo '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="150" width="750" id="Flash1">
<param name="Movie" value="images/main.swf" />
<param name="Quality" value="AutoLow" />
<param name="Loop" value="1" />
<param name="Play" value="1" />
<param name="Scale" value="exactfit" />
<param name="WMode" value="Window" />
<param name="SAlign" value="l" />
</object>';
Go figure!
-
Re: Problem with Flash Header
i've submitted a contribution that resolves this issue. if you can't wait for the review, you can download it at ############llc.com.
from your link at deconcept, the primary issue with zen cart owners is usually the 2nd bullet point under 1) The default Macromedia provided embed.
requiring flash activation before using it will certainly drive potential customers away. however, i don't buy the detection issue because of the flash penetration rate, which is over 97%. most people know of adobe(macromedia) and the flash player and trust it.
the nnez solution reduces the [script] [noscript] object embed + click to activate issues with 1 php function call.
-
Re: Problem with Flash Header
Quote:
Originally Posted by
nacidoporfe
Hi:
I wonder if someone can help me. I have changed my header logo into a flash on but the flash.swf doesn´t load. I mean, it seems that it loads but theres is no image and the page doesn´t finish loading.
When I roll the mouse over the flash image there is a message that says: "click to activate and use the control".
I don´t know what to do.
Please help me!!!
did you get your problem resolved?
the first and more important symptom, that the page doesn't finish loading, is indicative of your site not finding the .swf file where it's pointed to.
the second symptom will be there whether the flash file loads or not, if you don't have the [script] embedded properly. i'm suprised by how many sites out there do not remedy the click to activate issue for their visitors (including major corporate sites that represent big $).
-
Re: Problem with Flash Header
Quote:
Originally Posted by
seethrou
With refer to the other topic at Reviewer's Corner
Shop has gone live: please review
Our fellow member JohneeMac suggested the following for the Flash.
SWFObject: Javascript Flash Player detection and embed script
I had tested, it works, with more functions and with XHTML validation.
And below are the steps of the test which use the JavaScript download from the above site.
1. save the header Flash file to the following directory (just for example)
includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf
2. download the zip packaged file from the above site
3. unzip and save the included swfobject.js file (not compressed and about 6.5 KB) to your ZC template directory
includes/templates/YOUR_TEMPLTE/jscript/swfobject.js
4. If in before, the tpl_header.php had not been modified,
then copy the following file:
includes/templates/template_default/common/tpl_header.php
and save it to your template override directory:
include/templates/YOUR_TEMPALTE/common/tpl_header.php
5. Open up the new saved tpl_header.php file in your override directory
include/templates/YOUR_TEMPALTE/common/tpl_header.php
Add and modify the codes according to your requirements.
For detail usuages, please refer to the docs and the original site for more infos.
For example,
in the tpl_header.php, just insert the codes for Flash below the section of:
<!--bof-branding display-->
<div id="logoWrapper">
PHP Code:
<!--bof-branding display-->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf", "YOUR_HEADER", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
Note:
In the above codes, where:
YOUR_TEMPLATE = the name of your template.
YOUR_HEADER = the file name of your Flash file.
.
Hi, this is a fantastic hint, thank you for sharing it, but i can only get it to work for the header.
i have a couple of blank sideboxes (tpl_blank_sidebox.php - one for either side of the page) and have successfully added flash to them, but stumble on the 'click to activate' problem in IE. i tried using the above js workaround for them and it seems to move the sideboxes up to where the header was and remove the original header swf altogether, as if it were overwriting it.
now, i cant see any where in the code that specifically tells the flash to render, but it does seem to want to take the place of the header.swf
could it be that i need to duplicate the swfobject.js so there is a separate script for each position on the page?
any help would be gratefully received!
thanks all
-
Re: Problem with Flash Header
Quote:
Originally Posted by
subb
Hi, this is a fantastic hint, thank you for sharing it, but i can only get it to work for the header.
The example above was the demo for the header only. If need it to work in other areas and also the add on codes should be modified and inserted into the other related areas.
e.g. for the header and the code was inserted into the header file.
Code:
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the HEADER Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf", "YOUR_HEADER", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
e.g. for sideboxes and it should be modified and figure out how to insert into the related sidexboxes files.
Code:
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the SIDEBOXES_X Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_SIDEBOXES_X.swf", "YOUR_SIDEBOXES_X", "120", "150", "7", "#000000");
so.write("flashcontent");
</script>
If have more than a few files and modifications in use, it may consider to use the idea of "include" functions to simplify or ease the jobs.
Please refer to the topic below for the idea.
using an include for a header
and more specify in post #6
Quote:
Originally Posted by
subb
i have a couple of blank sideboxes (tpl_blank_sidebox.php - one for either side of the page) and have successfully added flash to them, but stumble on the 'click to activate' problem in IE. i tried using the above js workaround for them and it seems to move the sideboxes up to where the header was and remove the original header swf altogether, as if it were overwriting it.
now, i cant see any where in the code that specifically tells the flash to render, but it does seem to want to take the place of the header.swf
could it be that i need to duplicate the swfobject.js so there is a separate script for each position on the page?
any help would be gratefully received!
thanks all
The swfobject.js should be reused without the duplication.
And the above is only for suggestion and have not been tested. And it may be used with some modifications for the concept is similar.
.
-
Re: Problem with Flash Header
thanks very much for the reply, i probably should have gone into a little more detail about the problem!
i have managed to add the appropriate script code to the correct sidebox, and now am seeing correct results in firefox, but now it seems that IE (the whole reason we have to do all this!) is putting the sidebox in the area that the header is usually sitting, and the header is missing.
take a look if it will help,
http://www.boutiqueuniquelondon.com/index.php
if you look in firefox you notice that everything is where it should be, but IE seems to make a meal of laying the page out.
i am using 'Blank Sidebox' from here
http://www.zen-cart.com/index.php?ma...roducts_id=174
and the script i have added to it follows:
Code:
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the tpl_blllp_leftside Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/blllp/flash/left.swf", "tpl_blllp_leftside", "200", "400", "7", "#ffffff");
so.write("flashcontent");
</script>
if you have any ideas of what may be wrong i would love to hear them.
much appreciated mate
-
Re: Problem with Flash Header
You have following duplicated div id variables in your page source
Code:
<div id="flashcontent">
At about:
1. line no. 48
2. line no. 90
Please try to modify and separate them for the related locations.
For example:
1. line no. 48
Code:
<div id="flashcontent_01">
2. line no. 90
Code:
<div id="flashcontent_02">
And please check your codes, there is a un-defined template name which refer to your page source at about line no. 89
Code:
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
I have tried in my local test with your html source and it seems work under IE6.
Hope this helps. :smile:
Oops!
One more to notice:
The following should also be modified.
At about line no. 51
Code:
so.write("flashcontent_01");
At about line no. 95
Code:
so.write("flashcontent_02");
-
Re: Problem with Flash Header
seethrou, thank you so much.
all is working as it should now.
again, my sincerest thanks.
-
Re: Problem with Flash Header
You are welcome!
And glad to hear that it can be of help. :smile:
.
-
1 Attachment(s)
Re: Problem with Flash Header
oh dear, i really am sorry, but since i implemented those fixes i have had IE spitting an error message at me of which i have no idea to what it refers!
see below
has anyone ever come across this before in conjunction with the flash/javascript workaround (or indeed ever!)
please, do take a look at http://www.boutiqueuniquelondon.com/index.php and try clicking any link
again, any help gratefully recieved!
-
Re: Problem with Flash Header
i have tracked the problem down to the fact that i have 3 separate flash movies on some pages at once. this seems to be causing the problem. if i switch any of the three swfs (header, left and right sideboxes) off then the error goes away, and likewise, the pages that only have 2 swfs on them have always worked as expected.
im assuming that IE is spitting out the 'Out of memory on line: 126' along with another stating 'Stack overflow at line: 130' because not enough memory is being allocated the the flash stuff at some point.
to be honest all i can do is guess right now, and because i know nothing about javascript i cant take a look at the swfobject.js to see if that somehow is assigning memory for the movies, and not giving up enough...
have i just reached a theoretical limit to the number of flash movies zen-cart can display in IE?
any help at all with this would be so very appreciated
-
Re: Problem with Flash Header
result!
i finally worked out that IE doesnt like the javascript 'includes/templates/YOUR_TEMPLATE/jscript/swfobject.js' to be referenced more than a few times, otherwise it spits Out of memory and Stack overflow errors at you.
so in my case the answer was to leave the header as
Code:
<script type="text/javascript" src="includes/templates/blllp/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/blllp/flash/top.swf", "top.swf", "750", "150", "7", "#ff0000");
so.write("flashcontent");
</script>
but remove
Code:
<script type="text/javascript" src="includes/templates/blllp/jscript/swfobject.js"></script>
for every other instance of that script being called, so the sideboxes looked like this
Code:
<div id="flashcontent_left">
This text is replaced by the tpl_blllp_leftside Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/blllp/flash/left.swf", "tpl_blllp_leftside", "200", "400", "7", "#ffffff");
so.write("flashcontent_left");
</script>
hope this can help someone else some day!
-
Re: Problem with Flash Header
Hi there,
I want to have some flash in my header and in a sidebox as well.
I've read this thread which has been very informative....until some point.
Could you guys be as kind as giving me a complete example of your code for:
- YOUR_TEMPLATE/common/tpl_header.php,
- YOUR_TEMPLATE/common/sidebox/tpl_yoursideboxwithflash.php,
and most important, what's inside your "/templates/YOUR_TEMPLATE/jscript/swfobject.js" file? I dont know javascript at all and I have no idea what I should write in there.
Plus, if you have modified anything in "modules/" directory, or anywhere else than include/YOUR_TEMPLATE
I am trying to have a flash in the header, and to integrate a mp3 player in a sidebox.
So far, I've managed to play the flash header in IE, show the flash sidebox in FF (although, not playing the music...anything I should know about .xml loading files?)
Unfortunately I am working on my local server and therefore it wont be possible for you guys to help me in debugging. That's why my only hope is to compare with someone else's code who has at least 2 flash in the same page, and figure out step by step which file I've screwed up. :lamo:
my code in my MYTEMPLATE/sideboxes/tpl_music_box.php is:
$content = "";
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="musicsideBoxContent">';
$content .='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub...ersion=8,0,0,0" width="335" height="247" id="mp3player" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="' . DIR_WS_TEMPLATE . 'MP3_Player/';
$content .= 'playermp3player.swf?xml=config.xml" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="' . DIR_WS_TEMPLATE . 'MP3_Player/';
$content .= 'mp3player.swf?xml=config.xml" quality="high" wmode="transparent" width="335" height="247" name="mp3player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>';
$content .= '</div>';
thanks!!
-
Re: Problem with Flash Header
Quote:
Originally Posted by
seethrou
With refer to the other topic at Reviewer's Corner
Shop has gone live: please review
Our fellow member JohneeMac suggested the following for the Flash.
SWFObject: Javascript Flash Player detection and embed script
I had tested, it works, with more functions and with XHTML validation.
And below are the steps of the test which use the JavaScript download from the above site.
1. save the header Flash file to the following directory (just for example)
includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf
2. download the zip packaged file from the above site
3. unzip and save the included swfobject.js file (not compressed and about 6.5 KB) to your ZC template directory
includes/templates/YOUR_TEMPLTE/jscript/swfobject.js
4. If in before, the tpl_header.php had not been modified,
then copy the following file:
includes/templates/template_default/common/tpl_header.php
and save it to your template override directory:
include/templates/YOUR_TEMPALTE/common/tpl_header.php
5. Open up the new saved tpl_header.php file in your override directory
include/templates/YOUR_TEMPALTE/common/tpl_header.php
Add and modify the codes according to your requirements.
For detail usuages, please refer to the docs and the original site for more infos.
For example,
in the tpl_header.php, just insert the codes for Flash below the section of:
<!--bof-branding display-->
<div id="logoWrapper">
PHP Code:
<!--bof-branding display-->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf", "YOUR_HEADER", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
Note:
In the above codes, where:
YOUR_TEMPLATE = the name of your template.
YOUR_HEADER = the file name of your Flash file.
.
Thanks for that!, i use it and all works OK.
Now i like to stop flash to restart every link visit in the web page, it´s possible?
thanks
-
Re: Problem with Flash Header
Quote:
Originally Posted by
seethrou
With refer to the other topic at Reviewer's Corner
Shop has gone live: please review
Our fellow member JohneeMac suggested the following for the Flash.
SWFObject: Javascript Flash Player detection and embed script
I had tested, it works, with more functions and with XHTML validation.
And below are the steps of the test which use the JavaScript download from the above site.
1. save the header Flash file to the following directory (just for example)
includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf
2. download the zip packaged file from the above site
3. unzip and save the included swfobject.js file (not compressed and about 6.5 KB) to your ZC template directory
includes/templates/YOUR_TEMPLTE/jscript/swfobject.js
4. If in before, the tpl_header.php had not been modified,
then copy the following file:
includes/templates/template_default/common/tpl_header.php
and save it to your template override directory:
include/templates/YOUR_TEMPALTE/common/tpl_header.php
5. Open up the new saved tpl_header.php file in your override directory
include/templates/YOUR_TEMPALTE/common/tpl_header.php
Add and modify the codes according to your requirements.
For detail usuages, please refer to the docs and the original site for more infos.
For example,
in the tpl_header.php, just insert the codes for Flash below the section of:
<!--bof-branding display-->
<div id="logoWrapper">
PHP Code:
<!--bof-branding display-->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf", "YOUR_HEADER", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
Note:
In the above codes, where:
YOUR_TEMPLATE = the name of your template.
YOUR_HEADER = the file name of your Flash file.
.
I am still having flash header problems. System config info below:
Web Site = http://lindakaysleis.com/index.php
ZenCart Version = 1.3.7
Custom Template = CUSTOM
Flash file name = flashheader.swf located at many different location just to see if that helped, but it didn't.
Un-edited swfobject.js file location = includes\templates\CUSTOM\jscript\
Sample of working flash at http://store.flower-leis.com/index.php ZenCart version
The flash placeholder shows up in the correct location, but the movie isn’t loading. If I right click on the flash it has a message saying “Movie not loaded…” Message is the same in IE 7 and FF 2.0.0.3
tp_header.php code
PHP Code:
<!--bof-branding display-->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/CUSTOM/jscript/swfobject.js"></script>
<div id="flashcontent">
Flash image of different Hawaiian flower leis.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/CUSTOM/images/flash/flashheader.swf", "Flash Header", "750", "140", "4", "#000000");
so.write("flashcontent");
</script>
Thanks for help you have already given in the previous posts.
-
Re: Problem with Flash Header
I just figured out what my problem was. My flashheader.swf file had become corrupted when it was uploaded. I read a post at http://blog.deconcept.com/swfobject/...ee-swf/#Item_0 from blackkite saying to get it as simple as possible. So I did a small test on my home system with ZenCart installed locally and it didn't work with my flash file, so I tried the sample "so_tester.swf" file. The test flash worked. I figured out that my uploaded flash file was corrupt, re-upped the flash file and my flash header is now working.
Quote:
Originally Posted by
jonutley
I am still having flash header problems. System config info below:
Web Site =
http://lindakaysleis.com/index.php
ZenCart Version = 1.3.7
Custom Template = CUSTOM
Flash file name = flashheader.swf located at many different location just to see if that helped, but it didn't.
Un-edited swfobject.js file location = includes\templates\CUSTOM\jscript\
Sample of working flash at
http://store.flower-leis.com/index.php ZenCart version
The flash placeholder shows up in the correct location, but the movie isn’t loading. If I right click on the flash it has a message saying “Movie not loaded…” Message is the same in IE 7 and FF 2.0.0.3
tp_header.php code
PHP Code:
<!--bof-branding display-->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/CUSTOM/jscript/swfobject.js"></script>
<div id="flashcontent">
Flash image of different Hawaiian flower leis.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/CUSTOM/images/flash/flashheader.swf", "Flash Header", "750", "140", "4", "#000000");
so.write("flashcontent");
</script>
Thanks for help you have already given in the previous posts.
-
Re: Problem with Flash Header
yeah you can do that... or just download http://www.zen-cart.com/forum/showth...highlight=nnez
that was designed to specifically resolve this problem for zen cart. as long as the zc template methods or directory structure don't change and msft, adbe aren't made to hold hands in the corner, nnez flo will work with zen cart.
one line of code... et viola!
-
Re: Problem with Flash Header
Hi,
I have followed your guidelines but after I refresh the site I get an empty Adobe flash player rectangle (with a black background) instead of the actual flash movie loading.
I have placed the SWF file and javascript file in the suggested directory.
I am running Zencart 1.3.7 on Linux. Here is an excerpt of my tpl_header.php code:
<!--bof-branding display-->
<!-- Added this code to display flash -->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/myTemplate/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/myTemplate/images/flash/header.swf", "header", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
<!-- End of Added code -->
<div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT) . '</a>'; ?></div>
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
?>
Where am I going wrong?
Hansi
Quote:
Originally Posted by
seethrou
The example above was the demo for the header only. If need it to work in other areas and also the add on codes should be modified and inserted into the other related areas.
e.g. for the
header and the code was inserted into the header file.
Code:
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the HEADER Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf", "YOUR_HEADER", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
e.g. for
sideboxes and it should be modified and figure out how to insert into the related sidexboxes files.
Code:
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the SIDEBOXES_X Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_SIDEBOXES_X.swf", "YOUR_SIDEBOXES_X", "120", "150", "7", "#000000");
so.write("flashcontent");
</script>
If have more than a few files and modifications in use, it may consider to use the idea of "include" functions to simplify or ease the jobs.
Please refer to the topic below for the idea.
using an include for a header
and more specify in
post #6
The swfobject.js should be reused without the duplication.
And the above is only for suggestion and have not been tested. And it may be used with some modifications for the concept is similar.
.
-
Re: Problem with Flash in main product template
Quote:
Originally Posted by
seethrou
With refer to the other topic at Reviewer's Corner
Shop has gone live: please review
Our fellow member JohneeMac suggested the following for the Flash.
SWFObject: Javascript Flash Player detection and embed script
I had tested, it works, with more functions and with XHTML validation.
And below are the steps of the test which use the JavaScript download from the above site.
1. save the header Flash file to the following directory (just for example)
includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf
2. download the zip packaged file from the above site
3. unzip and save the included swfobject.js file (not compressed and about 6.5 KB) to your ZC template directory
includes/templates/YOUR_TEMPLTE/jscript/swfobject.js
4. If in before, the tpl_header.php had not been modified,
then copy the following file:
includes/templates/template_default/common/tpl_header.php
and save it to your template override directory:
include/templates/YOUR_TEMPALTE/common/tpl_header.php
5. Open up the new saved tpl_header.php file in your override directory
include/templates/YOUR_TEMPALTE/common/tpl_header.php
Add and modify the codes according to your requirements.
For detail usuages, please refer to the docs and the original site for more infos.
For example,
in the tpl_header.php, just insert the codes for Flash below the section of:
<!--bof-branding display-->
<div id="logoWrapper">
PHP Code:
<!--bof-branding display-->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/YOUR_TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/YOUR_TEMPLATE/images/flash/YOUR_HEADER.swf", "YOUR_HEADER", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
Note:
In the above codes, where:
YOUR_TEMPLATE = the name of your template.
YOUR_HEADER = the file name of your Flash file.
.
Hi,
though I posted my question already in the zen forum, this post seems the closest to my problem, so will ask again here:
- I want to add new products, flash objects.
I have already saved the swfobject.js file in includes/templates/MY-TEMPLATE/jscript/ (taken from deconcept website)
now, I need to modify the main product page, which manipulates the display of all products: /includes/templates/MY-TEMPLATE/templates/tpl_modules_main_product_image.php
so that it plays flash objects, instead of just images.
The code of the file looks like this:
<?php require(DIR_WS_MODULES . zen_get_module_directory(FILENAME_MAIN_PRODUCT_IMAGE)); ?>
<div id="productMainImage" class="back">
<script language="javascript" type="text/javascript"><!--
document.write('<?php echo '<a href="javascript:popupWindow(\\\'' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '\\\')">' . zen_image($products_image_medium, addslashes($products_name), MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a>'; ?>');
//--></script>
<noscript>
<?php
echo '<br><a href="' . zen_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $_GET['products_id']) . '" target="_blank">' . zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT) . '</a>';
?>
</noscript>
my question here is, how do I call flash objects in a generic way. this is the code I have to insert and adjust:
<script type="text/javascript" src="includes/templates/MY-TEMPLATE/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("images/MY-TEMPLATE/so_tester.swf", "mymovie", "200", "100", "9", "#336699");
so.write("flashcontent");
</script>
I need to have a generic variable that calls the flash object, not this path "images/MY-TEMPLATE/so_tester.swf"
I need an HTML tag for flash object, similar to the image one:
zen_image($products_image_medium, $products_name, MEDIUM_IMAGE_WIDTH, MEDIUM_IMAGE_HEIGHT)
I would really appreciate any help on this question.
Cheers
F.
-
Re: Problem with Flash Header SSL
[FONT=Arial]I'm using the swfobject script with a flash logo at the header of page. The swfobject works with SSL when clicking on the Log In button for all browsers except FireFox. I have version 1.5.0.11 of FF installed. It finds the flash logo on all non-secured pages but when you go to log in or travel to a secure page, the flash logo does not appear. Just a blank area appears. Now with FF, you can click on the lock and up pops a box where you click Media and it shows you the links/types on that page (see below). The EMBED command with the swfobject script is not calling the https so therefore, no flash. Can anyone shed some light on how to fix ? Is this a bug with FF or a bug in the script since the flash loads fine on 5 other browsers in SSL mode or a problem with how I'm calling the script?[/FONT]
[FONT=Arial]https://www.premiertopshelf.com/includes/templates/custom/images/header_bg.jpg[/FONT][FONT=Arial] Type: Background[/FONT]
[FONT=Arial]https://www.premiertopshelf.com/includes/templates/custom/images/prmeirflash1.swf[/FONT][FONT=Arial] Type: Background[/FONT]
[FONT=Arial]includes/templates/custom/images/prmeirflash1.swf Type: Embed[/FONT]
[FONT=Arial]https://www.premiertopshelf.com/includes/templates/custom/images/tag.jpg[/FONT][FONT=Arial] Type: Background[/FONT]
[FONT=Arial]https://www.premiertopshelf.com/includes/templates/custom/images/tile_back.gif[/FONT][FONT=Arial] Type: Background[/FONT]
[FONT=Arial]https://www.premiertopshelf.com/includes/templates/template_default/buttons/english/button_create_account.gif[/FONT][FONT=Arial] Type: Input[/FONT]
[FONT=Arial]https://www.premiertopshelf.com/includes/templates/template_default/buttons/english/button_login.gif[/FONT][FONT=Arial] Type: Input[/FONT]
[FONT=Arial]The swfobject script code in the tpl_header.php located in the override directory looks like this:[/FONT]
[FONT=Arial]<div id="logoWrapper">[/FONT]
[FONT=Arial]<div id="logo">[/FONT]
[FONT=Arial]<script type="text/javascript" src="includes/templates/custom/jscript/swfobject.js"></script>[/FONT]
[FONT=Arial]<div id="flashcontent">Please update your flash player.</div>[/FONT]
[FONT=Arial]<script type="text/javascript">[/FONT]
[FONT=Arial]var so = new SWFObject("includes/templates/custom/images/prmeirflash1.swf", "prmeirflash1", "484", "129", "1", "#ffffff");[/FONT]
[FONT=Arial]so.write("flashcontent");[/FONT]
[FONT=Arial]</script></div>[/FONT]
[FONT=Arial]Looking forward to any help that can be provided and I thank you well in advance :)[/FONT]
-
Re: Problem with Flash Header
I was able to get the Flash Rotator working with the help of all your posts, Thank you! I will post the steps and links to posts that I found the most useful hoping it will benefit someone else. I realize this install is less then ideal and I'm open to suggestions.
BTW you can view what I've been working on here to see the example. The site is not live yet and I have a lot to do...
1. seethrou's post #7 of this thread is a great outline to the whole process and may be all that you need. I changed the paths to the site's root directory based on #3 below and it worked. I found that using the paths in seethrou's post I would end up with the flash black header and progress wheel (but no images). Doing a little troubleshooting on my mac I found that for what ever reason the "playlist.xml" was not being loaded. I played around with permissions etc... playlist.xml would load fine in the sites root directory only.
2. Tinas's post #8 of this thread explains what code needs to be replaced in the file (includes/templates/MY_TEMPLATE/common/tpl_header.php). It is roughly lines 71 to 91.
3. Using Flash Zen-Car Wiki, this is where I saw the tip for putting the files in the root directory of your store, although they are referring to audio files I thought it was worth a shot.
4. I downloaded the flash rotator files from here and this includes the swfobject.js file developed here.
Summary;
1. My code that I pasted in the file (includes/templates/MY_TEMPLATE/common/tpl_header.php) is;
Quote:
<script type="text/javascript" src="swfobject.js"></script>
<div id="flashcontent"><a href="http://www.macromedia.com/go/getflashplayer">Please Update Your Flash Player</a></div>
<script type="text/javascript">
var so = new SWFObject("something.swf", "imagerotator", "800", "175", "7", "#000000");
so.addVariable("file","playlist.xml");
so.addVariable("overstretch","false");
so.addVariable("repeat","true");
so.write("flashcontent");
</script>
2. Except for the "tpl_header.php" covered above, the rest of these files are in my stores root directory.
Quote:
something.swf
swfobject.js
playlist.xml "edit this file with your image names etc."
image1.jpg
image2.jpg
image3.jpg
image4.jpg
Hope this helps...
P.S. How appropriate, Just as I'm posting this and checking my links I see that my flash header is back to black and the spinning wheel. arrrggg... run, save yourself..... help? it was working for about 5 hours, I swear...
-
Re: Problem with Flash Header
Seems to be working fine, hopefully all is well.
-
Re: Problem with Flash Header
Sorry to say that it did not work for me in Firefox until I right-clicked, changed permissions in the settings, and moved to a product page. Once at the product page, a trip back to home had the rotator working. But, it would not work without that procedure originally and I let it set for a full minute before making the settings change.
Worked fine in IE but not Firefox.
Might want to check that out.
REALLY like the look.
-
Re: Problem with Flash Header
Thank you for the feed back, I'm learning by trial and error. So there must be something that I need to set for it to work without right clicking and going to settings.
I just tried it in Safari and had to right click like you mentioned. Why is flash looking for access to my camera and microphone? Is this something the developer of Flash Rotator has set in the flash file?
Rich
-
Re: Problem with Flash Header
Well, I added an autostart variable to the parameters. Maybe this will do the trick. If anyone has a chance to test this on my site I would appreciate it. Its located here. If you would, please let me know if the flash rotator works without your intervention.
-
Re: Problem with Flash Header
can someone tell me what is wrong i tried doing what was posted but all i got was a black box with nothing playing www.graphxsigns.net
<!--bof-branding display-->
<div id="logoWrapper">
<script type="text/javascript" src="includes/templates/classic/jscript/swfobject.js"></script>
<div id="flashcontent">
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/classic/images/flash/logobanner.swf", "logobanner.swf", "750", "160", "7", "#000000");
so.write("flashcontent");
</script>
-
Re: Problem with Flash Header
KingCustom, don't know what you different between
http://www.180out.com/yen/ and http://180out.com/yen/
but the second URL works just fine with FF, first one does not.
-
Re: Problem with Flash Header
Rob how did you get the flash to work and show up on your site?
-
Re: Problem with Flash Header
Quote:
Originally Posted by
Website Rob
What is up with that? I've seen something like this before but it was with joomla. I'll have to do some ciphering on this one. Thank you for the feedback WebsiteRob.
-
Re: Problem with Flash Header
hondauser85, Did you try and put your files in the rood directory of your store and then change the paths? There is a FAQ here that talks about using a flash player and an audio file and that it should go in the root directory. Once I did this things starting working for me. Before that I too had the black screen with spinning wheel. Essentialy the logobanner.swf in your script is a player of image files.
-
Re: Problem with Flash Header
ive done everything but i know im doing something wrong cause other ppl got it to work what should i post in here so you can see what i need to edi?
-
Re: Problem with Flash Header
I got it working without any java script just follow the intructions at http://www.zen-cart.com/wiki/index.php/Using_Flash
This is my code:
HTML Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="766" height="98">
<param name="movie" value="menu_flash7.swf">
<param name="quality" value="high">
<param name="menu" value="false">
<param name="wmode" value="transparent">
</object>
Remember the files need to be in root in other for this code to work, if you have then in somewhere else add the follow the link to it.
hope it helps and clarify things
good luck
-
Re: Problem with Flash Header
I am new to zencart and flash. And I am desperate need of help. http://www.upcctv.com please take a look of my website.
1. How can I get rid of the tagline here and blue thingy
2. how can I maximize my flash to the fullest..
I am banging my head on the wall please help thanks!
sorry I need step by step instructions please!
-
Re: Problem with Flash Header
:frusty:
Hope someone can help as this is driving me nuts!!!!
On my site at www.groovy-stuff.co.uk, with the help of this thread I have installed a flash header which I am very pleased with.
I now want to move onto my banner ad on the right of the screen to make it a bit more 'dynamic'! The sidebox I am trying to use is sideboxes/banner_box2.
I have the swfobject.js file installed in my includes/templates/template_default/jscript folder.
I have placed my flash file that I want to use for the sidebox in the following... includes/templates/template_default/images/sidebox1.swf
Now I am trying to edit the file ... includes/templates/template_default/sideboxes/tpl_banner_box2.php
The code I am using to call the script is as previously described on this thread....
<script type="text/javascript" src="includes/templates/template_default/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the SIDEBOXES_X Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/template_default/images/sidebox1.swf", "YOUR_SIDEBOXES_X", "150", "220", "7", "#000000");
so.write("flashcontent");
</script>
However, for the life of me I just cannot figure out what it is I am supposed to be editing in the tpl_banner_box2.php file! Or even if that is the file I should be editing!!!?????!!!!
The content of the file tpl_banner_box2.php is:
<?php
/**
* Side Box Template
*
* @package templateSystem
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: tpl_banner_box2.php 2982 2006-02-07 07:56:41Z birdbrain $
*/
$content = '';
// if no active banner in the specified banner group then the box will not show
if ($banner = zen_banner_exists('dynamic', $banner_box_group)) {
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent centeredContent">';
$content .= zen_display_banner('static', $banner);
$content .= '</div>';
}
?>
Many thanks for anyone that can help?
-
Re: Problem with Flash Header
ignore above! all sorted now!:clap:
-
Re: Problem with Flash Header
-
Re: Problem with Flash Header
This may look like I know what I'm talking about so please don't bombard me with questions and such like - I am new to this (as you will see from the number of posts I have made) but like to play around and see what I am able to do!!!!
Following from my earlier thread the problem I was having was with the banner_box2 and not knowing where to put the code - what to remove, keep etc. As a work around I installed the blank sidebox add-in.
Entered the following into the includes/templates/template_default/sideboxes/tpl_blank_sidebox.php file:
<?php
/**
* blank sidebox - allows a blank sidebox to be added to your site
*
* @package templateSystem
* @copyright 2007 Kuroi Web Design
* @copyright Portions Copyright 2003-2007 Zen Cart Development Team
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: blank_sidebox.php 2007-05-26 kuroi $
*/
$content = '';
$content .= '<div id="' . str_replace('_', '-', $box_id . 'Content') . '" class="sideBoxContent">';
// Replace the text and HTML tags between the apostophes on lines 19 and 20.
// Use as many or as few lines using this model as you need for your custom content.
// If you have a multilingual site define your text in the languages/YOUR_LANGUAGE/extra_definitions/blank_sidebox_defines.php and include it as shown in line 19.
// If your site is monolingual, you can put the text right here as shown on line 20 (and nobody will know!)
$content .= '<script type="text/javascript" src="includes/templates/template_default/jscript/swfobject.js"></script>
<div id="flashcontent_01">
groovy-stuff.co.uk
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/template_default/images/sidebox1.swf", "tpl_blank_sidebox", "150", "220", "7", "#FFFFFF");
so.write("flashcontent_01");
</script> ';
$content .= '</div>';
?>
You will notice I have changed the "flashcontent" to be "flashcontent_01" as previously it was appearing in the header bar (see earlier comments on this thread). Also you need to watch the sizes (mine is set at 150px width x 220px height and a background colour of white but clearly you can change that.
This was using the swfobject.js file already downloaded (see notes earlier in thread).
Finally in the Layout Boxes Controller, de-activated the banners in banner manager and switched OFF the sidebxes_bannerbox2. Then activated the sideboxes_blanksidebox and hey presto!
The ONLY problem I am having is that it is not centred in the column but I can live with that until I can find out how to sort that out!
Hope this helps someone else as it took me flippin hours to figure it out and could not find anything anywhere on the forum about how to do it!!! I know nothing about php or java and little 'true' HTML so I'm quite pleased with myself!!!???!!!!
-
flash file in center of home page
I have read so many posts here for hour after hour, but I still can't get my flash file to work.
I have a site at www.joescigarshop.com/shop
You will see that it is showing a white box in the middle where my flash file should be. The flash file is simply not loading.
I have my flash swf file here: includes/templates/theme054/images/carsousel.swf
I also have the html document located in the same images folder.
Also, I have the "runactivecontent" js file in the js folder.
I also downloaded and added the swfobject.js file to this folder.
But, as you can see, the flash is not working. What do I need to do to fix this? I am in DESPERATE need! Any help is much appreciated.
Derwin :cry:
-
Re: Problem with Flash Header
Warning Will Robinson, Warning!
Template Monster Alert! :censored:
Since you've got it, I guess you'll have to try to live with it but your best bet is to create an html doc, insert it into your define_main_page (IF it's still there) and use that to load your swf.
It may be as simple as adding
Quote:
<object width="550" height="400">
<param name="movie" value="carousel.swf">
<embed src="carousel.swf" width="550" height="400">
</embed>
</object>
You would also need to experiment where the carousel.swf file should reside but (WAG) I think the root would be best.
Google "Insert Flash in HTML" and you'll find many examples.
The advantage of using the define_main_page is that the system is already looking for html versus php from that template.
-
Re: Problem with Flash Header
How do I add the html document to the define_main_page file? I added the code to this file, but nothing changed. How do I add the html file to it?
Thanks for your help!
Derwin
-
Re: Problem with Flash Header
Quote:
Also, I have the "runactivecontent" js file in the js folder.
I also downloaded and added the swfobject.js file to this folder.
Those files are not being loaded...browser, view source..
stylesheets loading ok...those js files should be loading in
same place as stylesheets..they currently are not.
-
Re: Problem with Flash Header
I had the stylesheet located in the .css folder. So now I just put the 2 .js files in this folder as I thought you suggested, but still no change.
My hair is now officially falling out.
I really need help on this. Any other suggestions?
Derwin :cry:
-
Re: Problem with Flash Header
Quote:
So now I just put the 2 .js files in this folder as I thought you suggested, but still no change.
I did not suggest putting js files into css folder..Only commented
that they were not loading but stylesheets were..
Below is sample of flash file entered into template header..
give you an idea of how your coding should look...
Code:
<!--bof-branding display-->
<script type="text/javascript" src="includes/templates/mytemplatename/js/swfobject.js"></script>
<div id="flashcontent">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
id="Movie6" width="760" height="194">
<param name="movie" value="Movie6.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFCCCC">
<embed name="Movie6" src="Movie6.swf" quality="high" bgcolor="#FFCCCC"
width="760" height="194"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
</embed>
</object>
</center>
<script type="text/javascript">
var so = new SWFObject("includes/templates/mytemplatename/Movie6.swf", "YOUR_HEADER", "760", "194", "7", "#FFCCCC");
so.write("flashcontent");
</script>
</div>
Notice path of the swfobject.js file
-
Re: Problem with Flash Header
Thank you very, very much for your help. But WHERE do I put this code? What file should this code appear in? I really don't understand what files go where, or even what files are required.
I am so sorry if it seems I am so stupid about this, but I have never added a flash file to zen cart before.
Derwin
-
Re: Problem with Flash Header
Before entering any code, need to make sure swf file and js file
are in correct folders. Otherwise whatever code you enter,
its not going to find relevant files.
Look at my example code, and see
where have placed the swf and swfobject.js file.
i.e. relevant folders in your own current template
folder
-
Re: Problem with Flash Header
Hi
I found just use a gif file in flash so easy not swf file. Deam weaver CS3 and the new MSN 2008 front page web design both seem harder to use, so gone back to front page 2003 Jocar
-
Re: Problem with Flash Header
Here is where I have each file:
flash swf file:
/includes/templates/theme054/images/carousel.swf
the flash html file:
/includes/templates/theme054/images/carousel.html
the AC_RunActiveContent file:
/includes/templates/theme054/jscript/AC_RunActiveContent.js
the swfobject file
/includes/templates/theme054/jscript/swfobject.js
THERE YOU HAVE IT. That is exactly where I have ALL of my flash related files located.
Is this correct, or do I need to make changes in location?
Derwin
-
Re: Problem with Flash Header
So you now use correct code, with correct paths as you have outlined below..
not sure why you are using html file or AC_RunActiveContent.js
plus my swfobject.js is in folder /includes/template/mytemplate/js/
and swf file is in /includes/template/mytemplate/
I will check this thread for further posts later this morning..
Currently almost 1.00am here in UK..
-
Re: Problem with Flash Header
here is the code in define_main_page.php file:
<script src="../../../../../Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="DWConfiguration/ActiveContent/IncludeFiles/AC_ActiveX.js" type="text/javascript"></script>
<div align="center"><script type="text/javascript">
AC_AX_RunContent( 'width','336','height','251','src','carousel.swf','movie','carousel.swf' ); //end AC code
</script><noscript><object width="336" height="251">
<param name="movie" value="carousel.swf">
<embed src="carousel.swf" width="336" height="251">
</embed>
</object></noscript></div>
IS THE ABOVE CODE CORRECT FOR THIS FILE?
Derwin
-
Re: Problem with Flash Header
Would need to see file/code, without your configuration, to
see if you are entering correctly.
-
Re: Problem with Flash Header
Hello! I don't understand. What I posted above is the name of the file, and the code that is in the file. What else can I give you?
I really appreciate your help with this, I am really new to zencart.
Derwin
-
Re: Problem with Flash Header
Here is the code for this file: "Carousel.html"....
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>caraosel</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0',
'width', '900',
'height', '600',
'src', 'caraosel',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'caraosel',
'bgcolor', '#000000',
'name', 'caraosel',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'caraosel',
'salign', ''
); //end AC code
}
</script>
<noscript>
<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="900" height="600" id="caraosel" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="caraosel.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="caraosel.swf" quality="high" bgcolor="#000000" width="900" height="600" name="caraosel" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>
SO I HAVE NOW POSTED 2 FILES WITH THE CODE. THE HTML FILE FOR THE FLASH MOVIE, AND THE DEFINE MAIN PAGE PHP FILE WITH THE CODE.
Derwin
-
Re: Problem with Flash Header
In your last post, html code states
caraosel.swf
BUT in your earlier posts
you are saying your swf file
is named
carousel.swf
SO WHAT IS CORRECT NAME OF YOUR SWF FILE?
-
Re: Problem with Flash Header
Hello! I am sorry, that was just a typo. The files for this flash is called "caraosel".
I have all of the files located where as I described in earlier posts, and all of the code is as in earlier posts.
Why isn't this thing working? I am in desperate need of help!
Derwin
-
Re: Problem with Flash Header
Quote:
Why isn't this thing working?
At the moment, no idea, because am totally confused
by your file names and which folders they are in..
Where did you get this script/html and swf file from?
Will need to download all relevant files myself,
and experiment in my own site, where am sure
correct files/folders/scripts are named/housed.
-
Re: Problem with Flash Header
Hello! I have Adobe Flash, and I created these files in this software. It works. I have used it several times in the past.
I have listed all of the locations of all of these files in previous posts above. The only mistake I made was with the caraosel file name. But the names are all above.
If you can help me, I would be sooooo grateful. What do I need to do?
Derwin
-
Re: Problem with Flash Header
Put all files required to make this work, into zip
file, then send me a pm via zencart forum,
stating where can download zip file from
:smile:
-
Re: Problem with Flash Header
Hello! I have the files in zip format, but where do I need to put them for you to have access? Do you have an email that I can send them to?
Derwin
-
Re: Problem with Flash Header
Send to zencart at mistily.com
In email subject..put..
joescigarshop - zip
or mail may be rejected as spam
-
Re: Problem with Flash Header
Hello! I sent you the flash (swf) file, and the flash html file, and the .js file. Please let me know if your received them.
Thanks again for your kind help.
Derwin
-
Re: Problem with Flash Header
Yes, files received, thanks.
Will post progress here but may not
be today..reside in UK not USA so
please allow for timezone/date difference.
-
Re: Problem with Flash Header
Have this working..
You place complete html code you sent me in define_main_page.php
via admin..
swf file and AC_RunActiveContent.js go into main zencart folder
i.e. in your set up .. folder
/shop/
Done...
-
Re: Problem with Flash Header
Misty,
GOD BLESS YOU!! YOU ARE THE BEST! :clap:
I wish there were MORE people in the world like you. You helped me in a way that nobody else would, and I REALLY, REALLY appreciate it.
Thanks again.
:clap:Derwin:clap:
-
Re: Problem with Flash Header
Pleased to hear you have flash working..
:smile:
-
Re: Problem with Flash Header
now THAT'S HOW TO GIVE EXAMPLES!!! thanks for your time, efforts and consideration in writing this.
You must have a great Mom.
aallen
-
Re: Problem with Flash Header
i followed instructions from page 1 about the swf file etc but when i come to edit the script in the tpl_header.php i cant see where to edit it can smeone please explain this is what i got
<!--bof-branding display-->
<div id="logoWrapper">
<?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
<div id="taglineWrapper">
<?php
if (HEADER_SALES_TEXT != '') {
}
?>
<?php
if (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2)) {
if ($banner->RecordCount() > 0) {
?>
<div id="bannerTwo" class="banners"><?php echo zen_display_banner('static', $banner);?></div>
<?php
}
}
?>
</div>
<?php } // no HEADER_SALES_TEXT or SHOW_BANNERS_GROUP_SET2 ?>
</div>
<br class="clearBoth" />
-
Re: Problem with Flash Header
im really new to all this can someone please explain exactly what i need to do thanks so much
-
Re: Problem with Flash Header
Quote:
Originally Posted by
saaliha
i followed instructions from page 1 about the swf file....
im really new to all this can someone please explain exactly what i need to do thanks so much
Suggest you read COMPLETE thread, not just first page
i.e.
http://www.zen-cart.com/forum/showpo...8&postcount=51
-
Re: Problem with Flash Header
i did read it all but i dont understand this is first time ever doing anything like this
-
Re: Problem with Flash Header
on that link you just gave what is the flash code i dont know where is my flashcode i made my flash banner in a software called flash website design
-
Re: Problem with Flash Header
ok i entered what u said in the thread above and now i got a pink banner that is all
-
Re: Problem with Flash Header
Hello I am having some trouble not only with flash but random stuff not showing up on my site. Particularly my flash photogallery. It is very strange because it works on my computer at home and work but not on many of the other computers. On the computers that the flash photogallery doesnt work correctly on the black square box which is my flash gallery is much wider and all it has is black. Kind of hard to explain so i have left a link at the bottom. Most likely if the flash gallery isnt working you will also notice red "x's" on the main page in the side category menu. Which i also am not sure why this accurs because on my computer it looks just fine. If anyone can direct me to the correct place or shed some light on this issue i would be very thankful. Thanks
http://wpc-consulting.com/~stxmill/
-
Re: Problem with Flash Header
Category sideboxes images...incorrect template specified
i.e.
Code:
includes/templates/template_default/images/bc_cat_no_sub.gif
You are currently using template named
Code:
includes/templates/arch_shoppe/
FLASH....do not see any code for flash header when view source coding
-
Re: Problem with Flash Header
Awesome I know I didn't actually totally figure out how to fully switch from template_default to a custom template most of the time i just copy the same thing in both. But i always keep a back up every time i change something so i can also revert back to how it was before that change. I was able to get rid of all the dumb red x's thinks to you. Now for the flash I am sorry i didnt expalin myself. I dont have a flash banner as of yet, but on the "photogallery" page I do have a flash photogallery that seems to only work on specific computers. Can you look at it and tell me what could be going wrong. Thanks again for the help.
http://wpc-consulting.com/~stxmill/
-
Re: Problem with Flash Header
Quote:
on the "photogallery" page I do have a flash photogallery that seems to only work on specific computers. Can you look at it and tell me what could be going wrong.
Visit url below, ESPECIALLY POST NUMBER 7
http://www.zen-cart.com/forum/showth...210#post266210
:smile:
-
Re: Problem with Flash Header
I am sorry i tried but no success. Now it just shows a black and grey box on all the computers i have tested it with. I know it is because something i did wrong. I downloaded the java file and uploaded it "uncompressed" to includes/templates/YOUR_TEMPLTE/jscript/swfobject.js of course replaceing YOUR_TEMPLATE with my own. I didn't do what it told me to do about the tpl_header because i am not trying to put anything in the header i am putting it on another page. So what i did was when to the define page editor and placed this code into the html page
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("gallery3/photo_tutorial.swf", "photo_tutorial.swf", "550", "560", "7", "#000000");
so.write("flashcontent");
</script>
I took at the logowrapper and such because i didnt think it needed all that since it wasn't the header. This is a regular php file not a header. Please let me know what you think.
http://www.wpc-consulting.com/~stxmill/
go to the photogallery page
-
Re: Problem with Flash Header
Quote:
var so = new SWFObject("gallery3/photo_tutorial.swf", "photo_tutorial.swf", "550", "560", "7",
Not sure that code above is correct, and as don't have actual flash swf
file cannot test BUT for header flash you would enter following path
Code:
includes/templates/arch_shoppe/photo_tutorial.swf
You may need to experiment with paths.
-
Re: Problem with Flash Header
I can move the flash file to that spot. My flash file is located here and you can few it directly from this link
http://www.wpc-consulting.com/~stxmi...o_tutorial.swf
Let me know how i need to change it please.
-
Re: Problem with Flash Header
Quote:
My flash file is located here and you can few it directly from this link
That's fine BUT not possible to save swf's from an url..
plus no idea how you have integrated this photogallery into your
zencart site.
Code on page quoted earlier does work.. you just have to adapt
it to your usage, including necessary/correct paths to both swf
and javascript file.
-
Re: Problem with Flash Header
I copied the swf to where you said "includes/templates/arch_shoppe/photo_tutorial.swf" and it made no difference. I actually couldnt even access it via the url. I typed in http://www.wpc-consulting.com/~stxmi...o_tutorial.swf
I tried typing in different paths in the define page editor but none of them made any difference. I actually had this working on my computer and another computer with the other settings i just couldnt figure out why it wouldnt work on any other computers. Now with this code it wont work on any. Not sure what is going on. I have found lots of different snippets of code but not sure which one will work for all computers or at least the majority of them. Because i know the other computers i tested the site on did in fact have flash installed.
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/arch_shoppe/photo_tutorial.swf", "photo_tutorial.swf", "550", "460", "7", "#000000");
so.write("flashcontent");
</script>
-
Re: Problem with Flash Header
Quote:
This text is replaced by the Flash movie.
Please post EXACT code you have there
-
Re: Problem with Flash Header
OK right now i have this code
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("gallery3/photo_tutorial.swf", "photo_tutorial.swf", "550", "460", "7", "#000000");
so.write("flashcontent");
</script>
This seems to be the closest to working. My path to the jscript file is correct i double check it. I am a little worried yes about the gallery3/photo_tutorial.swf path however before i changed the code up that path was working at least on two computers. How can i help you to help me figure this out.
If i go to my page right now it actually shows a black and grey box. Not the text like yours showed. Try again
http://www.wpc-consulting.com/~stxmi...=photo_gallery
-
Re: Problem with Flash Header
Quote:
How can i help you to help me figure this out.
YOU DID NOT DO what I requested in my last post
i.e.
Quote:
This text is replaced by the Flash movie.
Please post EXACT code you have there
-
Re: Problem with Flash Header
Unless I am not understanding the question that is what i did. I am in zen carts admin in define pages for photogallery.php. Under plain html all the code that is in there RIGHT NOW is what i posted in my last post. If this is not what you are looking for i am sorry for misunderstanding you please explain.
-
Re: Problem with Flash Header
Your previous post number 84
So what i did was when to the define page editor and placed this code into the html page
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("gallery3/photo_tutorial.swf", "photo_tutorial.swf", "550", "560", "7", "#000000");
so.write("flashcontent");
</script>
Marked red...is that all you have there?? NO CODE for flash?
If so this is incorrect.
-
Re: Problem with Flash Header
OH yes that is exactly what i have. I am sorry lol. I actually thought that the text there would mean that if the flash object was unavailabe or something this text would be in its place. So what needs to go there? The url as gallery3/photo_tutorial.swf. or just photo_tutorial.swf?
-
Re: Problem with Flash Header
SAMPLE code below should be what goes at
This text is replaced by the Flash movie.
i.e.
Code:
<script type="text/javascript" src="includes/templates/yourtemplate/js/swfobject.js"></script>
<div id="flashcontent">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
id="Movie7a" width="760" height="194">
<param name="movie" value="Movie7a.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFCCCC">
<embed name="Movie7a" src="Movie7a.swf" quality="high" bgcolor="#FFCCCC"
width="760" height="194"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
</embed>
</object>
</center>
<script type="text/javascript">
var so = new SWFObject("includes/templates/yourtemplate/Movie7a.swf", "YOUR_HEADER", "760", "194", "7", "#FFCCCC");
so.write("flashcontent");
</script>
THIS IS WHY your flash is not working..most of required
flash code is missing.
-
Re: Problem with Flash Header
OK i have put this in...This is my full code. Is this correct or did i screw something else up?
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
id="Movie7a" width="760" height="194">
<param name="movie" value="photo_tutorial.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFCCCC">
<embed name="Movie7a" src="gallery3/photo_tutorial.swf" quality="high" bgcolor="#FFCCCC"
width="760" height="194"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
</embed>
</object>
</center>
<script type="text/javascript">
var so = new SWFObject("gallery3/photo_tutorial.swf", "photo_tutorial.swf", "760", "494", "7", "#FFCCCC");
so.write("flashcontent");
</script>
-
Re: Problem with Flash Header
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
id="Movie7a" width="760" height="194">
<param name="movie" value="photo_tutorial.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFCCCC">
<embed name="Movie7a" src="gallery3/photo_tutorial.swf" quality="high" bgcolor="#FFCCCC"
width="760" height="194"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
</embed>
</object>
</center>
<script type="text/javascript">
var so = new SWFObject("gallery3/photo_tutorial.swf", "photo_tutorial.swf", "760", "494", "7", "#FFCCCC");
so.write("flashcontent");
</script>
You have copied my SAMPLE CODE..
you need to adapt/replace certain parts of that code with
your own paths/sizes etc..
Marked red is incorrect and
it is NOT your full code...
This code should be what goes at
This text is replaced by the Flash movie.
-
Re: Problem with Flash Header
WOW!!! OK i am very confused but this is what i tried doing. I copied the first piece of code you gave me at the beginning which was;
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
This text is replaced by the Flash movie.
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/arch_shoppe/photo_tutorial.swf", "photo_tutorial.swf", "550", "460", "7", "#000000");
so.write("flashcontent");
</script>
I then added the last piece of code you gave me which was
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
id="Movie7a" width="760" height="194">
<param name="movie" value="photo_tutorial.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFCCCC">
<embed name="Movie7a" src="gallery3/photo_tutorial.swf" quality="high" bgcolor="#FFCCCC"
width="760" height="194"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
</embed>
</object>
</center>
<script type="text/javascript">
var so = new SWFObject("gallery3/photo_tutorial.swf", "photo_tutorial.swf", "760", "494", "7", "#FFCCCC");
so.write("flashcontent");
</script>
Then i changed it to what i think it should be which is still wrong probably. I am not sure what to replace Movie7a with. I was thinking the name of the swf file. Here is my FULL current code.
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
id="photo_tutorial.swf" width="760" height="194">
<param name="movie" value="photo_tutorial.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFCCCC">
<embed name="photo_tutorial.swf" src="/photo_tutorial.swf" quality="high" bgcolor="#FFCCCC"
width="760" height="194"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
</embed>
</object>
</center>
<script type="text/javascript">
var so = new SWFObject("includes/templates/arch_shoppe/jscript/swfobject.js", "photo_tutorial.swf", "760", "494", "7", "#FFCCCC");
so.write("flashcontent");
</script>
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/arch_shoppe/jscript/swfobject.js", "550", "560", "7", "#000000");
so.write("flashcontent");
</script>
-
Re: Problem with Flash Header
Still incorrect re YOUR Sizes,Colours and PATHS, marked RED
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
id="photo_tutorial.swf" width="760" height="194">
<param name="movie" value="photo_tutorial.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFCCCC">
<embed name="photo_tutorial.swf" src="/photo_tutorial.swf" quality="high" bgcolor="#FFCCCC"
width="760" height="194"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
</embed>
</object>
</center>
<script type="text/javascript">
var so = new SWFObject("includes/templates/arch_shoppe/jscript/swfobject.js", "photo_tutorial.swf", "760", "194", "7", "#FFCCCC");
so.write("flashcontent");
</script>
-
Re: Problem with Flash Header
Its not working...The size and color shouldnt matter. I can change that to make it proportional or fit better on the page later. I just need it to work corerctly and it doesn't seem to be doing anything.
Code:
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
<script type="text/javascript" src="includes/templates/arch_shoppe/jscript/swfobject.js"></script>
<div id="flashcontent">
<center>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://active.macromedia.com/flash2/...ersion=4,0,0,0"
id="photo_tutorial.swf" width="600" height="450">
<param name="movie" value="photo_tutorial.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#FFCCCC">
<embed name="/gallery3/photo_tutorial.swf" src="photo_tutorial.swf" quality="high" bgcolor="#FFCCCC"
width="600" height="450"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/shockwave/...ShockwaveFlash">
</embed>
</object>
</center>
<script type="text/javascript">
var so = new SWFObject("includes/templates/arch_shoppe/jscript/swfobject.js", "photo_tutorial.swf", "600", "450", "7", "#FFCCCC");
so.write("flashcontent");
</script>
</div>
<script type="text/javascript">
var so = new SWFObject("includes/templates/arch_shoppe/jscript/swfobject.js", "600", "450", "7", "#000000");
so.write("flashcontent");
</script>