Thread: Flash Header

Results 1 to 9 of 9
  1. #1
    Join Date
    Sep 2006
    Location
    Beerwah. QLD. Australia
    Posts
    79
    Plugin Contributions
    0

    Default Flash Header

    I need a bit of help,
    I want to get this http://www.thepatchshop.com.au/inclu...patchshop.html

    into this
    http://www.thepatchshop.com.au

    I have flashobject.js, patchshop.swf and thepatchshop.html all in same directory

    I have this in the tpl_header.php

    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<br />
    *
    * *package templateSystem
    * *copyright Copyright 2003-2006 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_header.php 3192 2006-03-15 22:37:24Z wilt $
    */
    ?>
    <script type="text/javascript" src="http://www.thepatchshop.com.au/includes/templates/ZC03C00075/jscript/flashobject.js"></script>
    <div id="flashcontent">
    This text is replaced by the Flash movie.
    </div>
    <script type="text/javascript">
    var so = new SWFObject("http://www.thepatchshop.com.au/includes/templates/ZC03C00075/jscript/patchshop.swf", "patchshop", "750", "160", "7", "#000000");
    so.write("flashcontent");
    </script>

  2. #2
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: Flash Header

    There is a related topic.
    Problem with Flash Header
    A New Starter again

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Flash Header

    php and JavaScript loads in the same file will turn you gray or bald very quickly. Try changing the info in the following insertion into the tpl_header.php.
    It should be noted that I created this with the intent of only having the Flash show on the Main Page and a JPEG presented on any other page in order to save load time. You will need to remove the if statement if you want the flash to appear on all pages. No JavaScript required.
    PHP Code:
    <!-- bof flash insertion -->
    <?php
    if ($current_page!='index' || (int)$cPath>) {
    echo 
    '<img src="images/your_file.jpg" width="750" height="160" alt="Your_File Alt Text" border="0" />';
    } else {
    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="160" width="750" id="Flash1">
            <param name="Movie" value="images/Your_File.swf" />
            <param name="Quality" value="AutoLow" />
            <param name="Loop" value="1" />
            <param name="Play" value="1" />
            <param name="WMode" value="Window" />
            <param name="SAlign" value="l" />
    <embed src="images/main.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="144"></embed></object>'
    ;
    }
    ?>
    <!-- eof flash insertion -->
    You will need to move the files to the images directory of your template.

  4. #4
    Join Date
    Sep 2006
    Location
    Beerwah. QLD. Australia
    Posts
    79
    Plugin Contributions
    0

    Default Re: Flash Header

    dbltoe,
    Thanks for reply, and best of all it works
    www.thepatchshop.com.au

    Would you be good enough to assist me in moving it up to replace the generic header.

    Ron

  5. #5
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Flash Header

    Since my son (formally in Sydney working for Dell) owns Boomerang's in Austin, TX how can I resist.

    PM me with a copy of your tpl_header.php

  6. #6
    Join Date
    Sep 2006
    Location
    Beerwah. QLD. Australia
    Posts
    79
    Plugin Contributions
    0

    Default Re: Flash Header

    here is the header which I have in operation now:
    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<br />
    *
    * *package templateSystem
    * *copyright Copyright 2003-2006 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_header.php 3192 2006-03-15 22:37:24Z wilt $
    */
    ?>

    <!-- bof flash insertion -->
    <?php
    {
    echo '<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="160" width="750" id="Flash1">
    <param name="Movie" value="images/patchshop.swf" />
    <param name="Quality" value="AutoLow" />
    <param name="Loop" value="1" />
    <param name="Play" value="1" />
    <param name="WMode" value="Window" />
    <param name="SAlign" value="l" />
    <embed src="images/patchshop.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="144"></embed></object>';
    }
    ?>
    <!-- eof flash insertion -->


    The orginal header will follow

    Ron

  7. #7
    Join Date
    Sep 2006
    Location
    Beerwah. QLD. Australia
    Posts
    79
    Plugin Contributions
    0

    Default Re: Flash Header

    This is the original header;


    <?php
    /**
    * Common Template - tpl_header.php
    *
    * this file can be copied to /templates/your_template_dir/pagename<br />
    * example: to override the privacy page<br />
    * make a directory /templates/my_template/privacy<br />
    * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />
    * to override the global settings and turn off the footer un-comment the following line:<br />
    * <br />
    * $flag_disable_header = true;<br />
    *
    * *package templateSystem
    * *copyright Copyright 2003-2006 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_header.php 3192 2006-03-15 22:37:24Z wilt $
    */
    ?>

    <?php
    // Display all header alerts via messageStack:
    if ($messageStack->size('header') > 0) {
    echo $messageStack->output('header');
    }
    if (isset($_GET['error_message']) && zen_not_null($_GET['error_message'])) {
    echo htmlspecialchars(urldecode($_GET['error_message']));
    }
    if (isset($_GET['info_message']) && zen_not_null($_GET['info_message'])) {
    echo htmlspecialchars($_GET['info_message']);
    } else {

    }
    ?>

  8. #8
    Join Date
    Sep 2006
    Location
    Beerwah. QLD. Australia
    Posts
    79
    Plugin Contributions
    0

    Default Re: Flash Header

    adbltoe,

    Thanks for your assistance,

    Should I delete all of the jpg files in the static header at this point

    Ron

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Flash Header

    ?!?
    The tpl_header.php should be about 108 lines long and it is where you are calling the az_top_left.gif

    Save forum space----click on my username and PM the file.

 

 

Similar Threads

  1. Flash Header
    By igendreau in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 Mar 2010, 08:40 PM
  2. Change header to flash header
    By bettsaj in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 20 Jul 2009, 01:59 PM
  3. flash as header
    By koenvandamme in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 25 Mar 2009, 05:19 PM
  4. Flash Header/ Font Header make changes to...
    By SolarTrees in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 12 Jul 2007, 07:59 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR