Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    Default Horizontal Fly Drop down Mneu

    I have added the files in the appropriate location.

    When I add the code
    <!--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-->
    to the header in the common templates directory,

    The page stops part way through the header. See attached image.



    This is the last part of the code:

    <div id="dropMenuWrapper">
    <div id="dropMenu">
    <ul class="level1">
    <!-- You can manually put whatever additional links you like in using this structure -->
    <li class="submenu"><a href="http://www.stitchboutiqueboston.com/">Home</a>
    <ul class="level2">
    <li><a href="yourlinkhere">yourtexthere</a></li>
    <li><a href="http://www.stitchboutiqueboston.com/products_all.html">All Products</a></li>
    <li><a href="http://www.stitchboutiqueboston.com/specials.html">Specials</a></li>
    <li><a href="http://www.stitchboutiqueboston.com/index.php?main_page=advanced_search">Search</a></li>
    </ul>
    </li>


    I can't seem to figure out what could be causing the problem.

    TIA Tom

  2. #2
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Horizontal Fly Drop down Mneu

    Quote Originally Posted by tcjay View Post
    This is the last part of the code:

    <div id="dropMenuWrapper">
    <div id="dropMenu">
    <ul class="level1">
    <!-- You can manually put whatever additional links you like in using this structure -->
    <li class="submenu"><a href="http://www.stitchboutiqueboston.com/">Home</a>
    <ul class="level2">
    <li><a href="yourlinkhere">yourtexthere</a></li>
    <li><a href="http://www.stitchboutiqueboston.com/products_all.html">All Products</a></li>
    <li><a href="http://www.stitchboutiqueboston.com/specials.html">Specials</a></li>
    <li><a href="http://www.stitchboutiqueboston.com/index.php?main_page=advanced_search">Search</a></li>
    </ul>
    </li>


    I can't seem to figure out what could be causing the problem.

    TIA Tom
    Tom, is that </li> the very last line of your code? If so, you need to close the open divs................shown in red:

    Code:
    <div id="dropMenuWrapper">
      <div id="dropMenu">
        <ul class="level1">
    <!-- You can manually put whatever additional links you like in using this structure -->
          <li class="submenu"><a href="http://www.stitchboutiqueboston.com/">Home</a>
            <ul class="level2">
              <li><a href="yourlinkhere">yourtexthere</a></li>
              <li><a href="http://www.stitchboutiqueboston.com/products_all.html">All Products</a></li>
              <li><a href="http://www.stitchboutiqueboston.com/specials.html">Specials</a></li>
              <li><a  href="http://www.stitchboutiqueboston.com/index.php?main_page=advanced_search">Search</a></li>
            </ul>
          </li>
    </div>
    </div>
    Hope this helps.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

  3. #3
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    Default Re: Horizontal Fly Drop down Mneu

    Those twp <DIV> are at the end of the code from tmp_Drop_menu.


    <?php
    // load the UL-generator class and produce the menu list dynamically from there
    require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
    $zen_CategoriesUL = new zen_categories_ul_generator;
    $menulist = $zen_CategoriesUL->buildTree(true);
    $menulist = str_replace('"level4"','"level5"',$menulist);
    $menulist = str_replace('"level3"','"level4"',$menulist);
    $menulist = str_replace('"level2"','"level3"',$menulist);
    $menulist = str_replace('"level1"','"level2"',$menulist);
    $menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
    $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
    echo $menulist;
    ?>
    <!-- You can also add links on this side of your catefories menu -->
    <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_INFORMATION; ?></a>
    <ul class="level2">
    <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo HEADER_TITLE_SHIPPING_INFO; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo HEADER_TITLE_PRIVACY_POLICY; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo HEADER_TITLE_CONDITIONS_OF_USE; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo HEADER_TITLE_ABOUT_US; ?></a></li>
    <?php if (defined('FILENAME_SITE_MAP')) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo HEADER_TITLE_SITE_MAP; ?></a></li>
    <?php } ?>
    <li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_GV_FAQ; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_DISCOUNT_COUPON; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_UNSUBSCRIBE; ?></a></li>
    </ul>
    </li>

    </ul>
    </div>
    </div>

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

  4. #4
    Join Date
    Jul 2010
    Location
    Boston
    Posts
    139
    Plugin Contributions
    0

    Default Re: Horizontal Fly Drop down Mneu

    The code in the original post is to show the html that appears on the browser. It looks like the php breaks right before

    <?php
    // load the UL-generator class and produce the menu list dynamically from there
    require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');

    So it never reaches the the <div><div>

    This is the code from the tmp_drop_menu

    <?php
    //
    // +----------------------------------------------------------------------+
    // |zen-cart Open Source E-commerce |
    // +----------------------------------------------------------------------+
    // | Copyright (c) 2003 The zen-cart developers |
    // | |
    // | http://www.zen-cart.com/index.php |
    // | |
    // | Portions Copyright (c) 2003 osCommerce |
    // +----------------------------------------------------------------------+
    // | This source file is subject to version 2.0 of the GPL license, |
    // | that is bundled with this package in the file LICENSE, and is |
    // | available through the world-wide-web at the following url: |
    // | http://www.zen-cart.com/license/2_0.txt. |
    // | If you did not receive a copy of the zen-cart license and are unable |
    // | to obtain it through the world-wide-web, please send a note to |
    // | [email protected] so we can mail you a copy immediately. |
    // +----------------------------------------------------------------------+
    // $Id: tpl_drop_menu.php 2005/06/15 15:39:05 DrByte Exp $
    //

    ?>
    <!-- menu area -->

    <div id="dropMenuWrapper">
    <div id="dropMenu">
    <ul class="level1">
    <!-- You can manually put whatever additional links you like in using this structure -->
    <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
    <ul class="level2">
    <li><a href="yourlinkhere">yourtexthere</a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_ALL); ?>"><?php echo HEADER_TITLE_ALL_PRODUCTS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_SPECIALS); ?>"><?php echo HEADER_TITLE_SPECIALS; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH; ?></a></li>
    </ul>
    </li>

    <?php
    // load the UL-generator class and produce the menu list dynamically from there
    require_once (DIR_WS_CLASSES . 'categories_ul_generator.php');
    $zen_CategoriesUL = new zen_categories_ul_generator;
    $menulist = $zen_CategoriesUL->buildTree(true);
    $menulist = str_replace('"level4"','"level5"',$menulist);
    $menulist = str_replace('"level3"','"level4"',$menulist);
    $menulist = str_replace('"level2"','"level3"',$menulist);
    $menulist = str_replace('"level1"','"level2"',$menulist);
    $menulist = str_replace('<li class="submenu">','<li class="submenu">',$menulist);
    $menulist = str_replace("</li>\n</ul>\n</li>\n</ul>\n","</li>\n</ul>\n",$menulist);
    echo $menulist;
    ?>
    <!-- You can also add links on this side of your catefories menu -->
    <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_INFORMATION; ?></a>
    <ul class="level2">
    <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo HEADER_TITLE_SHIPPING_INFO; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo HEADER_TITLE_PRIVACY_POLICY; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_CONDITIONS); ?>"><?php echo HEADER_TITLE_CONDITIONS_OF_USE; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo HEADER_TITLE_ABOUT_US; ?></a></li>
    <?php if (defined('FILENAME_SITE_MAP')) { ?>
    <li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo HEADER_TITLE_SITE_MAP; ?></a></li>
    <?php } ?>
    <li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_GV_FAQ; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_DISCOUNT_COUPON; ?></a></li>
    <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_UNSUBSCRIBE; ?></a></li>
    </ul>
    </li>

    </ul>
    </div>
    </div>

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

  5. #5
    Join Date
    Dec 2006
    Location
    Seligman, MO U.S.A.
    Posts
    2,101
    Plugin Contributions
    5

    Default Re: Horizontal Fly Drop down Mneu

    Tom, I'm not sure which menu that you actually got, but save yourself a lot of trouble...............uninstall all the files that you installed for that one and install THIS ONE............your headache will be over.
    Teach them to shop and they will shop today;
    Teach them to Zen and they will OWN a shop tomorrow!

 

 

Similar Threads

  1. Which Horizontal Drop Down Menu?
    By mydanilo in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Sep 2011, 10:29 PM
  2. Header Horizontal Drop down menu in zen cart
    By ken0306 in forum General Questions
    Replies: 2
    Last Post: 16 May 2011, 09:49 AM
  3. CSS Horizontal Drop Down Menu Add on
    By GodfatherAntiques in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 17 Nov 2010, 05:01 AM
  4. CSS Horizontal Drop Down Menu
    By kaddie in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 14 Apr 2010, 02:50 AM
  5. CSS Horizontal Drop Down Menu by Jade True
    By GCWeb in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 16 Aug 2008, 05:48 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR