Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2007
    Posts
    9
    Plugin Contributions
    0

    Default 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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    This is the logic you can use in your tpl_header.
    Code:
    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.

  3. #3
    Join Date
    Sep 2007
    Posts
    9
    Plugin Contributions
    0

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

  4. #4
    Join Date
    Aug 2007
    Posts
    37
    Plugin Contributions
    0

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

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

  5. #5
    Join Date
    Apr 2006
    Location
    West Salem, IL
    Posts
    2,886
    Plugin Contributions
    0

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

    funksdaburn,
    who thought it would be funny to put "###### ##########" 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!

 

 

Similar Threads

  1. Need Flash to Show on Main Page Only
    By ljdream00 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Aug 2010, 06:17 AM
  2. Trying to get flash installed on main page only
    By strugglingnovice in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 21 Jul 2010, 12:20 PM
  3. Problem with flash on main page (not header)
    By sartor in forum General Questions
    Replies: 7
    Last Post: 14 Jan 2009, 10:59 AM
  4. Detaching header from main page - how to get main section and header size differently
    By guls_guys in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 28 Apr 2008, 06:07 PM
  5. Header with Flash on Main Page only
    By dbran30 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 21 Apr 2008, 11:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg