Zen Cart Logo
Forums / All Other Contributions/Addons / CSS Dropdown menu for the header- With Categories!

CSS Dropdown menu for the header- With Categories!

Views: 615,576

Results 1,681 to 1,700 of 2,344
27 Oct 2009, 6:57 AM
#1681
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

CSS Dropdown menu for the header- With Categories!

MeltDown:

Hello! I've just added this menu to my Zen version 1.3.6 and overall everything seems to be fine. There is one minor issue that I'd like to resolve: If you visit this page and mouse-over Categories or Information in the menu, you'll see that the menu goes behind the CSS image Gallery. Any suggestions on how to correct that?

And while I'm at it, could someone also tell me how to remove the grey line at the upper-most part of the page?

Thanks!!

I dealt with the issue by re-arranging the page content, although this certainly doesn't resolve the fact that this issue was occuring. If anyone has comments on why it was occuring I would love to hear them.

Also I would still like to remove that grey line at the upper-most part of the page that seems to be born out of the introduction of this mod.

Thanks!

9 Nov 2009, 7:33 AM
#1682
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

I just noticed another issue: When you click to view the large image, the menu stays on top of the image rather than dimming and going behind. (Example: Click to enlarge)

In in stylesheet_lightbox.css, change the z-index of #overlay to 9000 as reccomended here but to no avail.

This cart is a Zen 1.3.6 and I am using the Zen Lightbox mod.

Thanks for whatever assistance anyone can give!

9 Nov 2009, 11:02 PM
#1683
webwiz avatar

webwiz

New Zenner

Join Date:
Jan 2006
Location:
wv
Posts:
21
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

OMG what an AWESOME Mod!! :clap:

I don't think I've ever had used one that was SO easy to implement! Practically did everything by itself while I just sat here & watched.

My only "issue" (cuz not really a problem) is that it affected the appearance of a couple other things...

#1 - I've now got this white space above my header/logo img. I'm thinking that it's obviously somewhere in the css for this mod, but I don't want to go messing around with the code until I know exactly what to change. Weird thing is...it only appears as white space. If you hover over left side of white space, you actually see links for Home and Log In. ??

#2 - My shop now is "touching" the top/bottom of the browser window, whereas before, I had it set up to have a little spacing above/below the shop. Pardon my lack of exact terminology, lol.

Can someone maybe take a look at my site here and tell me which part(s) I need to tinker with?:
http://www.thesoappeddler.com

Thanks in advance!

P.S. I'm using 1.3.8a, heavily mod'd

11 Nov 2009, 5:29 AM
#1684
meltdown avatar

meltdown

Totally Zenned

Join Date:
Jun 2006
Location:
My family and I live in Brighton, England
Posts:
947
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

MeltDown:

I just noticed another issue: When you click to view the large image, the menu stays on top of the image rather than dimming and going behind. (Example: Click to enlarge)

In in stylesheet_lightbox.css, change the z-index of #overlay to 9000 as reccomended here but to no avail.

This cart is a Zen 1.3.6 and I am using the Zen Lightbox mod.

Thanks for whatever assistance anyone can give!

I believe I've worked this out: In stylesheet_lightbox.css I increased the z-index on the lightbox to 1000:

#lightbox {
left:0;
line-height:0;
position:absolute;
text-align:center;
top:40px;
width:100%;
z-index:1000;
}

11 Nov 2009, 6:50 PM
#1685
smoke133 avatar

smoke133

Zen Follower

Join Date:
Jul 2007
Location:
Roseville, Michigan
Posts:
188
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

MeltDown:

I just noticed another issue: When you click to view the large image, the menu stays on top of the image rather than dimming and going behind. (Example: Click to enlarge)

In in stylesheet_lightbox.css, change the z-index of #overlay to 9000 as reccomended here but to no avail.

This cart is a Zen 1.3.6 and I am using the Zen Lightbox mod.

Thanks for whatever assistance anyone can give!

Try changing both of the z-index in these two in the stylesheet_lightbox.css.

#lightbox {
left:0;
line-height:0;
position:absolute;
text-align:center;
top:40px;
width:100%;
z-index:10000;
}

#overlay {
-moz-opacity:0.6px;
background-color:#000;
filter:alpha(opacity=60);
height:500px;
left:0;
opacity:0.6px;
position:absolute;
top:0;
width:100%;
z-index:9000;
}

12 Nov 2009, 6:46 PM
#1686
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

I am still working on categories in my header. I dropped one trying to get all to fit.

Still does not look very good and categories are running together like Homeschool and kids.

Still Need:

  1. Categories to line up across -spacing
  2. When hover over Christian Living - covers words up

Any suggestions? Kim

https://www.burnerbooks.com

13 Nov 2009, 12:58 AM
#1687
newbie76 avatar

newbie76

Zen Follower

Join Date:
Aug 2009
Posts:
100
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Installed on my 1.3.8a and working like a charm, just got to edit the stylesheet tomorrow to change the colours!

Thankyou for such a great add-on!

13 Nov 2009, 11:11 PM
#1688
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

kburner:

I am still working on categories in my header. I dropped one trying to get all to fit.

Still does not look very good and categories are running together like Homeschool and kids.

Still Need:

  1. Categories to line up across -spacing
  2. When hover over Christian Living - covers words up

Any suggestions? Kim

https://www.burnerbooks.com

Not sure how to do it...but would like to divide each category up and apply image, spacing...maybe get it to work that way.

I am not good at css. How do I make each category stand alone?
For example, category KJV Bibles would have line of own.

Kim

14 Nov 2009, 1:45 PM
#1689
timdwyer42 avatar

timdwyer42

Zen Follower

Join Date:
Apr 2009
Posts:
149
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

kburner:

I am still working on categories in my header. I dropped one trying to get all to fit.

Still does not look very good and categories are running together like Homeschool and kids.

Still Need:

  1. Categories to line up across -spacing
  2. When hover over Christian Living - covers words up

Any suggestions? Kim

https://www.burnerbooks.com

Hi I'm looking to put my top catagories across the top like on your site. Can you explain how you did this?

Thanks if you can.

14 Nov 2009, 3:24 PM
#1690
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

timdwyer42:

Hi I'm looking to put my top catagories across the top like on your site. Can you explain how you did this?

Thanks if you can.

Someone else within this thread helped me. I went through my files and if I am not mistaken this is where you modify. includes/classes/categories_ul_generator.php. I am not sure where so I included whole file. You may want to use winmerge to see differences.

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);
    }
}
?>

Hope this helps. I have 12-13 categories and I am still trying to get spacing to work. I am hoping someone provides response with "how to" with separating each category and modify each in css file. I am not good at generating new css for each category.

Kim

16 Nov 2009, 1:11 PM
#1691
timdwyer42 avatar

timdwyer42

Zen Follower

Join Date:
Apr 2009
Posts:
149
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Thanks alot. I notice when I click on a link from the menu, it doesn't show the whole subcatagory path. for example

index.php?main_page=index&cPath=245

rather than

index.php?main_page=index&cPath=38_39_245

this makes a huge difference for me and makes it pretty much unusable.

Does anyone have an idea of what code to change in categories_ul_generator.php to get it to show the full path?

16 Nov 2009, 4:03 PM
#1692
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

I looked thru forum and could not find answer...please let me know if there is one.

At login page, I do not want category menu to show. How do I disable only at that page?

https://www.burnerbooks.com/index.php?main_page=login

17 Nov 2009, 7:14 PM
#1693
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hi - I tried to install this today, but when I uploaded my tpl_header my site went blank.

<?php

/**

 * Common Template - tpl_header.php

 *

 * this file can be copied to /templates/your_template_dir/pagename<br />

 * example: to override the privacy page<br />

 * make a directory /templates/my_template/privacy<br />

 * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br />

 * to override the global settings and turn off the footer un-comment the following line:<br />

 * <br />

 * $flag_disable_header = true;<br />

 *

 * @package templateSystem

 * @copyright Copyright 2003-2006 Zen Cart Development Team

 * @copyright Portions Copyright 2003 osCommerce

 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0

 * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $

 */

?>



<?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) {

?>



<div id="headerWrapper">

<!--bof-navigation display-->

<div id="navMainWrapper">

<div id="navMain">

<ul class="back">
<li><a href="http://www.bellafavori.com/index.php?main_page=products_new">WHAT'S NEW</a></li>
<li><a href="http://www.bellafavori.com/index.php?main_page=page_5">SPECIAL OFFERS</a></li>
<li><a href="http://www.bellafavori.com/index.php?main_page=page_6">BRIDAL REGISTRY</a></li>
<li><a href="http://www.bellafavori.com/index.php?main_page=page_7">BRIDAL SHOWS</a></li>
<li><a href="http://www.bellafavori.com/index.php?main_page=page_8">EMAIL UPDATES</a></li>
<li><?php if (!$_SESSION['customer_id']) { ?>
<a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>">LOGIN</a><?php } ?>
<?php if (!($_SESSION['COWOA'])) { ?><?php if ($_SESSION['customer_id']) { ?>
<a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>">MY ACCOUNT</a> 
<?php } ?><?php } ?>
<?php if (!($_SESSION['COWOA'])) { ?><?php if ($_SESSION['customer_id']) { ?>
<a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>">LOGOUT</a></li><?php } ?><?php } ?>
<?php if ($_SESSION['cart']->count_contents() != 0) { ?>
<a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>">VIEW CART</a>
<a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>">CHECKOUT</a>
<?php }?>

</ul>

</div>

<div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div>

<br class="clearBoth" />

</div>

<!--eof-navigation display-->



<!--bof-branding display-->

<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))) { ?>

    <div id="taglineWrapper">

<?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>

<br class="clearBoth" />

<!--eof-branding 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-->

<?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-->
<!--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-->
<div class="clearBoth"></div>
<?php } ?>

Once I uploaded my tpl_header without the drop down code, everything went back to normal. Any idea what could be causing the problem?

18 Nov 2009, 9:12 PM
#1694
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

kburner:

I looked thru forum and could not find answer...please let me know if there is one.

At login page, I do not want category menu to show. How do I disable only at that page?

https://www.burnerbooks.com/index.php?main_page=login

Does anyone know code and file to put disable menu on pages like login, shopping cart, etc?

I have sideboxes disabled with includes/temp/xxx/templates/common/tpl_main_pge.php with this code:

//add page names that you want to disable left and right columns
$center_column_only = array('login','account','no_account','checkout','create_account', 'shopping_cart');
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,$center_column_only) ) {
$flag_disable_right = true;
$flag_disable_left = true;
}

I figure it has to be similar....

19 Nov 2009, 9:31 PM
#1695
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

CharInLasVegas:

Hi - I tried to install this today, but when I uploaded my tpl_header my site went blank.

