I would just like to report that when using simplemenu and IE latest or legacy mode on some pages whole layout is broken down, aligned to left, background missing etc. Its Zen subtheme i am using. When i disable simplemenu its fine, but when enabled its broken down.
When trying to debug i found out that submtheme CSS for body is not used/enforced, so whole setting is missing for some reason on that page for body tag. In header tag, that subtheme css is present(added) but like its not used when simplemenu is enabled. Further comparasion gave me info that this is present on pages when there is cck imagefield, possibly some clash with JS code then in IE?

Comments

Marko B’s picture

What i ment with cck imagefield is form for adding images, on those pages layout is broken down.

AlexisWilke’s picture

Hi deepM,

I'm not too sure I follow you here...

So you have:

  • SimpleMenu
  • CCK ImageField
  • Zen sub-theme

When editing a node with that combination it breaks. Is that correct?

And what you are saying is that in this case one of the CSS file is not loaded?

Did you try with FireFox by any chance? Does it work then? For IE, people often include comments like this one:

<--[if lte IE 6]>

and somehow those do not always work correctly.

Thank you.
Alexis Wilke

Marko B’s picture

in ff its ok
yes only on node edits its like subtheme css is not loaded as i checked body with firebug and there is no format from subtheme css. in IE8.
also noticed its only on node type where there is filefield upload.

AlexisWilke’s picture

deepM,

Where previous versions of simplemenu working for you? Version 1.2 or older?

Thank you.
Alexis

Marko B’s picture

Think it did, not 100% sure but i think it did. Which version do u think i should try to see, 1.2 ?

AlexisWilke’s picture

Yes. 1.2 would be good.

Make sure to uninstall completely, delete the 1.4 version, then re-install from the 1.2 tarball and see whether that works.

Thank you.
Alexis

Marko B’s picture

I did, same problem present. Also if page from simplemenu menu is opened with middle mouse button for new tab simplemenu dissapiars.

AlexisWilke’s picture

deepM,

Okay. If I may say: Good. That means it is not a bug I introduced. I'm going to generate 1.5 from my current -dev. Maybe that would work better, although I'm not too sure about that. Yet, it sounds like there is a conflict. Most often, these problems arise when two modules use different versions of the same JavaScript or two JS that don't like each others...

Could you tell me exactly which Zen theme you are using (URLs?) so I could test directly with those. I have ImageField and never had a problem with just that. So I'm thinking it must be a problem between Zen and the other two modules.

Thank you.
Alexis

Marko B’s picture

Zen 1.1 is installed, the only JS code i see in zen theme is theme-settings.js

url of page u want? http://www.venezialines.com/

$(document).ready( function() {
  // Hide the breadcrumb details, if no breadcrumb.
  $('#edit-zen-breadcrumb').change(
    function() {
      div = $('#div-zen-breadcrumb-collapse');
      if ($('#edit-zen-breadcrumb').val() == 'no') {
        div.slideUp('slow');
      } else if (div.css('display') == 'none') {
        div.slideDown('slow');
      }
    }
  );
  if ($('#edit-zen-breadcrumb').val() == 'no') {
    $('#div-zen-breadcrumb-collapse').css('display', 'none');
  }
  $('#edit-zen-breadcrumb-title').change(
    function() {
      checkbox = $('#edit-zen-breadcrumb-trailing');
      if ($('#edit-zen-breadcrumb-title').attr('checked')) {
        checkbox.attr('disabled', 'disabled');
      } else {
        checkbox.removeAttr('disabled');
      }
    }
  );
  $('#edit-zen-breadcrumb-title').change();
} );
AlexisWilke’s picture

Assigned: Unassigned » AlexisWilke

deepM,

Okay, I got the answer for you.

Your front page, as it is, runs with 30 CSS files. The last one is specialized for IE. In other words, if you do not get that very file included, it most certainly will break in IE. And guess what?!?! For whatever non-sense reason, Microsoft programmers limited the number of CSS to... 30. (maybe 32 on IE8, but don't bet on it!)

This means going to a page that somehow adds 1 or more CSS files for functionality will break the entire look of the page.

Only solution I know of (other than removing some of the modules you're using...) is to go to your Performance screen and turn on the Optimized CSS files.

I'll have to mention that on the front page, just in case...

If you have boost, make sure that boost saves those CSS files because otherwise you will lose them once in a while.

Thank you.
Alexis Wilke

Marko B’s picture

YES! U were right, sorry for saying its module problem. thanx on this find, as drupal has many css this should know every developer and have it on check list :-)

AlexisWilke’s picture

Status: Active » Fixed

Thank you for reporting that it worked. 8-)
Alexis

zeezhao’s picture

Sorry to reopen, but i installed IE 8 recently and noticed that sometimes simplemenu disappears completely... Not set pattern to this.

I am using simplemenu 6.x-1.4. It does not happen in Firefox (3.6.3) though. Thanks

Its all in development on a local machine, so I can not give you access to it.

Please have you come across this too?

zeezhao’s picture

Status: Fixed » Active

Did some more digging, and it tends to happen when you right-click on a link to open a page in a new tab. The page in the new tab will not then have the simplemenu, even if you go back to the "home" page.

AlexisWilke’s picture

Status: Active » Fixed

Hi zeezhao,

That's a different problem due to the Pop-up window feature. I guess it would be a good idea to swap that flag by default and let the menu appear everywhere even in pop-ups. Then maybe people will find it easier to turn on the flag, instead of the way it is now.

Anyway, there is a document on how to go around the pop-up window feature:

https://secure.m2osw.com/doc_simplemenu_popup

Thank you.
Alexis Wilke

zeezhao’s picture

Thanks for the info! Now resolved.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.