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,627

Results 841 to 860 of 2,344
27 Feb 2008, 10:47 PM
#841
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

CSS Dropdown menu for the header- With Categories!

Okay, I have found and installed the CSS manufacturers horizontal module and have it just like I want. However, when you click on the shop by brand, it doesn't take you anywhere.
Thanks for any help!
This would be awesome if I can get it to work!

1 Mar 2008, 8:18 AM
#842
fireflyz avatar

fireflyz

New Zenner

Join Date:
May 2007
Location:
Los Angeles
Posts:
89
Plugin Contributions:
0

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

jettrue:

Yes, this is a known issue, IE always puts dropdown menus at a higher z-index than everything else, and there's no known way around it, as far as I've read. However, in the past I have instructed people to give that select menu a "float:right" attribute in the css, so that at least the drop down SELECT menu appears on the right of the page, which is no longer below the categories, therefore the css menu no longer goes behind it. If you send a link where this occurs, I can give you the exact css to remedy it. Though for pages like the "new" and "all" products page, this will take care of it:

#sorter {float:right;}

Hi Jade,
I did float the SELECT to right and it looks fine now but when customers want to checkout, credit card expiration date (select) is all the way to the right! What do do now? :cry:
Thank you for your help!

2 Mar 2008, 10:23 PM
#843
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

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

helpme:

Okay, I have found and installed the CSS manufacturers horizontal module and have it just like I want. However, when you click on the shop by brand, it doesn't take you anywhere.
Thanks for any help!
This would be awesome if I can get it to work!

Okay, I have gotten a little farther. I now get the drop down with the manufacturers but it is all screwed up. I know that this is probably an easy fix, but I have tried to move code, take out code, and I am getting no where. Can anyone tell me what I can do to fix it? You can see the what happens at my test site **www.mommyandbabyessentials.com/test**

here is my code from my tpl_drop_menu.php file

<?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">
      <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_CATALOG; ?></a>
        <ul class="level2">
          <li><a href="<?php echo zen_href_link(FILENAME_PRODUCTS_NEW); ?>"><?php echo HEADER_TITLE_NEW_PRODUCTS; ?></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 class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>" style="padding-left:5px;"><?php echo "Shop By Brand"; ?></a>              
                <?
 $show_manufacturers= true;
// for large lists of manufacturers uncomment this section
/*
  if (($_GET['main_page']==FILENAME_DEFAULT and ($_GET['cPath'] == '' or $_GET['cPath'] == 0)) or  ($request_type == 'SSL')) {
    $show_manufacturers= false;
  } else {
    $show_manufacturers= true;
  }
*/
// Set to true to display manufacturers images in place of names
define('DISPLAY_MANUFACTURERS_IMAGES',false);
if ($show_manufacturers) {
// only check products if requested - this may slow down the processing of the manufacturers sidebox
  if (PRODUCTS_MANUFACTURERS_STATUS == '1') {
    $manufacturer_sidebox_query = "select distinct m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
                            from " . TABLE_MANUFACTURERS . " m
                            left join " . TABLE_PRODUCTS . " p on m.manufacturers_id = p.manufacturers_id
                            where m.manufacturers_id = p.manufacturers_id and p.products_status= 1
                            order by manufacturers_name";
  } else {
    $manufacturer_sidebox_query = "select m.manufacturers_id, m.manufacturers_name, m.manufacturers_image
                            from " . TABLE_MANUFACTURERS . " m
                            order by manufacturers_name";
  }
  $manufacturer_sidebox = $db->Execute($manufacturer_sidebox_query);
  if ($manufacturer_sidebox->RecordCount()>0) {
    $number_of_rows = $manufacturer_sidebox->RecordCount()+1;
// Display a list
    $manufacturer_sidebox_array = array();
//  kuroi: commented out to avoid starting list with text scrolling list entries such as "reset" and "please select"
//    if (!isset($_GET['manufacturers_id']) || $_GET['manufacturers_id'] == '' ) {
//      $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_ALL);
//    } else {
//      $manufacturer_sidebox_array[] = array('id' => '', 'text' => PULL_DOWN_MANUFACTURERS);
//    }
    while (!$manufacturer_sidebox->EOF) {
      $manufacturer_sidebox_name = ((strlen($manufacturer_sidebox->fields['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturer_sidebox->fields['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturer_sidebox->fields['manufacturers_name']);
   $manufacturer_sidebox_image = $manufacturer_sidebox->fields['manufacturers_image'];
      $manufacturer_sidebox_array[] =
  array('id' => $manufacturer_sidebox->fields['manufacturers_id'],
     'text' => DISPLAY_MANUFACTURERS_IMAGES ?
    zen_image(DIR_WS_IMAGES . $manufacturer_sidebox_image, $manufacturer_sidebox_name) :
    $manufacturer_sidebox_name);
      $manufacturer_sidebox->MoveNext();
    }
      
  }
} // $show_manufacturers
    for ($i=0;$i<sizeof($manufacturer_sidebox_array);$i++) {
      $content = '';
   $content .= '<li ><a class="hide" href="' . zen_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturer_sidebox_array[$i]['id']) . '">';
      $content .= $manufacturer_sidebox_array[$i]['text'];
      $content .= '</a></li>' . "\n";
      echo $content;
 }
  ?> 
 <ul >
             
      </li>
      <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_ABOUT_US); ?>"><?php echo HEADER_TITLE_ABOUT_US; ?></a></li>
   <?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 } ?>
        </ul>
        </li>
      <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_DEFAULT); ?>"><?php echo HEADER_TITLE_ARTICLES; ?></a>
        <ul class="level2">
          
          
          
   <?php require(DIR_WS_MODULES . 'sideboxes/' . $template_dir . '/' . 'ezpages_drop_menu.php'); ?>
        </ul>
      </li>
      <li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
      <li class="submenu"><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a>
        <ul class="level2">