<?php /** * Common Template - tpl_header.php * * this file can be copied to /templates/your_template_dir/pagename<br /> * example: to override the privacy page<br /> * make a directory /templates/my_template/privacy<br /> * copy /templates/templates_defaults/common/tpl_footer.php to /templates/my_template/privacy/tpl_header.php<br /> * to override the global settings and turn off the footer un-comment the following line:<br /> * <br /> * $flag_disable_header = true;<br /> * * @package templateSystem * @copyright Copyright 2003-2006 Zen Cart Development Team * @copyright Portions Copyright 2003 osCommerce * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0 * @version $Id: tpl_header.php 4813 2006-10-23 02:13:53Z drbyte $ */ ?> <?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) { ?> <div id="headerWrapper"> <!--bof-navigation display--> <div id="navMainWrapper"> <div id="navMain"> <ul class="back"> <li><a href="http://www.bellafavori.com/index.php?main_page=products_new">WHAT'S NEW</a></li> <li><a href="http://www.bellafavori.com/index.php?main_page=page_5">SPECIAL OFFERS</a></li> <li><a href="http://www.bellafavori.com/index.php?main_page=page_6">BRIDAL REGISTRY</a></li> <li><a href="http://www.bellafavori.com/index.php?main_page=page_7">BRIDAL SHOWS</a></li> <li><a href="http://www.bellafavori.com/index.php?main_page=page_8">EMAIL UPDATES</a></li> <li><?php if (!$_SESSION['customer_id']) { ?> <a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>">LOGIN</a><?php } ?> <?php if (!($_SESSION['COWOA'])) { ?><?php if ($_SESSION['customer_id']) { ?> <a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>">MY ACCOUNT</a> <?php } ?><?php } ?> <?php if (!($_SESSION['COWOA'])) { ?><?php if ($_SESSION['customer_id']) { ?> <a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>">LOGOUT</a></li><?php } ?><?php } ?> <?php if ($_SESSION['cart']->count_contents() != 0) { ?> <a href="<?php echo zen_href_link(FILENAME_SHOPPING_CART, '', 'NONSSL'); ?>">VIEW CART</a> <a href="<?php echo zen_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>">CHECKOUT</a> <?php }?> </ul> </div> <div id="navMainSearch"><?php require(DIR_WS_MODULES . 'sideboxes/search_header.php'); ?></div> <br class="clearBoth" /> </div> <!--eof-navigation display--> <!--bof-branding display--> <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))) { ?>
<div id="taglineWrapper">
<?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> <br class="clearBoth" /> <!--eof-branding 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--> <?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--> <!--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--> <div class="clearBoth"></div> <?php } ?> ``` > > Once I uploaded my tpl_header without the drop down code, everything went back to normal. Any idea what could be causing the problem?

Possibly you're like me and did not want the EZPages to show up in the menu. So I did not upload the EZPages file in the mod.

After doing as you stated, I ran the debug file utility in the downloads area and it gave me the correct error.

All it is line 79 in tpl_drop_menu.php. Find this line of code:

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

and simply delete it or 'cut' it out and place in a spare readme file to remind yourself the mod you have made (saves alot of time for reference).

After that, I got my site back! Hope this helps you.

19 Nov 2009, 9:45 PM
#1696
charinlasvegas avatar

charinlasvegas

Zen Follower

Join Date:
Jan 2009
Location:
Vegas Baby!
Posts:
311
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

autoace:

Possibly you're like me and did not want the EZPages to show up in the menu. So I did not upload the EZPages file in the mod.

Quite right, I will give your fix a try fingers crossed. Thanks so much.

19 Nov 2009, 9:48 PM
#1697
kburner avatar

kburner

Totally Zenned

Join Date:
Apr 2008
Location:
Flint, Michigan
Posts:
684
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

kburner:

Does anyone know code and file to put disable menu on pages like login, shopping cart, etc?

I have sideboxes disabled with includes/temp/xxx/templates/common/tpl_main_pge.php with this code:

//add page names that you want to disable left and right columns
$center_column_only = array('login','account','no_account','checkout','create_account', 'shopping_cart');
// the following IF statement can be duplicated/modified as needed to set additional flags
if (in_array($current_page_base,$center_column_only) ) {
$flag_disable_right = true;
$flag_disable_left = true;
}

I figure it has to be similar....

Anyone? I do not want menu to show on shopping cart and checkout pages similar to sideboxes.

19 Nov 2009, 10:50 PM
#1698
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Well I have this mod installed and working only to find out that there is actually a mod that does exactly what I am looking for: I want my top categories to be displayed across the top vs how this mod does it.

I am planning on just deleting the files from the server. Does anyone know which files from this mod modify the core files and which ones do not?

19 Nov 2009, 10:58 PM
#1699
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

autoace:

Well I have this mod installed and working only to find out that there is actually a mod that does exactly what I am looking for: I want my top categories to be displayed across the top vs how this mod does it.

I am planning on just deleting the files from the server. Does anyone know which files from this mod modify the core files and which ones do not?

Please disregard the above post. The new mod actually contains the exact same file and folder structure. So I can just overwrite.

20 Nov 2009, 6:51 PM
#1700
autoace avatar

autoace

Totally Zenned

Join Date:
Jun 2009
Posts:
618
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

I am having some issues with CSS Horizontal Dynamic Menu (Paul's edition) - I already know that this is the wrong support thread (sorry). I have been searching the forums for the right one but can not seem to find it. Can someone please provide a link to it if they know of it - thank you.

In addition, I would like to ask if someone could please take a look at my site, http://www. a u to m o t i v e a c e.com to see if they know what the problem is.

Basically what I did was just overwrite the files when I ftp'd them. Same files and the same folder structure. It just does not display properly - seems to be centered in the middle and only the first 4 top-level categories display. The rest are there but its like they are hidden, you have to hover the mouse over them.

Again, I apologize - I know this is the wrong thread, if someone can point in the right direction, that would be great. Thank you.