This is not an issue with the module, but rather a problem with fancybox.
I thought I'd note this incase someone else has the same issue.
I'm stuck using IE6 in a corp environment.
In the jquery.fancybox-1.3.1.css file, IE6 has some special PNG alpha fixes:
.fancybox-ie #fancybox-title-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale'); }
.fancybox-ie #fancybox-title-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale'); }
.
.
.
Anyway, after using Fiddler, it is trying to load the images from the web root instead of sites/all/libraries. Thus it can't find the close button, title graphics etc.
I tried a variety of combinations but I always had to hardcode the paths:
.fancybox-ie #fancybox-title-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='sites/all/libraries/fancybox/fancy_title_right.png', sizingMethod='scale'); }
This didn't used to happen in our pre D6 version (using 1.2.x), so I'm going to check to see how the css was set up there.
-- Jason
Comments
Comment #1
jsm174 commentedJust a quick update. I found the issue on the Fancybox forums.
http://groups.google.com/group/fancybox/browse_thread/thread/8530478044b...
I added a comment.
Comment #2
rwohlebWhile running Fancybox with D6 we were seeing IE 7/8 either block for a while and/or crash. I've ended up disabling Fancybox in the interim until I can track down the issue. I'm theorizing it has to do with these alpha filters. I'm curious to see if anyone else has seen this.
Comment #3
bas.hr commentedI can also experience slowdowns using IE8, will try to do some debugging
Comment #4
klonosOMG! I was going crazy over what might be causing this. Thank you for the heads up rwohleb!...
My site's pages were loading fine in firefox (though a bit slow), but in IE8 after the page seemed to have loaded 100%, it would then freeze for 2-3 seconds. Disabling & uninstalling latest D6 dev made pages load in a snap in again (both browsers)!
Let me know if/how I can help in troubleshooting this one.
Comment #5
klonos...this is the latest (today's) reply from the Fancybox forum jsm174 mentions in #1:
hope it helps
Comment #6
bas.hr commentedThis is too ugly to implement IMHO :)
I would rather like to bundle modified jquery.fancybox-1.3.1.css with this module.
Since Fancybox is licensed under GPL, and since we need exact version (1.3+) with slightly modified CSS maybe it would be better to bundle entire fancybox with the module. That would make the installation and upgrades easier.
More info about 3rd party libraries in Drupal CVS: http://drupal.org/node/422996
Comment #7
klonos@bas.hr: I am sure you must have your reasons, but talking about easy upgrading... Lately there is a turn in using Libraries API for that precise reason. Bundling our own version of Fancybox is a step towards the other direction.
How about simply trying to override the css? ...I mean if that is possible at all. I couldn't possibly know... just thinking.
Comment #8
klonosbtw it is IE8 I am having issues with. Also rwohleb in #2 is mentioning both IE7 and IE8. So, generalizing title...
Comment #9
bas.hr commentedUnfortunately Libraries API doesn't help much since there is no working code available at the moment. But you made a good point! :)
There is a jQuery Plugin Handler (JQP) module I'm taking a look at.
Comment #10
bas.hr commentedskilip gave me a good advice to dynamically generate CSS that will fix the path problem, stay tuned ;)
Comment #11
klonosI am staying tuned!
... as for the Library API vs. jQP, I use both in my setups. I meant to emphasize on the the use of
../sites/all/librariesdirectory and not one of these modules specifically. But I am sure you got that in the first place ;)Thank you for stepping up for this task! In the meantime... let me know if I can help by beta-testing.
Comment #12
izkreny commentedSubscribing and willing to test. ;)
Comment #13
klonos@bas.hr: In the meantime, I disabled the module to stop people from complaining. I do need fancybox functionality though :(
So, I need to ask... is there a way that I can implement a css fix like the example code from #5 till you have something ready?
... or perhaps I should be keeping my pants on? ;)
Comment #14
bas.hr commentedWell its a devel version, generally not recommended for production.
To apply the fix, just edit jquery.fancybox-1.3.1.css and set AlphaImageLoader's src to full image path, like described in issue post.
Comment #15
klonosStupid me... I was so much in a hurry to fix this, that I was looking for css files to apply this in the module's folder instead of the jQuery library's. Thanks and sorry for bothering you with such trivial things.
As for the dev version warning... thanx, I know, but I use dev builds wherever possible. I do this intentionally because I need latest patches applied (lazy me). This means fixes to latest issues + new features I can beta-test. I get functionality and the community gets feedback.
PS: I always backup things!
Comment #16
klonosWell, it's been quite some time now and it seems that no solid solution has been found for this issue in the Fancybox forums. There have been a few suggestions and some success stories on various setups, but no action after July. It seems that using absolute paths for any .png in the jquery.fancybox-1.3.1.css file fixes the issue. The last post mentions a jQuery fix that dynamically changes the PNG paths to the current host at runtime. Since not everyone has a google account, I thought I'd post that code here for everyone to see:
Since there are thoughts of using 1.3.1 instead of the latest 1.3.2 version that seems to be quite buggy (#952668: Future upgrades, buggy Fancybox v.1.3.2), I thought it's time we gave this issue some love ;)
Comment #17
klonos...btw, I've created an issue of its own for the #958774: Support Libraries API (use ../site/all/libraries to store external libraries) I've proposed in #7 and #11.
Comment #18
garyjohn_2000 commentedAm sure writing some PHP code to replace the URLs within the Fancybox CSS file in sites/all/libraries shouldnt be tough, is it?
How about:
Ofcourse this updating needs to be done again if the $base_url changes, but for most of us, it'll only be a one-time perma-fix.