<?php if ($_SESSION['customer_id']) { ?>
          <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a></li>
          <li><a href="<?php echo zen_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGOFF; ?></a></li>
          <li><a href="<?php echo zen_href_link(FILENAME_ACCOUNT_NEWSLETTERS, '', 'SSL'); ?>"><?php echo HEADER_TITLE_NEWSLETTERS; ?></a></li><?php } else { ?>
          <li><a href="<?php echo zen_href_link(FILENAME_LOGIN, '', 'SSL'); ?>"><?php echo HEADER_TITLE_LOGIN; ?></a></li>
          <li><a href="<?php echo zen_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'); ?>"><?php echo HEADER_TITLE_CREATE_ACCOUNT; ?></a></li>
<?php } ?>
        </ul>
      </li>

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

Thanks!

5 Mar 2008, 5:36 AM
#844
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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

I've just installed this mod. Looks great.

Can someone explain why the .htaccess changes are needed for older version of IE?

5 Mar 2008, 10:56 AM
#845
gerjan avatar

gerjan

New Zenner

Join Date:
Dec 2007
Posts:
74
Plugin Contributions:
0

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

Edit; nevermind....

5 Mar 2008, 8:35 PM
#846
helpme avatar

helpme

Totally Zenned

Join Date:
Apr 2007
Posts:
632
Plugin Contributions:
0

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

YEAH!! :clap:I finally have it working! My final question (hopefully!) I have figured out how to make the size of the drop down larger, but the text length still stays the same. For example in Shop by Brand, some of the manufacturer's names are cut way short. (I care if it doesn't say the complete name just a few more letters) Hope this makes sense! Thanks!!!

6 Mar 2008, 12:17 PM
#847
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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

shocker:

I've just installed this mod. Looks great.

Can someone explain why the .htaccess changes are needed for older version of IE?
No anwers on this question yet. After making the .htaccess changes explained in the installation, one of javascripts could'nt find a file located out site of my stores root folder, but still in the same domain.

can anybody shed light on this. for now I've undid the .htaccess changes.

6 Mar 2008, 9:19 PM
#848
chufty_bill avatar

chufty_bill

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
115
Plugin Contributions:
0

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

Hi Guys.

This was the only thread I could find regarding the drop menu, so taking a chance and posting here.

I have installed the drop menu and it is excellent. Just what I wanted.
I have one issue which I hope somebody can help me with.

On my index page (Main_page), I am using the page as a 'gateway' page and have disabled both side columns, etc.

The drop menu doesnt appear, and I have just set up a page with Dreamweaver. It looks Ok for now, but when I look at the page source, it contains all the zen and drop menu coding. I have inserted part below.

