Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Nov 2010
    Posts
    101
    Plugin Contributions
    0

    Default Problem with flash header size

    I hope someone can help! I'm having problems with the size of my flash header. I'm trying to get my header to be 1000px wide. The code that I have for my flash header is in my tpl_header file.
    The flash header is working properly, but the size is not the same as to what I created in adobe flash cs5.
    Code:
     
     <?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 4813 2006-10-23 02:13:53Z drbyte $
     */
    ?>
    
    <?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 {
    
    }
    ?>
    
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    
    
    <!--bof-navigation display-->
    
    <!--eof-navigation display-->
    
    
    
    
    <!--bof-branding display-->
    <div id="logowrapper">
    <object type="application/x-shockwave-flash" data="includes/templates/all_business/flash/qasheader.swf" width="1000px">
    <param name="movie" value="includes/templates/all_business/flash/qasheader.swf" >
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="BGCOLOR" value="#000000">
    </object>
    
    
    
    
    <!--eof-branding display-->
    
    
       <!-- <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>'; ?>
    <?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></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 ?>
    
    
    </div>
    
    <br class="clearBoth" /> -->
    
    
    
    
    
    <!--bof-drop down menu display-->
    <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
    <!--eof-drop down menu display-->
    <div class="clearBoth"></div>
    
    <!--eof-header logo and navigation display-->
    
    
    
    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->
    
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>
    <code>
    <?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 4813 2006-10-23 02:13:53Z drbyte $
     */
    ?>
    
    <?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 {
    
    }
    ?>
    
    <!--bof-header logo and navigation display-->
    <?php
    if (!isset($flag_disable_header) || !$flag_disable_header) {
    ?>
    
    
    <!--bof-navigation display-->
    
    <!--eof-navigation display-->
    
    
    
    
    <!--bof-branding display-->
    <div id="logowrapper">
    <object type="application/x-shockwave-flash" data="includes/templates/all_business/flash/qasheader.swf" width="1000px">
    <param name="movie" value="includes/templates/all_business/flash/qasheader.swf" >
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="BGCOLOR" value="#000000">
    </object>
    
    
    
    
    <!--eof-branding display-->
    
    
       <!-- <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>'; ?>
    <?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></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 ?>
    
    
    </div>
    
    <br class="clearBoth" /> -->
    
    
    
    
    
    <!--bof-drop down menu display-->
    <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
    <!--eof-drop down menu display-->
    <div class="clearBoth"></div>
    
    <!--eof-header logo and navigation display-->
    
    
    
    <!--bof-optional categories tabs navigation display-->
    <?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
    <!--eof-optional categories tabs navigation display-->
    
    <!--bof-header ezpage links-->
    <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
    <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
    <?php } ?>
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>
    Any help would be greatly appreciated. Also I can't provide link to site as it's located on localhost.

  2. #2
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Problem with flash header size

    When you say the size is not the same do you mean the height or the width or both? Is the size smaller or larger than it's supposed to be? Did you adjust the width in #mainwrapper?

  3. #3
    Join Date
    Nov 2010
    Posts
    101
    Plugin Contributions
    0

    Default Re: Problem with flash header size

    Yes I meant the width of the header. The height is fine. Yes i've tried changing the #mainwrapper its stays the same. The size is smaller then it should be.
    Last edited by GodfatherAntiques; 16 Mar 2012 at 01:41 AM. Reason: Added information

  4. #4
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Problem with flash header size

    Did you adjust the width in includes/languages/english/your_template/header.php?

    define('HEADER_LOGO_WIDTH', '1000px');

  5. #5
    Join Date
    Nov 2010
    Posts
    101
    Plugin Contributions
    0

    Default Re: Problem with flash header size

    I have changed the logo width in the file and it still stays the same.

  6. #6
    Join Date
    May 2010
    Location
    WA State
    Posts
    1,678
    Plugin Contributions
    3

    Default Re: Problem with flash header size

    What happens if you add the width to #logowrapper?

  7. #7
    Join Date
    Nov 2010
    Posts
    101
    Plugin Contributions
    0

    Default Re: Problem with flash header size

    nothing it stays the same.

  8. #8
    Join Date
    Nov 2010
    Posts
    101
    Plugin Contributions
    0

    Default Re: Problem with flash header size

    I have tried changing the width within the object tag to 1200 and that makes my header to big.
    Code:
    <object type="application/x-shockwave-flash" data="includes/templates/all_business/flash/qasheader.swf" width="1000px">
    <param name="movie" value="includes/templates/all_business/flash/qasheader.swf" >
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="BGCOLOR" value="#000000">
    </object>

  9. #9
    Join Date
    Nov 2010
    Posts
    101
    Plugin Contributions
    0

    Default Re: Problem with flash header size

    This is what my header looks like in the attached file below.Name:  Capture3.jpg
Views: 172
Size:  15.3 KB

  10. #10
    Join Date
    Nov 2009
    Location
    UK
    Posts
    1,090
    Plugin Contributions
    0

    Default Re: Problem with flash header size

    Check your logowrapper height. If its fixed, then it may be keeping the flash header within its limits.

    Also, try scaling the flash file for width AND height.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Problem with Flash Header
    By nacidoporfe in forum Templates, Stylesheets, Page Layout
    Replies: 234
    Last Post: 13 Mar 2010, 06:08 AM
  2. Problem with flash on main page (not header)
    By sartor in forum General Questions
    Replies: 7
    Last Post: 14 Jan 2009, 10:59 AM
  3. Once again problem with Flash header
    By craigpowell in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 22 Sep 2008, 01:42 AM
  4. Problem with Flash Header pt2
    By hondauser85 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Jun 2007, 04:03 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