Forums / Templates, Stylesheets, Page Layout / Problem with Flash Header

Problem with Flash Header

Locked

Started by nacidoporfe on 22 Sep 2006, 3:18 AM · Views: 95,615

Results 41 to 60 of 235
This thread is locked. New replies are disabled.
9 Oct 2007, 7:24 PM
#41
bennywong3011 avatar

bennywong3011

New Zenner

Join Date:
Oct 2007
Posts:
2
Plugin Contributions:
0

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!
23 Dec 2007, 12:18 AM
#42
groovy_stuff avatar

groovy_stuff

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
13
Plugin Contributions:
0

Re: Problem with Flash Header

:frusty:
Hope someone can help as this is driving me nuts!!!!

On my site at https://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?

23 Dec 2007, 5:02 PM
#43
groovy_stuff avatar

groovy_stuff

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
13
Plugin Contributions:
0

Re: Problem with Flash Header

ignore above! all sorted now!:clap:

23 Dec 2007, 5:21 PM
#44
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

Re: Problem with Flash Header

And you did........

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

23 Dec 2007, 8:53 PM
#45
groovy_stuff avatar

groovy_stuff

New Zenner

Join Date:
Nov 2007
Location:
UK
Posts:
13
Plugin Contributions:
0

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

16 Jan 2008, 10:57 PM
#46
derwin avatar

derwin

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

Re: Problem with Flash Header

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 https://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:

16 Jan 2008, 11:25 PM
#47
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,892
Plugin Contributions:
20

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

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com

16 Jan 2008, 11:32 PM
#48
derwin avatar

derwin

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

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

16 Jan 2008, 11:35 PM
#49
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Problem with Flash Header

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.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

16 Jan 2008, 11:48 PM
#50
derwin avatar

derwin

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

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:

16 Jan 2008, 11:56 PM
#51
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Problem with Flash Header

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

<!--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="[URL]http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0[/URL]"
     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="[URL]http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash[/URL]">
     </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

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

17 Jan 2008, 12:00 AM
#52
derwin avatar

derwin

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

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

17 Jan 2008, 12:09 AM
#53
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

17 Jan 2008, 12:17 AM
#54
jocar6562 avatar

jocar6562

New Zenner

Join Date:
Nov 2007
Posts:
11
Plugin Contributions:
0

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

17 Jan 2008, 12:18 AM
#55
derwin avatar

derwin

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

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

17 Jan 2008, 12:31 AM
#56
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

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

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

17 Jan 2008, 12:36 AM
#57
derwin avatar

derwin

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

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

17 Jan 2008, 7:14 AM
#58
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Problem with Flash Header

Would need to see file/code, without your configuration, to
see if you are entering correctly.

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

17 Jan 2008, 12:51 PM
#59
derwin avatar

derwin

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

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

17 Jan 2008, 1:00 PM
#60
derwin avatar

derwin

New Zenner

Join Date:
Dec 2007
Posts:
38
Plugin Contributions:
0

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