Results 1 to 7 of 7
  1. #1
    Join Date
    May 2004
    Posts
    766
    Plugin Contributions
    0

    Default Top Banners-Wide Layout Questions

    Hi,

    First of all I have done a forum search and I have read the FAQ in the tutorial about banners: https://www.zen-cart.com/tutorials/index.php?article=80

    With that said.....

    I am trying to figure out a way to have two (2) 486x60 banners lay side by side in top banner position 2 (which is below my header) and possibly two side by side above the footer. I realize I may have to decrease the length of each slightly to avoid a side scroll.

    They can't be hardcoded in as I need them to all rotate. Due to the rotation, I also can't take 2 banners and combine them into a single image.

    Any ideas and/or suggestions appreciated-

    thank you,

    betty

  2. #2
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Top Banners-Wide Layout Questions

    Move the code for one of the other banner positions to where you need it.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

    Default Re: Top Banners-Wide Layout Questions

    Quote Originally Posted by Kim View Post
    Move the code for one of the other banner positions to where you need it.
    thank you Kim.

    Also I have looked and looked at the header template file and I cannot find where banner 1 is. If I enable it, a banner shows up above the header, yet in the code I can't see a reference to it. Is it hiding in disguise or are my eyes overlooking something simple?

    thank you again,

    betty

  4. #4
    Join Date
    Jun 2003
    Posts
    33,720
    Plugin Contributions
    0

    Default Re: Top Banners-Wide Layout Questions

    Look in the tpl_main_page
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

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

    Default Re: Top Banners-Wide Layout Questions

    Quote Originally Posted by Kim View Post
    Move the code for one of the other banner positions to where you need it.
    Quote Originally Posted by Kim View Post
    Look in the tpl_main_page
    Well, the good news is that I found the banner 1 code in the tpl_main_page.

    The bad news is that I moved all the code that pertained to banner 1 to above where I moved the banner 2 code to in the tpl_header.php file.

    Got an unexpected "}" error in the tpl_main_page.php file, so I deleted the code on the error line which began on line 59:

    Code:
    <?php
        }
      }
    ?>
    so that error went away.

    That left me with an error of "unexpected end on line 135" (which is my last line) in the tpl_header.php file.

    I tried removing the line which is:

    Code:
    <?php } ?>
    and still got the same error message. So for now I put the files back the way they were to get rid of the error messages. Yet I still need to put the banners side by side. Between trying to figure out the code issues which normally my fiance does (is a trucker and on the road now) and how I'll change the div tags so they won't line break the banners....I'm stuck yet again and feeling totally stupid.

    As long as I've been using this cart, I should be able to figure out code by now, yet here I flounder. I don't know if I'm just dense or if it's the 14 different meds I take every day. What ever it is, I apologize that I yet again need to ask for help and/or advise.

    thank you,

    betty

    (apologies also for the mini emotional rant)

  6. #6
    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!

  7. #7
    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