Results 1 to 3 of 3
  1. #1
    Join Date
    May 2007
    Posts
    95
    Plugin Contributions
    0

    Default Header display problematic in IE

    My header is not displayed correctly in IE. It's fine in Firefox.

    here is my tpl_header

    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) {
    ?>

    <div id="headerWrapper">
    <!--bof-navigation display-->
    <div id="navMainWrapper">
    <div id="logowrapper">
    <div id="navMain">
    <ul class="back">
    <li>    <div id="logo"><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">' zen_image($template->get_template_dir(HEADER_LOGO_IMAGEDIR_WS_TEMPLATE$current_page_base,'images'). '/' HEADER_LOGO_IMAGEHEADER_ALT_TEXT) . '</a>'?></div></li>

    <li><?php echo HEADER_TITLE_SEARCH ;
    require(
    DIR_WS_MODULES 'sideboxes/search_header.php'); ?></li> 

    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF?></a></li>
    <?php    }
        else{ 
    ?>  
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN'''SSL'); ?>"><?php echo HEADER_TITLE_LOGIN
        }
    ?></a></li>
        <?php if (!($_SESSION['COWOA'])) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a></li><?php ?>
        <!--<li><a href="<?php //echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php //echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>-->

    </ul>
    <br class="clearBoth" />
    </div>

    </div>
    <div id="navHeader">
    <ul>
    <li><?php echo '<a href="' HTTP_SERVER DIR_WS_CATALOG '">'?><?php echo HEADER_TITLE_CATALOG?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS'''SSL'); ?>"><?php echo HEADER_TITLE_ABOUT?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_PAGE_4'''SSL'); ?>"><?php echo HEADER_TITLE_SERVICES?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''SSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US'''SSL'); ?>"><?php echo HEADER_TITLE_CONTACT?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_PAGE_3'''SSL'); ?>"><?php echo HEADER_TITLE_CAREERS?></a></li>
    </ul>
    </div>

    <br class="clearBoth"/>
    </div>
    <!--eof-navigation display-->
    <!--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 ?>
    Thanks
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	firefox-header.jpg 
Views:	204 
Size:	7.1 KB 
ID:	2885   Click image for larger version. 

Name:	IE-header.jpg 
Views:	206 
Size:	6.6 KB 
ID:	2886  

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

    Default Re: Header display problematic in IE

    When something is not displaying correctly, it's normally a stylesheet problem rather than a php file problem.
    And, display problems are best addressed by giving us a link to the site.
    A little help with colors.
    myZenCartHost.com - Zen Cart Certified, PCI Compatible Hosting by JEANDRET
    Free SSL & Domain with semi-annual and longer hosting. Updating 1.5.2 and Up.

  3. #3
    Join Date
    Oct 2007
    Posts
    289
    Plugin Contributions
    0

    Default Re: Header display problematic in IE

    Clear your floats.

    Use <div style="clear:both;"><!-- --></div> after the floats.
    [FONT=Microsoft Sans Serif]CSS Evangelist[/FONT]

 

 

Similar Threads

  1. Entire site is Secure - Problematic!
    By DavidWM in forum General Questions
    Replies: 5
    Last Post: 15 Apr 2012, 11:16 PM
  2. Problematic Header menu
    By perfumbg in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 8 Jan 2011, 10:08 AM
  3. Problematic Paypal
    By Aphexangel in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 19 Aug 2010, 09:39 AM
  4. shipping cost problematic
    By jekkil in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 27 Apr 2008, 06:51 PM
  5. Product Image Dimensions Problematic
    By dpatrick in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 Mar 2008, 12:29 AM

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