Page 1 of 2 12 LastLast
Results 1 to 10 of 2344

Hybrid View

  1. #1
    Join Date
    Aug 2004
    Posts
    503
    Plugin Contributions
    0

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

    All you need to do is create an ez-page link and include it in your menu and it works perfectly. I use one or two in our menus

  2. #2
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

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

    Yeah I know that However, I said I'd like it to automatically include ez-pages in the menu when you make them. Kinda like the categories are with the menu now.

    So you don't have to manually edit the files. To me it seems like a lot less hassle if it's possible.

    Quote Originally Posted by disciple View Post
    All you need to do is create an ez-page link and include it in your menu and it works perfectly. I use one or two in our menus

  3. #3
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

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

    Quote Originally Posted by shackle View Post
    I'd like it to automatically include ez-pages in the menu when you make them. Kinda like the categories are with the menu now. So you don't have to manually edit the files. To me it seems like a lot less hassle if it's possible.
    That same feature suggestion came up earlier in this thread and Jade replied he would add that feature into the next update.

    Woody

  4. #4
    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 shackle View Post
    Yeah I know that However, I said I'd like it to automatically include ez-pages in the menu when you make them. Kinda like the categories are with the menu now.

    So you don't have to manually edit the files. To me it seems like a lot less hassle if it's possible.
    Hi There,

    I've come up with a solution for this... its a bit of a work around, but is working well. You can see it in action at http://www.zencart137.jadetrue.com.

    I'm not sure whether to release this as part of the module for everyone and update it, OR to just offer the files for this add on separately. I know its going to cause me problems for people who don't want this, LOL.

    I've set this up so that any ezpages added show up BELOW the regular information pages (shipping, privacy, conditions of use, etc.). This can of course be manually changed for people who may want to have the ezpages first, or who may want to remove some of the regular information links.

    There are two files that need to be added:

    includes/modules/sideboxes/YOUR_TEMPLATE/ezpages_drop_menu.php
    includes/templates/YOUR_TEMPLATE/tpl_ezpages_drop_menu.php

    and then of course there is a change to:
    includes/templates/YOUR_TEMPLATE/common/tpl_drop_menu.php

    I'm going to attach the two new files mentioned above in a zip file, for those that want this functionality now. I think I will eventually add this to the download, just need to test this out with people that want it now, so I know better what I need to add to the instructions.

    STEP 1.
    Upload the files included in the zip file to these locations:

    includes/modules/sideboxes/YOUR_TEMPLATE/ezpages_drop_menu.php
    includes/templates/YOUR_TEMPLATE/tpl_ezpages_drop_menu.php

    Step 2.

    Add this code to includes/templates/YOUR_TEMPLATE/tpl_drop_menu.php:

    <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>

    I personally added the above code right after the last item in the "INFORMATION" drop down, so I put it right after:
    <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_UNSUBSCRIBE; ?></a></li>
    <?php } ?>

    You can add it anywhere in the INFORMATION box, or basically anywhere inside of a current drop down, but I did not design this mod to be its OWN main drop down.

    Step 3.
    Then you have to go to your admin, and go to "Tools", "Layout Boxes controller". There should be a new sidebox, if you'd uploaded things correctly. You must turn the SINGLE COLUMN STATUS TO ON, leave the LEFT/RIGHT COLUMN STATUS off.


    Step 4.

    Under "Tools", "EZPages", make sure the ezpages are set to ON for the header. The sort orders also have to be greater than "0". If you want to have the regular zen cart horizontal header bar off, go to "Configuration", "EZPages Settings", and turn the header bar display status to off (0).

    I think that's it.

    So now you can have any number of EZPages setups. You can have the regular EZPages horizontal header bar on, or have the regular EZpages sidebox on, or you can have them in your css drop down menu, OR any combination of the three.
    Attached Files Attached Files

  5. #5
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

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

    Quote Originally Posted by jettrue View Post
    There are two files that need to be added:

    includes/modules/sideboxes/YOUR_TEMPLATE/ezpages_drop_menu.php
    includes/templates/YOUR_TEMPLATE/tpl_ezpages_drop_menu.php
    The last path should be:
    includes/templates/YOUR_TEMPLATE/templates/tpl_ezpages_drop_menu.php

    Installing right now. Just wanted to post that tidbit before I forgot. Will report back how it goes. And thanks for doing this!

    Woody

  6. #6
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

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

    Regards to installing EZ-pages into the drop down menu:

    I'm a bit lost with STEP 2:

    Step 2.
    Add this code to includes/templates/YOUR_TEMPLATE/tpl_drop_menu.php
    I think you meant:
    includes/templates/YOUR_TEMPLATE/common/tpl_drop_menu.php:

    My default tpl_drop_menu.php looks like:

    Code:
      <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_UNSUBSCRIBE; ?></a></li>
            </ul>
          </li>
          <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
    Following the example provided in your step 3 instructions I'm still uncertain where to insert:

    Code:
    <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
    You suggested to place after:
    Code:
     <?php } ?>
    But I don't see that.

    Maybe you can provide example file for the helpess?

    Question: If ez-pages are enabled for drop-down header then they also appear above the drop down menu. Is there an option available to allow display ez-page links in the drop downs but at same time disable ez-page links display above drop downs? Or do I have to remove the following ez-pages display code segment in common/tpl_header.php?

    Code:
      <!--bof-header ezpage links-->
      <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
      <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
      <?php } ?>
      <!--eof-header ezpage links-->
    Woody

  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 Woodymon View Post
    Regards to installing EZ-pages into the drop down menu:

    I'm a bit lost with STEP 2:

    I think you meant:
    includes/templates/YOUR_TEMPLATE/common/tpl_drop_menu.php:

    My default tpl_drop_menu.php looks like:

    Code:
      <li><a href="<?php echo zen_href_link(FILENAME_UNSUBSCRIBE, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_UNSUBSCRIBE; ?></a></li>
            </ul>
          </li>
          <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
    Following the example provided in your step 3 instructions I'm still uncertain where to insert:

    Code:
    <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
    You suggested to place after:
    Code:
     <?php } ?>
    But I don't see that.

    Maybe you can provide example file for the helpess?
    Yes, I updated tpl_drop_menu.php earlier in this thread, so that the unsubscribe link turns off if you have it turned off in the admin. SO you can change your unsubscribe section to this:

    Code:
    		  <?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 } ?>
    Then you can insert:
    Code:
    <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
    Right after that.
    Quote Originally Posted by Woodymon View Post
    Question: If ez-pages are enabled for drop-down header then they also appear above the drop down menu. Is there an option available to allow display ez-page links in the drop downs but at same time disable ez-page links display above drop downs? Or do I have to remove the following ez-pages display code segment in common/tpl_header.php?

    Code:
      <!--bof-header ezpage links-->
      <?php if (EZPAGES_STATUS_HEADER == '1' or (EZPAGES_STATUS_HEADER == '2' and (strstr(EXCLUDE_ADMIN_IP_FOR_MAINTENANCE, $_SERVER['REMOTE_ADDR'])))) { ?>
      <?php require($template->get_template_dir('tpl_ezpages_bar_header.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_ezpages_bar_header.php'); ?>
      <?php } ?>
      <!--eof-header ezpage links-->
    Woody
    If I understand what you're asking, I addressed that in step 4 already:
    If you want to have the regular zen cart horizontal header bar off, go to "Configuration", "EZPages Settings", and turn the header bar display status to off (0).

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

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

    For those who are adding the ezpages functionality to this mod, I made errors in the file locations. They should be:

    includes/modules/sideboxes/YOUR_TEMPLATE/ezpages_drop_menu.php
    includes/templates/YOUR_TEMPLATE/templates/tpl_ezpages_drop_menu.php

    and you have to make changes to:
    includes/templates/YOUR_TEMPLATE/common/tpl_drop_menu.php

    I wish I could edit old posts!

  9. #9
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

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

    Quote Originally Posted by jettrue View Post
    Yes, I updated tpl_drop_menu.php earlier in this thread,
    Thanks. I read the complete thread before posting and again read just now. I still don't see where that code change was suggested. More coffee please.

    Quote Originally Posted by jettrue View Post
    If I understand what you're asking, I addressed that in step 4 already:
    Ahh...I did miss that one... as I was unable to proceed past step 2 ;-)

    Thanks again.
    Woody

  10. #10
    Join Date
    Sep 2004
    Posts
    2,420
    Plugin Contributions
    2

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

    Quote Originally Posted by jettrue View Post
    Yes, I updated tpl_drop_menu.php earlier in this thread, so that the unsubscribe link turns off if you have it turned off in the admin. SO you can change your unsubscribe section to this:

    Code:
    		  <?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 } ?>
    Then you can insert:
    Code:
    <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
    Right after that.
    Jade-

    Would you be kind enough to offer a complete sample file. I've tried to follow your edit instructions but just not working out. Thanks.

    Woody

 

 
Page 1 of 2 12 LastLast

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