Results 1 to 10 of 2344

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Ahh, managed to figure that out quite quickly. I just had to add an extra defines to header.php and call on it below:

    PHP Code:
    <?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="dropMenuWrapperb">
        <div id="dropMenuWrapperc">
          <div id="dropMenuWrapperd">
            <div id="dropMenu">
             <ul class="level1">
                <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG?></a>
                </li>
                
                <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US'''NONSSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US?></a></li>

                <li><a href="<?php echo zen_href_link(FILENAME_ADVANCED_SEARCH); ?>"><?php echo HEADER_TITLE_SEARCH?></a></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;
    ?>
                <?php if ($_SESSION['cart']->count_contents() != 0) { ?>
                <li class="submenu"><a class="noLine" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a>
                  <ul class="level2">
                    <li><a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING'''SSL'); ?>"><?php echo HEADER_TITLE_CHECKOUT?></a></li>
                  </ul>
                </li>
                <?php } else { ?>
                <li><a class="noLine" href="<?php echo zen_href_link(FILENAME_SHOPPING_CART'''NONSSL'); ?>"><?php echo HEADER_TITLE_CART_CONTENTS?></a></li>
                <?php ?>
                
                  
                  <?php if ($_SESSION['customer_id']) { ?>
                  <li class="submenu"><a class="noLine" href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT2?></a>
                  <ul class="level2">
                    <li><a class="noLine" href="<?php echo zen_href_link(FILENAME_LOGOFF'''SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF?></a></li>
                    <li><a class="noLine" href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS'''SSL'); ?>"><?php echo HEADER_TITLE_NEWSLETTERS?></a></li>
                  </ul>
                </li>
                    <?php } else { ?>
                 <li><a class="noLine" href="<?php echo zen_href_link(FILENAME_ACCOUNT'''SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT?></a></li>
                    <?php ?>
                 </li>

                <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_INFORMATION?></a>
                  <ul class="level2">
                    <?php if (DEFINE_SHIPPINGINFO_STATUS <= 1) { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_SHIPPING); ?>"><?php echo HEADER_TITLE_SHIPPING_INFO?></a></li>
                    <?php ?>
                    <?php if (DEFINE_PAYMENTS_STATUS <= 1) { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_PAYMENTS); ?>"><?php echo HEADER_TITLE_PAYMENTS?></a></li>
                    <?php ?>
                    <?php if (DEFINE_PRIVACY_STATUS <= 1)  { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_PRIVACY); ?>"><?php echo HEADER_TITLE_PRIVACY_POLICY?></a></li>
                    <?php ?>
                    <!--<li><a href="<?php echo zen_href_link(FILENAME_ABOUT_US); ?>"><?php echo HEADER_TITLE_ABOUT_US?></a></li>-->
                    <?php if (DEFINE_SITE_MAP_STATUS <= 1) { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo HEADER_TITLE_SITE_MAP?></a></li>
                    <?php ?>
                    <?php if (MODULE_ORDER_TOTAL_GV_STATUS == 'true') { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_GV_FAQ'''NONSSL'); ?>"><?php echo HEADER_TITLE_GV_FAQ?></a></li>
                    <?php ?>
                    <?php if (MODULE_ORDER_TOTAL_COUPON_STATUS == 'true') { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_DISCOUNT_COUPON'''NONSSL'); ?>"><?php echo HEADER_TITLE_DISCOUNT_COUPON?></a></li>
                    <?php ?>
                    <?php if (SHOW_NEWSLETTER_UNSUBSCRIBE_LINK == 'true') { ?>
                    <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE'''NONSSL'); ?>"><?php echo HEADER_TITLE_UNSUBSCRIBE?></a></li>
                    <?php ?>
                    <?php require(DIR_WS_MODULES 'sideboxes/' $template_dir '/' 'ezpages_drop_menu.php'); ?>
                    <li><a href="index.php?main_page=reviews">Recent Reviews</a></li>
                  </ul>
                </li>          
            </div>
          </div>
        </div>
          </tr>
      </div>
    </div><!-- end dropMenuWrapper-->
    <div class="clearBoth"></div>

  2. #2
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    hi,

    I have tried to fix the following prob myself for days but finally giving up now.

    on my zencart I have instaled Cherry Zen and I have got the following:

    1) CSS Drop Down Menu
    2) Sidebox CLICKSHOWHIDECATEGORY mod

    Now If I try and display both, it messes up the stylesheet and I cant see the clickshowhide sidebox.

    Now I know that problem is with CSS DROP DOWN because if i disable CSS DROP DWN then it works fine but then obviously there is no drop down.

    I have also noticed that the problem is with "dyamic ul generator" class and if i comment it out, there are no problems.

    I have also noticed the same problem with other mods with sidebox.

    Any help would be appreciate.

    site is http://food2pakistan.com and I have disabled the sidebox of clickshowhide for the site to work correctly until i resolve this issue.

  3. #3
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by Lectronix View Post
    hi,

    I have tried to fix the following prob myself for days but finally giving up now.

    on my zencart I have instaled Cherry Zen and I have got the following:

    1) CSS Drop Down Menu
    2) Sidebox CLICKSHOWHIDECATEGORY mod

    Now If I try and display both, it messes up the stylesheet and I cant see the clickshowhide sidebox.

    Now I know that problem is with CSS DROP DOWN because if i disable CSS DROP DWN then it works fine but then obviously there is no drop down.

    I have also noticed that the problem is with "dyamic ul generator" class and if i comment it out, there are no problems.

    I have also noticed the same problem with other mods with sidebox.

    Any help would be appreciate.

    site is http://food2pakistan.com and I have disabled the sidebox of clickshowhide for the site to work correctly until i resolve this issue.
    I can't help you if I can't see the problem in action.

    I do see that you are missing two closing </div>'s. You somehow deleted two closing </div>'s from includes/templates/YOUR_TEMPLATE/common/tpl_header.php. Reupload the original of that file.

    That could be your problem. Just because removing css drop down makes things better, doesn't mean there is a problem with it.

  4. #4
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    hi thanks for replying. I have now enabled the sidebox so please have a look. I have also uploaded the original tpl_header.php

    I am using the following to insert the drop dwn, right after categories tabs display (which I have commented out but even if i dont, the problem is there):

    <!--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-->
    Last edited by Lectronix; 20 Apr 2009 at 07:43 PM.

  5. #5
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by Lectronix View Post
    hi thanks for replying. I have now enabled the sidebox so please have a look. I have also uploaded the original tpl_header.php

    I am using the following to insert the drop dwn, right after categories tabs display (which I have commented out but even if i dont, the problem is there):

    <!--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-->
    Your site is still generating errors.

    I think part of your problem is your code here:
    <!--// bof: search //-->
    and
    <!--// eof: search //-->

    The correct syntax for hidden text would be like this: (get rid of the //'s).
    <!-- bof search -->
    and
    <!-- eof search -->

  6. #6
    Join Date
    Jun 2008
    Posts
    12
    Plugin Contributions
    0

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by jettrue View Post
    Your site is still generating errors.

    I think part of your problem is your code here:
    <!--// bof: search //-->
    and
    <!--// eof: search //-->

    The correct syntax for hidden text would be like this: (get rid of the //'s).
    <!-- bof search -->
    and
    <!-- eof search -->
    I couldnt find the <!--// bof: search //--> etc in search sidebox so I turned it off but its the same. Also all other sideboxes disappear like normal category sidebox, whats new sidebox, currency sidebox on right column etc

  7. #7
    Join Date
    Jan 2005
    Location
    USA, St. Louis
    Posts
    3,710
    Plugin Contributions
    9

    Default Re: CSS Dropdown menu for your header- With Categories!

    Quote Originally Posted by Lectronix View Post
    I couldnt find the <!--// bof: search //--> etc in search sidebox so I turned it off but its the same. Also all other sideboxes disappear like normal category sidebox, whats new sidebox, currency sidebox on right column etc
    You have a lot of things going on on your site.

    Now you have this (remove the extra -->)

    <!--eof-optional categories tabs navigation display-->-->

    Did you turn on a new sidebox? Something (it seems like a sidebox) is stopping the site from finishing loading. Turn off sideboxes one by one until the site comes back.

    To find what file this is in:
    <!--// bof: search //-->

    You can search for it in your admin, under "Tools", "Developers Tool Kit", use the bottom search box, and choose "Search Catalog".

 

 

Similar Threads

  1. Categories dropdown menu/css
    By KenshiroU in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Apr 2013, 01:04 PM
  2. HIde categories mod with css dropdown menu
    By adowty in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 9 Feb 2012, 01:05 AM
  3. How to use ezpages/categories as dropdown menu in the header?
    By mdivk in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 21 Dec 2011, 06:32 PM
  4. whats wrong with this css for my dropdown menu?
    By 1kell in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 28 May 2010, 02:47 AM
  5. Header Dropdown Menu (CSS) Without the Dropdown???
    By hcd888 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 May 2009, 01:20 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