Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Top Banners-Wide Layout Questions

    You have to get your brackets balanced ... the first was too many or in the wrong sequence ... the second was not enough and again in the wrong sequence ...

    Would it be easier to start with the clean file, and apply the changes you need now that you understand the banners better?

    Or, use something like Beyond Compare from scootersoftware.com where you can compare the two files and perhaps see where your code is out of wack?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  2. #2
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Re: Top Banners-Wide Layout Questions

    Hi Ajeh,

    I have the files back the way they were before I moved the banner one info to the tpl_header file. So my header file is back to just showing banner 2 below the header image.

    Right now the code for my tpl_header file is (snipped top copyright info etc for space):

    Code:
     * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $
     */
    ?>
    <!--bof-branding display-->
    <table border="0" height="99" cellspacing="0" cellpadding="0" class="header" bgcolor="#e2e2e2">
             <tr>
                <td valign="top" height="76" width="260"><a href="index.php?main_page="><img src="headerbg1.png" height="76" width="261" border="0"></a></td>
    			<td align="center" valign="top" height="76" width="100%" style="background-image:url(headerbg2.png);background-repeat:repeat-x;"></td>
    			<td valign="top" height="76" width="312"><img src="headerbg3.png" height="76" width="312" border="0"></td>
    </tr>
    <tr>
    <td height="23" colspan="3" align="center" style="background-image:url(headerbg4.png);background-repeat:repeat-x;" wrap="nowrap">
    <div class="navMainSearch forward"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>
    <?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-->
    <div id="navMain">
        <ul class="back3">
        <li><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo HEADER_TITLE_CATALOG; ?></a></li>
    <?php if ($_SESSION['customer_id']) { ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
        <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
    <?php
          } else {
            if (STORE_STATUS == '0') {
    ?>
        <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
    <?php } } ?>
    
    <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, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT; ?></a></li>
    </ul>
    </ul>
    </div>
    <br class="clearBoth" />
    </div>
    </tr></td></table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" style="background-color:#E2E2E2; border-bottom:1px solid #333;">
    <tr>
    <td valign="top" align="left">
    <div id="logoWrapper">
        <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>'; ?></div>
    <?php if (HEADER_SALES_TEXT != '' || (SHOW_BANNERS_GROUP_SET2 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET2))) { ?>
        
    <?php
                  if (HEADER_SALES_TEXT != '') {
    ?>
          <div id="tagline"><?php echo HEADER_SALES_TEXT;?></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>
    </td>
    <!--eof-branding display-->		
    </tr></table>
    <!--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-->
    
    <!--eof-header ezpage links-->
    </div>
    <?php } ?>
    the tpl_main_page.php is as it was originally in the template_default in v1.36.

    I also had removed the ezpage header info hoping it would make the easy link pages show up with my other header links, but alas it didn't.

    Where do I go from here to add either the banner 1 or banner 3 top banner to show next to the banner 2?

    I appreciate your advise and input as this (along with the ez-pages) are haunting me.

    thank you,

    betty

 

 

Similar Threads

  1. Store Banners Site wide
    By BreaJR in forum Basic Configuration
    Replies: 0
    Last Post: 20 Sep 2006, 02:12 AM
  2. Wide Banners Help
    By waghelak in forum General Questions
    Replies: 0
    Last Post: 10 Jul 2006, 10:32 AM
  3. Wide banners only on frontpage
    By cakemaker in forum Basic Configuration
    Replies: 1
    Last Post: 10 Jun 2006, 11: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