<!-- 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="http://skiddaddle.co.uk/index.php?main_page=index">Home</a> <ul class="level2"> <li><a href="yourlinkhere">yourtexthere</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=products_all">All Products</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=specials">Specials</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=advanced_search">Search</a></li> </ul> </li> --> <li class="submenu"><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=102">BOOKS</a><ul class="level2"><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=104">Fiction</a></li><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=106">First Editions</a></li><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=105">Non Fiction</a></li></ul></li><li><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=92">CDS</a></li><li class="submenu"><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=97">DVDS</a><ul class="level2"><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=99">DVD</a></li><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=100">VHS</a></li></ul></li><li><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=107">Gift Vouchers</a></li><li><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=103">GIFTS</a></li><li><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=98">TOYS</a></li><!-- You can also add links on this side of your catefories menu <li class="submenu"><a href="http://skiddaddle.co.uk/index.php?main_page=index">Information</a> <ul class="level2"> <li><a href="http://skiddaddle.co.uk/index.php?main_page=shippinginfo">Shipping Info</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=privacy">Privacy Policy</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=conditions">Conditions of Use</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=FILENAME_ABOUT_US">About Us</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=site_map">Site Map</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=gv_faq">Gift Certificate FAQ</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=discount_coupon">Discout Coupons</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=unsubscribe">Newsletter Unsubscribe</a></li> </ul> </li> --> </ul> </div> </div> <div class="clearBoth"></div> <!--eof-drop down menu display--> </div>

I am trying to optimize my page, but my software tell me that the first 250 characters of my webpage content is:

Home Log In Home yourtexthere All Products Specials Search --> BOOKS Fiction First Editions Non FictionCDSDVDS DVD VHSGift VouchersGIFTSTOYSInformation Shipping Info Privacy Policy Conditions of Use About Us Site Map Gift Certificate FAQ Discout Coup ...

HOW CAN I REMOVE THIS?
I really hope somebody cam make some sense of my gibberish, but I am going google eyed trying to figure it.

Any help would be greatly appreciated.

Regards Chris

7 Mar 2008, 2:11 PM
#849
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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

I'm trying to validate my site do some optimization.

The csshover.htc is causing problems in both FF and IE

FF says:

Warning: Unknown property 'behavior'.  Declaration dropped.
Source File: http://nahidfashions.com/boutique/includes/templates/NAHID_ARTISTIC/css/stylesheet_header_menu.css
Line: 2

IE says:

Error: Access denied to 
http://nahidfashions.com/boutique/includes/csshover.htc

I've played around with the htaccess file but nothing seems to work.

7 Mar 2008, 10:18 PM
#850
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

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

shocker:

I'm trying to validate my site do some optimization.

The csshover.htc is causing problems in both FF and IE

FF says:

Warning: Unknown property 'behavior'. Declaration dropped.
Source File: http://nahidfashions.com/boutique/includes/templates/NAHID_ARTISTIC/css/stylesheet_header_menu.css
Line: 2

