Page 172 of 235 FirstFirst ... 72122162170171172173174182222 ... LastLast
Results 1,711 to 1,720 of 2345
  1. #1711
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

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

    Quote Originally Posted by countrycharm View Post
    Are talking about banners you have made and displaying on your site. In other words you do not want to display the banner on ever page I'm not sure if that can be done without it not being displayed at all. I have 5 different banners that alternate depending what page you are on by the sort order.
    I have a banner that I put several advertisements. I do not want entire banner to show on login, checkout and shopping cart pages.

  2. #1712
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

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

    Quote Originally Posted by kburner View Post
    I have a banner that I put several advertisements. I do not want entire banner to show on login, checkout and shopping cart pages.
    I will have to do some checking on this. I'm not sure it can be done I will check for you.
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  3. #1713
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

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

    Quote Originally Posted by countrycharm View Post
    I will have to do some checking on this. I'm not sure it can be done I will check for you.
    Any word?

    Thanks, Kim

  4. #1714
    Join Date
    Jul 2007
    Posts
    2,169
    Plugin Contributions
    16

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

    Quote Originally Posted by kburner View Post
    Any word?

    Thanks, Kim
    Sorry I have not had time. I went to your site in your signature, what banner are you talking about? I think we need to move this to another thread or something. I don't want to hi-jack this thread for this. It's off topic. Sorry guys
    Is your site Upgraded to the current version 1.5.4 Yet?
    zencart-upgrades-website-installation

  5. #1715
    Join Date
    Apr 2008
    Location
    Flint, Michigan
    Posts
    687
    Plugin Contributions
    0

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

    Quote Originally Posted by countrycharm View Post
    Sorry I have not had time. I went to your site in your signature, what banner are you talking about? I think we need to move this to another thread or something. I don't want to hi-jack this thread for this. It's off topic. Sorry guys
    Were to move it? Can you move this? If I start a new thread -- I do not want to get tagged for posting too many....

    Banner is at bottom of page with advertisements in it...Shopmania, upfront, shopspot, etc.

    Thanks, Kim

  6. #1716
    Join Date
    Nov 2009
    Posts
    2
    Plugin Contributions
    0

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

    Hello, How can I put all the categories listed in the top(as in target.com)form left to right? i don't want the menu categories, instead I would like that each category was a menu.

    Sorry for my english.

    thanks

  7. #1717
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

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

    Quote Originally Posted by notforever View Post
    Hello, How can I put all the categories listed in the top(as in target.com)form left to right? i don't want the menu categories, instead I would like that each category was a menu.

    Sorry for my english.

    thanks
    There is actually a mod very similar to this but actually does exactly as you want. The two mods are very similar, so similar that the css is exactly the same (from what I can see), its just the coding that is done differently on one of the files.

    You can get the mod here
    Thank you,
    autoace

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

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

    I've just added this menu to a new site and can't seem to figure out how to adjust the height?

    I wont be using it as a drop down, just purely as a button header row.

    Anyone?

  9. #1719
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

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

    Quote Originally Posted by notforever View Post
    Hello, How can I put all the categories listed in the top(as in target.com)form left to right? i don't want the menu categories, instead I would like that each category was a menu.

    Sorry for my english.

    thanks
    kburner posted the code back a few pages when I asked the same question.

    replace all the code in /includes/classes/categories_ul_generator.php
    with this

    Code:
    <?php
    class zen_categories_ul_generator {
        var $root_category_id = 0,
        $max_level = 6,
        $data = array(),
        $root_start_string = '',
        $root_end_string = '',
        $parent_start_string = '',
        $parent_end_string = '',
    
        $parent_group_start_string = '<ul%s>',
        $parent_group_end_string = '</ul>',
    
        $child_start_string = '<li%s>',
        $child_end_string = '</li>',
    
        $spacer_string = '
        ',
        $spacer_multiplier = 1;
    
        var $document_types_list = ' (3) ';// acceptable format example: ' (3, 4, 9, 22, 18) '
    
        function zen_categories_ul_generator($load_from_database = true)
        {
            global $languages_id, $db;
            $this->data = array();
            $categories_query = "select c.categories_id, cd.categories_name, c.parent_id
                                 from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd
                                 where c.categories_id = cd.categories_id
                                 and c.categories_status=1 " .
                                 " and cd.language_id = '" . (int)$_SESSION['languages_id'] . "' " .
                                 " order by c.parent_id, c.sort_order, cd.categories_name";
            $categories = $db->Execute($categories_query);
            while (!$categories->EOF) {
              $this->data[$categories->fields['parent_id']][$categories->fields['categories_id']] = array('name' => $categories->fields['categories_name'], 'count' => 0);
                $categories->MoveNext();
            }
        }
    
        function buildBranch($parent_id, $level = 1, $submenu=false) {
          if ($parent_id != '0') {
            $result = sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ($level) . '"' : '' );
          }
            if (($this->data[$parent_id])) {
                foreach($this->data[$parent_id] as $category_id => $category) {
                  $category_link = $category_id;
                  if (($this->data[$category_id])) {
                    $result .= sprintf($this->child_start_string, ($submenu==true) ? ' class="submenu"' : '');
                  } else {
                    if (($this->data[$category_id]) && ($submenu==false)) {
                      $result .= sprintf($this->parent_group_start_string, ($submenu==true) ? ' class="level'. ($level+1) . '"' : '');
                      $result .= sprintf($this->child_start_string, ($submenu==true) ? ' class="submenu"' : '');
                    } else {
                      $result .= sprintf($this->child_start_string, '');
                    }
                  }
                  if ($level == 0) {
                    $result .= $this->root_start_string;
                  }
                  $result .= str_repeat($this->spacer_string, $this->spacer_multiplier * $level) . '<a href="' . zen_href_link(FILENAME_DEFAULT, 'cPath=' . $category_link) . '">';
                  $result .= $category['name'];
                  $result .= '</a>';
                  if ($level == 0) {
                    $result .= $this->root_end_string;
                  }
                  if (($this->data[$category_id])) {
                    $result .= $this->parent_end_string;
                  }
                  if (($this->data[$category_id]) && (($this->max_level == '0') || ($this->max_level > $level+1))) {
                    $result .= $this->buildBranch($category_id, $level+1, $submenu);
                  }
                  $result .= $this->child_end_string;
                }
            }
            if ($level > 0) {
              $result .= $this->parent_group_end_string;
            }
            return $result;
        }
    
        function buildTree($submenu=false)
        {
            return $this->buildBranch($this->root_category_id, '', $submenu);
        }
    }
    ?>

    The one thing about the code change is that the link to your subcats from the menu does not dispay the full category path. Just the final subcat and product id which means the normal categories sidebox menu doesn't open. I imagine the code could be changed to get it to open the full path but I havn't figured out how.

  10. #1720
    Join Date
    Dec 2008
    Posts
    36
    Plugin Contributions
    0

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

    Quote Originally Posted by timdwyer42 View Post

    The one thing about the code change is that the link to your subcats from the menu does not dispay the full category path. Just the final subcat and product id which means the normal categories sidebox menu doesn't open. I imagine the code could be changed to get it to open the full path but I havn't figured out how.
    Hi Timdqyer42, just wondering if you got the solution of displaying the full path of subcategories on sidebox menu?

    anyone?

 

 

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

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