Forums / Templates, Stylesheets, Page Layout / How to display flash header only on main page?

How to display flash header only on main page?

Locked

Views: 1,477

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
16 Sep 2007, 7:06 AM
#1
funksdaburn avatar

funksdaburn

New Zenner

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

How to display flash header only on main page?

I have figured out how to display .swf's in the header. Now I need to know how to only dispaly this flash header on the main page and have a different .gif display on the other pages.
Please help!!
http://www.wrathofbabel.com/zen

16 Sep 2007, 7:47 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: How to display flash header only on main page?

This is the logic you can use in your tpl_header.

if ($this_is_home_page) {
 // do home page stuff
} else {
 // do non-home-page-stuff
}

If you want varying gifs on the other pages, you could use the per-page-stylesheet capabilities documented in the /docs folder.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

16 Sep 2007, 9:05 AM
#3
funksdaburn avatar

funksdaburn

New Zenner

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

Re: How to display flash header only on main page?

Thanks Doc, but Im still not sure where to put that code.
I tried putting it up but it just messed things up big time. Could you tell me how to place it inside tpl_header?
Thanks soooo much!

18 Sep 2007, 6:46 PM
#4
jh79 avatar

jh79

New Zenner

Join Date:
Aug 2007
Posts:
37
Plugin Contributions:
0

Re: How to display flash header only on main page?

Yes, please elaborate, I am trying to do the exact same thing, thanks!

18 Sep 2007, 6:59 PM
#5
barco57 avatar

barco57

Totally Zenned

Join Date:
Apr 2006
Location:
West Salem, IL
Posts:
2,845
Plugin Contributions:
0

Re: How to display flash header only on main page?

funksdaburn,
who thought it would be funny to put "gay porno" as one of you categories? I know your still building but now that you have posted a link here in the forum for google to see.........

Mike
AEIIA - Zen Cart Certified & PCI Compliant Hosting
The Zen Cart Forum...Better than a monitor covered with post-it notes!