> 
> IE says:
> ```html
Error: Access denied to 
http://nahidfashions.com/boutique/includes/csshover.htc

I've played around with the htaccess file but nothing seems to work.
Please post your .htaccess file. The behavior FF warning can be ignored.

7 Mar 2008, 10:45 PM
#851
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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

jettrue:

Please post your .htaccess file. The behavior FF warning can be ignored.

##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /boutique/

# From Ultimate SEO URLs
RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]

# For Open Operations Info Manager
RewriteRule ^(.*)-i-([0-9]+).html$ index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]

# For dreamscape's News & Articles Manager
RewriteRule ^news/?$ index\.php?main_page=news&%{QUERY_STRING} [L]
RewriteRule ^news/rss.xml$ index\.php?main_page=news_rss&%{QUERY_STRING} [L]
RewriteRule ^news/archive/?$ index\.php?main_page=news_archive&%{QUERY_STRING} [L]
RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index\.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index\.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index\.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.*)-a-([0-9]+).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]

# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f [NC] 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]

## Add these to your .htaccess file so that only one way to your site exists, either http://yoursite.com and http://www.yoursite.com ... the following adds the www if it's missing:

##RewriteEngine On
RewriteCond %{HTTP_HOST} ^nahidfashions.com$ [NC]
RewriteRule ^(.*)$ http://www.nahidfashions.com/$1 [R=301,L]

## If you'd like your site to go to http://mysite.com instead of http://www.mysite.com, add these changes instead (remove the two pound symbols before each line in the section below, and delete the section above):

##RewriteEngine On
##RewriteCond %{HTTP_HOST} ^www.nahidfashions.com$ [NC]
##RewriteRule ^(.*)$ http://nahidfashions.com/$1 [R=301,L]

## the following makes sure the correct mime type is sent for the .htc file
AddType text/x-component .htc

<Files *.htc>
Order Allow,Deny
Allow from all
</Files>

Note that my store is in http://www.nahidfashions.com/test_boutique

7 Mar 2008, 10:51 PM
#852
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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

Like I said I've been playing around with this, so I don't know what the current attempt will display.

8 Mar 2008, 10:41 PM
#853
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

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

shocker:

NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /boutique/

From Ultimate SEO URLs

RewriteRule ^(.)-p-(.).html$ index.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-c-(.).html$ index.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-m-([0-9]+).html$ index.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-pi-([0-9]+).html$ index.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.)-pr-([0-9]+).html$ index.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.
)-pri-([0-9]+).html$ index.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]

For Open Operations Info Manager

RewriteRule ^(.*)-i-([0-9]+).html$ index.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]

For dreamscape's News & Articles Manager

RewriteRule ^news/?$ index.php?main_page=news&%{QUERY_STRING} [L]
RewriteRule ^news/rss.xml$ index.php?main_page=news_rss&%{QUERY_STRING} [L]
RewriteRule ^news/archive/?$ index.php?main_page=news_archive&%{QUERY_STRING} [L]
RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.)-a-([0-9]+)-comments.html$ index.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
RewriteRule ^news/(.
)-a-([0-9]+).html$ index.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]

All other pages

Don't rewrite real files or directories

RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*).html$ index.php?main_page=$1&%{QUERY_STRING} [L]

Add these to your .htaccess file so that only one way to your site exists, either http://yoursite.com and http://www.yoursite.com ... the following adds the www if it's missing:

##RewriteEngine On
RewriteCond %{HTTP_HOST} ^nahidfashions.com$ [NC]
RewriteRule ^(.*)$ http://www.nahidfashions.com/$1 [R=301,L]

If you'd like your site to go to http://mysite.com instead of http://www.mysite.com, add these changes instead (remove the two pound symbols before each line in the section below, and delete the section above):

##RewriteEngine On
##RewriteCond %{HTTP_HOST} ^www.nahidfashions.com$ [NC]
##RewriteRule ^(.*)$ http://nahidfashions.com/$1 [R=301,L]

the following makes sure the correct mime type is sent for the .htc file

AddType text/x-component .htc

<Files *.htc>
Order Allow,Deny
Allow from all
</Files>

> 
> Note that my store is in <http://www.nahidfashions.com/test_boutique>

OK, here's the deal. You're telling it to change alll non-www to www. Which is fine, if that is the way you normally link to your site. IE sees a non-ww and www site as two different sites, even if they're the same site. THAT is why you get the error:

Error: Access denied to 
<http://nahidfashions.com/boutique/includes/csshover.htc>

This is perfectly normal behavior for IE.

Now, if you want to refer to your site without the www, then you need to change the .htaccess files, and the configure.php files to remove the www.
9 Mar 2008, 1:09 AM
#854
shocker avatar

shocker

Zen Follower

Join Date:
Jul 2007
Location:
Jakarta
Posts:
346
Plugin Contributions:
0

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

jettrue:

OK, here's the deal. You're telling it to change alll non-www to www. Which is fine, if that is the way you normally link to your site. IE sees a non-ww and www site as two different sites, even if they're the same site. THAT is why you get the error:

Error: Access denied to
http://nahidfashions.com/boutique/includes/csshover.htc

This is perfectly normal behavior for IE.

Now, if you want to refer to your site without the www, then you need to change the .htaccess files, and the configure.php files to remove the www.

If this is normal in IE than it should work regardless of the error?

But in IE 6 sometimes the menu doesn't work when the page first loads. It then works after navigating to another page.

What I really want is for both non-www and www to work.

Also the change to the .htacess should be where? In my sites root (https://www.nahidfashions.com/) or in my stores root (https://www.nahidfashions.com/boutique/%29?

9 Mar 2008, 4:51 AM
#855
mauryg avatar

mauryg

Zen Follower

Join Date:
Jul 2006
Posts:
213
Plugin Contributions:
0

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

the rule of thumb is that the .htaccess file affects the directory it is in and all subdirectories below it...UNLESS there is another .htaccess file in a subdirectory which contradicts the first one. I would suggest putting the .htaccess file in the root directory.

Hope this helps

9 Mar 2008, 10:50 AM
#856
chufty_bill avatar

chufty_bill

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
115
Plugin Contributions:
0

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

Hi.

I am reposting in the hope somebody reads this.....

This was the only thread I could find regarding the drop menu, so taking a chance and posting here.

I have installed the drop menu and it is excellent. Just what I wanted.
I have one issue which I hope somebody can help me with.

On my index page (Main_page), I am using the page as a 'gateway' page and have disabled both side columns, etc.

The drop menu doesnt appear, and I have just set up a page with Dreamweaver. It looks Ok for now, but when I look at the page source, it contains all the zen and drop menu coding. I have inserted part below.

<!-- 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="http://skiddaddle.co.uk/index.php?main_page=index">Home</a> <ul class="level2"> <li><a href="yourlinkhere">yourtexthere</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=products_all">All Products</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=specials">Specials</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=advanced_search">Search</a></li> </ul> </li> --> <li class="submenu"><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=102">BOOKS</a><ul class="level2"><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=104">Fiction</a></li><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=106">First Editions</a></li><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=105">Non Fiction</a></li></ul></li><li><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=92">CDS</a></li><li class="submenu"><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=97">DVDS</a><ul class="level2"><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=99">DVD</a></li><li> <a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=100">VHS</a></li></ul></li><li><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=107">Gift Vouchers</a></li><li><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=103">GIFTS</a></li><li><a href="http://skiddaddle.co.uk/index.php?main_page=index&cPath=98">TOYS</a></li><!-- You can also add links on this side of your catefories menu <li class="submenu"><a href="http://skiddaddle.co.uk/index.php?main_page=index">Information</a> <ul class="level2"> <li><a href="http://skiddaddle.co.uk/index.php?main_page=shippinginfo">Shipping Info</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=privacy">Privacy Policy</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=conditions">Conditions of Use</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=FILENAME_ABOUT_US">About Us</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=site_map">Site Map</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=gv_faq">Gift Certificate FAQ</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=discount_coupon">Discout Coupons</a></li> <li><a href="http://skiddaddle.co.uk/index.php?main_page=unsubscribe">Newsletter Unsubscribe</a></li> </ul> </li> --> </ul> </div> </div> <div class="clearBoth"></div> <!--eof-drop down menu display--> </div>

I am trying to optimize my page, but my software tell me that the first 250 characters of my webpage content is:

Home Log In Home yourtexthere All Products Specials Search --> BOOKS Fiction First Editions Non FictionCDSDVDS DVD VHSGift VouchersGIFTSTOYSInformation Shipping Info Privacy Policy Conditions of Use About Us Site Map Gift Certificate FAQ Discout Coup ...

HOW CAN I REMOVE THIS?
I really hope somebody cam make some sense of my gibberish, but I am going google eyed trying to figure it.

Any help would be greatly appreciated.

Regards Chris

9 Mar 2008, 12:42 PM
#857
vik007 avatar

vik007

Zen Follower

Join Date:
Feb 2007
Posts:
201
Plugin Contributions:
0

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

Hi, i am lost :blink:

Is it possible to have the left side column running as normal and in the horizontal drop down to have 'Specials' New products, All products and FAQ's but dont need to link the catogories to the top drop down.

Where do i start???

im sorry just need a nudge in the rite way.

11 Mar 2008, 2:30 AM
#858
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

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

Hello

I installed the latest version of this great mod on my site at:
Craft-Patterns-Online

I'm running ZC 1.3.7.1

After installing:

  1. it squeezed my upper most bar and removed the Home and Log In links. It left the search, but it sets half in half out of that bar. And it pushed my header image down so there is now a space between the "should be" upper bar and the header image.

  2. If you go to categories dropdown and click on Crochet without selecting any of the sub cats, it shows my MAIN index page text and then the sub cats below that. It does the same thing on any category that has sub cats if you dont select a sub cat. I obviously don't want my main page text on the crochet page.

I probably messed up somewhere but just need you to shine a light in the direction of a fix.

many thanks!

11 Mar 2008, 3:32 AM
#859
tolefairy avatar

tolefairy

Zen Follower

Join Date:
Feb 2007
Location:
West Texas
Posts:
122
Plugin Contributions:
0

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

Sorry, had to uninstall.........just couldn't deal with it.

11 Mar 2008, 12:20 PM
#860
chufty_bill avatar

chufty_bill

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
115
Plugin Contributions:
0

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

I have asked numerous times for help in previous threads, various boards without a single reply.

No point in adding mods without support is there?