I changed the css to use absolute instead of fixed (well, used the __ hack to get only IE to recognise the absolute positioning) and it shows up horizontally in IE - as soon as I hover over it the menu suddenly drops to a vertical orientation... I also tried simply changing the css to use only an absolute position and this did not help. I note the hack in admin_menu.module states 'IE 7' - any ideas for more versions of IE or any assistance that can be provided with this problem?

CommentFileSizeAuthor
#6 admin_menu.ie__0.patch4.92 KBsun
#2 admin_menu.ie_.patch1.27 KBsun

Comments

sun’s picture

Title: Strange behaviour with bluebreeze theme, Drupal 4.7 and IE 6 » IE(6) support
Category: bug » feature

At the moment, IE is generally not supported. So I'm marking this as feature request.

IE does not understand the pseudo-class :hover, on which the CSS of this module is based.

Did you try the IE7 script from http://dean.edwards.name/IE7/ ? IE needs support for dynamic pseudo classes that can be extracted from IE7 package by using ie7-core and some other scripts (see documentation there).

If you'll get this working with IE7 script I won't hesitate to commit a patch for IE support.

sun’s picture

Status: Active » Needs review
StatusFileSize
new1.27 KB

Attached is a patch that introduces support for Internet Explorer.

In order to let this happen you need to download the already mentioned IE7 script available from http://dean.edwards.name/download/ and place the files of that archive into a new folder /misc/ie7 of your drupal installation.

Since ie7 script might be used by other modules or themes I thought it would be best to store it in /misc, so other things might re-use it without the need of reloading it from scratch.

spooky69’s picture

Thanks for the effort. I'll give it a go and see if it flies. Maybe I really should use firefox all the time instead of just for the developer plug-ins it has.... ;-) Having said that, this is worth testing as it could be useful for other modules or themes, as you quite rightly said. Will post back once I have had a chance to test.

WayFarer80’s picture

Title: IE(6) support » IE support
Component: Code » Miscellaneous

CSS :hover support can be added to IE easely,
read http://www.xs4all.nl/~peterned/csshover.html how to do it.
You just need to download csshover.htc file and put a couple of lines to HTML code to use it.
That is where magic happens, IE can process :hover pseudo-class on any TAG

sun’s picture

Component: Miscellaneous » User interface

Thanks for this hint, vladimir.

I just realized that there's no notice yet that Admin Menu is actually relying on the technique introduced by Sons of Suckerfish Dropdowns.

Although Suckerfish Dropdowns are in fact providing IE support (that supersedes usage of htc files) I've ripped that some time ago in favor of the ie7 script by Dean Edwards, because that makes IE even more standards-compliant (regarding transparent pngs and so on...).

After doing some research on htc techniques I found several forum posts that complain about mime-type problems on Apache webservers, as already stated by Peterned:

NOTE 1: The rules for HTCs have changed a bit in Windows XP SP2. Users with SP2 installed may not see it working correctly, because webservers have to send htc files with the mime-type set to text/x-component.

Anyway, implementing a settings page to let the admin choose the preferred technique for Drupal Administration Menu seems to be the silver bullet. No code hacks needed, just place the corresponding file(s) into the folder /misc and enable the technique of your choice.

Anyone agreeing?

sun’s picture

Title: IE support » IE / Safari support
Assigned: Unassigned » sun
StatusFileSize
new4.92 KB

Attached patch introduces full IE and Safari support.

While Safari only does not like bold formatted hyperlinks in expandable list items (yay, seems to be a bug in Safari finally), IE needs really ugly tweaking (relying on original Sons of Suckerfish Dropdowns javascript code).

sun’s picture

Status: Needs review » Fixed

Committed.

havran’s picture

Status: Fixed » Needs work

Path for IE7 styles is not correct for sites in subdir (example.com/mysite). We need modify:

      // IE fix
      $ie_header = "<!--[if lt IE 7]>\n";
      $ie_header.= '<script type="text/javascript" src="/' . drupal_get_path('module', 'admin_menu') . '/admin_menu.js' . '"></script>';
      $ie_header.= "\n<![endif]-->";

into

      // IE fix
      $ie_header = "<!--[if lt IE 7]>\n";
      $ie_header.= '<script type="text/javascript" src="'. base_path() . drupal_get_path('module', 'admin_menu') . '/admin_menu.js' . '"></script>';
      $ie_header.= "\n<![endif]-->";
sun’s picture

Status: Needs work » Fixed

Committed, thanks!

btw: http://drupal.org/diffandpatch

Anonymous’s picture

Status: Fixed » Closed (fixed)