We've come across issues with the examples in colorbox affecting Internet Explorer users checkout through Ubercart. This was directly related to the css in the colorbox library examples at the bottom as so:
.AlphaImageLoader(src=images/internet_explorer/borderTopLeft.png
Just a heads up that if you're using these examples, you'll want to specify a relative path like "/sites/all/libraries/colorbox/example1/images/internet_explorer/borderTopLeft.png" to keep from causing issues with other modules, javascript, and IE.
Colorbox Explanation:
=======================
ColorBox's borders do not display in Internet Explorer:
Some of the example styles provided make use of transparent .PNG files. Alpha transparencies aren't supported by default in IE6, and can cause an undesirable 'black halo' effect in IE7 and IE8 when changing their opacity. ColorBox resolves this by using one of IE's CSS filters. You can see these at the bottom of colorbox.css. The filter src paths are relative to the HTML document (just like an IMG element), while CSS background image paths are relative to the CSS document. In the examples I provide the relative path is the same, but users often change the directory structure once they move the files over to their own host. The filter src path needs to reflect this change with the appropriate relative path or an absolute path. Here is an example that assumes the 'images' folder is in the root directory:
Original CSS with incorrect relative path:
.AlphaImageLoader(src=images/internet_explorer/borderTopLeft.png
Corrected relative path:
.AlphaImageLoader(src=/images/internet_explorer/borderTopLeft.png
Corrected absolute path:
.AlphaImageLoader(src=http://your_domain.com/images/internet_explorer/borderTopLeft.png
Comments
Comment #1
frjo CreditAttribution: frjo commentedThis is mentioned in the README also.
We maybe could add some detail instructions how to move an example style to the theme and implement it there.
Since the example styles are part of the Colorbox plugin the Colorbox module can't fix it. The only way would be to duplicate all the example style in the Colorbox module itself.
The style that comes with Colorbox module does not have this problem.
Comment #2
frjo CreditAttribution: frjo commentedComment #3
asb CreditAttribution: asb commentedMy watchdog log reports lots of missing image files in the "page not found" category, e.g.:
These missing files errors span over several log pages (dozends of missing files per requestes web page).
I am using the examples which come with the 'Colorbox' module (I believe;
./admin/settings/colorbox
, "Styles and options", "Display is set to "Example 1"). Firstly I suspected the theme (#964652), but the only references I can find are from colorbox (did agrep -R internet_explorer *
in./sites/all/libraries
.Somehow this stuff seems to get injected into the site's CSS (following in a grep excerpt from
./sites/default/files/css/
, there are many more results):The mentioned FAQ http://colorpowered.com/colorbox/#help_paths suggests:
However, I've go a lot more broken links than this faq example (e.g. to borderTopRight.png etc). Do I have to duplicate and rewrite the complete CSS from
./sites/all/libraries/colorbox/example1/colorbox.css
to fix this issue?Thanks & greetings, -asb
Comment #4
frjo CreditAttribution: frjo commentedasb: This problem is mentioned in the README, "Example styles borders do not display in Internet Explorer".
The "borderTopLeft.png" in the FAQ is just used as an example. You need to fix the path for all the border images.
Simply copy all the IE CSS from the example style you are using to a CSS file in your theme and change the paths so they are correct. CSS in your theme will override that of a module so this will fix your problem. Clear the Drupal cache also before testing if it works.
Comment #5
asb CreditAttribution: asb commentedThanks, I'll try this!
Comment #6
asb CreditAttribution: asb commentedNot to self since I just ran into this again:
* The section to clone and adapt comes from
./sites/all/libraries/colorbox/example4/colorbox.css
, it's the part below "The following fixes png-transparency for IE6..." (for "example4")* The error message about a missing "images/internet_explorer/borderBottomRight.png" etc. is also logged when other browsers (non IE) are used, in my case Opera
* Other indicators which might point to a misconfigured 'Colorbox' module are Imagecache problems (warning message in watchdog: "Cached image file sites/default/files/imagecache/960/....jpg already exists but is being regenerated. There may be an issue with your rewrite configuration."; referrer logged in watchdog: "http://.../user/login?destination=images%2Finternet_explorer%2FborderTopLeft.png")
Comment #7
Jumoke CreditAttribution: Jumoke commentedsubscribing
Comment #8
gtothab CreditAttribution: gtothab commentedThis post saved my life!
Comment #9
lsolesen CreditAttribution: lsolesen commentedMarking as fixed, as lives have been saved.