Thread: tpl_header.php

Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2007
    Posts
    100
    Plugin Contributions
    0

    Default tpl_header.php

    I modified tpl_header.php to include links to EZ pages on the top bar on the same level as Home Log in etc.

    It does work however it works inconsistently especially when I log in into the account.

    Sometimes it shows all links the way it is supposed to but sometimes it duplicates them.

    Below is the code that i changed:

    <div id="navMain">
    <ul class="back">
    <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if (DEFINE_CONTACT_US_STATUS <= 1) { ?>
    <li><?php echo '<a href="' . zen_href_link(FILENAME_CONTACT_US, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>
    <?php } ?>
    <?php if ($_SESSION['customer_id']) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
    } else {
    if (STORE_STATUS == '0') {
    ?>
    <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <li><a href="<?php echo 'http://www.zipdrugs.com/index.php?main_page=page&id=2&chapter=0'?>">About Us</a></li>
    <li><a href="<?php echo 'http://www.zipdrugs.com/index.php?main_page=page&id=3&chapter=0'?>">How To Order</a></li>
    <li><a href="<?php echo 'http://www.zipdrugs.com/index.php?main_page=index&cPath=1'?>">Drug List</a></li>
    <li><a href="<?php echo 'http://www.zipdrugs.com/index.php?main_page=page&id=4&chapter=0'?>">Consumer Warning</a></li>
    <?php } } ?>
    <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    <li><a href="<?php echo 'http://www.zipdrugs.com/index.php?main_page=page&id=2&chapter=0'?>">About Us</a></li>
    <li><a href="<?php echo 'http://www.zipdrugs.com/index.php?main_page=page&id=3&chapter=0'?>">How To Order</a></li>
    <li><a href="<?php echo 'http://www.zipdrugs.com/index.php?main_page=index&cPath=1'?>">Drug List</a></li>
    <li><a href="<?php echo 'http://www.zipdrugs.com/index.php?main_page=page&id=4&chapter=0'?>">Consumer Warning</a></li>
    <?php }?>
    </ul>
    </div>

  2. #2
    Join Date
    Aug 2006
    Location
    Canada
    Posts
    1,029
    Plugin Contributions
    5

    Default Paging for additional help...

    To me, it appears as a wrapping problem. It's apparent if you reduce screen resolutions or make the other original hidden navigation links active.

    I've done that mod before, but I've never had that many EZ pages additions to deal with.

    Anyone else like to chime in about this occurrence and a possible work-around?

 

 

Similar Threads

  1. So confusing tpl_header.php, header.php... etc..
    By neveu in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 23 Sep 2010, 03:20 PM
  2. tpl_header.php issue
    By templespt in forum General Questions
    Replies: 3
    Last Post: 16 Feb 2009, 08:46 PM
  3. tpl_header.php
    By athena in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 11 Aug 2008, 09:55 PM
  4. Editing tpl_header.php
    By waru in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 10 Jan 2007, 10:33 AM
  5. tpl_header.php
    By jwashburn in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 19 Jun 2006, 03:00 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