FLASH in Header

Locked

Started by gr8tec on 22 Sep 2006, 11:13 PM · Views: 11,037

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
22 Sep 2006, 11:13 PM
#1
gr8tec avatar

gr8tec

New Zenner

Join Date:
Aug 2005
Posts:
24
Plugin Contributions:
0

FLASH in Header

Hello,

I am so confused reading all the messages on how to make flash work in my header... as the example .. http://www.fishmakerart.com

I have a .swf file. and it is located in store/images/logo.swf

Can someone tell me step by step (spoon feed me) on how to make it work.

Thank you in adavance.

Gr8tec

23 Sep 2006, 12:26 AM
#2
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: FLASH in Header

Try this link http://www.zen-cart.com/forum/showthread.php?t=34807&highlight=java+flash

Not only will it help you with where to put your header, it will also prevent the good old MS Lost to Macromedia problem of "click to play"

Hope that helps!

When the world gets in my face I say Have A Nice Day.

25 Sep 2006, 6:15 PM
#3
gr8tec avatar

gr8tec

New Zenner

Join Date:
Aug 2005
Posts:
24
Plugin Contributions:
0

Re: FLASH in Header

I do not know what I am doing wrong. I followed the information Tina gave. But now on the website it shows NO pictures NO flash and it says on top, HEADER_SALES_TEXT...

I created the paragone.js file and the logo.js file.

I put them in includes/templates/classic and /includes/template/template_default

My SWF file is called logo.swf .. where do i put the logo.swf file?

Do i have to modify the header.php page?

Please help. I feel helpless...

25 Sep 2006, 6:29 PM
#4
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: FLASH in Header

You would put the path to your flash in the javascript hun ... can i peek at a URL to try to help you more ?

When the world gets in my face I say Have A Nice Day.

25 Sep 2006, 11:47 PM
#5
gr8tec avatar

gr8tec

New Zenner

Join Date:
Aug 2005
Posts:
24
Plugin Contributions:
0

Re: FLASH in Header

https://www.lesfoyersecologiques.com

currently there is a gif file there ... in HEADER.PHP the file logo.gif is being used.

Here is the location of the swf file. http://www.lesfoyersecologiques.com/logo.swf

I really need to be spoon fed on this one.... I can not understand why I can not do this...

I think i have all the files,,, I just can't put it together...

Is there any way to use MSN or some sort of instant messenger?

THanx in advance..

26 Sep 2006, 1:48 AM
#6
seethrou avatar

seethrou

Totally Zenned

Join Date:
May 2004
Location:
Hong Kong
Posts:
1,156
Plugin Contributions:
0

Re: FLASH in Header

Please refer to the topic below for the steps how to put Flash in the header. Although it may not detail for your situation, the concept is similar.
Problem with Flash Header

.

A New Starter again

26 Sep 2006, 2:39 AM
#7
gr8tec avatar

gr8tec

New Zenner

Join Date:
Aug 2005
Posts:
24
Plugin Contributions:
0

Re: FLASH in Header

Thank you for your reply.

<< banging my head against the wall >>

Here is my suituation.

I d/l ZC and used all the defaults. So nothing fancy here..

Currently is seems that the header information is coming from Header.php and in there the file logo.gif is being called.

So.. I want to stop the logo.gif from being called and want my .swf file to be put into its place.

if someone can tell me exactly what to do and what to modify and where etc..... that would be great.... No short form..... I want it all spelled out for me....

<< so confused >>

I would be happy to donate to ZC for someone to get this to work for me.

I am assuming it only takes a few minutes to do this.... but i have spent hours trying to figure this out....

26 Sep 2006, 3:38 AM
#8
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: FLASH in Header

OK Step by step....

You created the Javascript file paragone.js and you upload it to includes/templates/YOUR_TEMPLATE/javascript

Then you have the code to embed the javascript.
Simply find this code (in the file includes/templates/YOUR_TEMPLATE/common/tpl_header.php) :

<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 != '') { ?> <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div> <?php } ?> <?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 ?>

And replace it with your javascript call from the instructions I pointed you to earlier.

Does that make more sense ?

When the world gets in my face I say Have A Nice Day.

16 Nov 2006, 4:24 AM
#9
cebuboyako avatar

cebuboyako

New Zenner

Join Date:
Nov 2006
Posts:
2
Plugin Contributions:
0

Re: FLASH in Header

Hello All, been reading and following all instructions here BUT this what confuses me when this code comes
includes/templates/YOUR_TEMPLATE/common/tpl_header.php
Does this mean I need to make A SUB FOLDER inside templates
Just like includes/modules/CUSTOM/ or includes/image/CUSTOM
Please enlighten me on this.
Sorry if this has been answered but can't find the answer.

16 Nov 2006, 4:49 AM
#10
cebuboyako avatar

cebuboyako

New Zenner

Join Date:
Nov 2006
Posts:
2
Plugin Contributions:
0

Re: FLASH in Header

Hello All, just want to make sure I understand this right when you make a PATH like this includes/templates/YOUR_TEMPLATE/common/tpl_header.php
Do this mean I have to make a SUB Folder YOUR_TEMPLATE on Folder templates
or do the PATH /YOUR_TEMPLATE means something else.
Sorry if this has been answered before but just can't find the answer.
Thank you.

Also to some of you who are having trouble with ATTRIBUTE check what have I done to my site www.magicmicrophone.com
Each of those products have an ATTRIBUTES.
Did Attribute Names (shipping) then Attribute Values (us free)(int'l +$45)(Over night +$44)
Hope this helps

22 Nov 2006, 3:47 PM
#12
jgamio avatar

jgamio

Zen Follower

Join Date:
Nov 2006
Location:
Caracas
Posts:
114
Plugin Contributions:
0

Re: FLASH in Header

:blink: I have a question a write the javascript but still el activate box is display

I didnt make a external file .because I only want to test Is it a must ?.

12 May 2007, 4:21 PM
#13
figo2476 avatar

figo2476

New Zenner

Join Date:
May 2007
Posts:
9
Plugin Contributions:
0

Re: FLASH in Header

TinaS:

OK Step by step....

You created the Javascript file paragone.js and you upload it to includes/templates/YOUR_TEMPLATE/javascript

Then you have the code to embed the javascript.
Simply find this code (in the file includes/templates/YOUR_TEMPLATE/common/tpl_header.php) :

<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 != '') { ?> <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div> <?php } ?> <?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 ?>

And replace it with your javascript call from the instructions I pointed you to earlier.

Does that make more sense ?

Hi, I wonder where to place the javascript code. I guess something like <li> javascript included here </li>

Also, need to delete the header picture, since the flash header needs to replace it. Not sure which part to comment out though

6 Oct 2007, 6:11 PM
#14
lone_sunflower avatar

lone_sunflower

New Zenner

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

Re: FLASH in Header

I don't even bother. I edit the original files because creating subfolders is a royal pain.