Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter sexymazafaka

    (@sexymazafaka)

    After deeper investigation I’ve found “conflict” with lazyload plugins resulting such behavior.

    Lazyloads typicaly injects two pieces of code for each image (one for js, another – for non-js users), lightbox reacts on both of them, resulting creation of fake gallery containing just two same images.

    JFYI, devs, please try to workaround this issue, it is not really complicated. ??

    Thanks,
    Sergey

    Thread Starter sexymazafaka

    (@sexymazafaka)

    One more problem which I always forget to declare is one small issue in fancybox css, which leads old IE users (like ie6/7/8/9) to have missed control icons (arrows, shadow pngs etc).

    Original piece of jquery.fancybox-1.3.4.css included with your plugin looks like this:

    /* IE6 */
    
    .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_close.png', sizingMethod='scale', enabled='true'); }
    
    .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_left.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_nav_right.png', sizingMethod='scale', enabled='true'); }
    
    .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_over.png', sizingMethod='scale', enabled='true'); zoom: 1; }
    .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_left.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_main.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_title_right.png', sizingMethod='scale', enabled='true'); }
    
    .fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
    	height: expression(this.parentNode.clientHeight + "px");
    }
    
    #fancybox-loading.fancybox-ie6 {
    	position: absolute; margin-top: 0;
    	top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
    }
    
    #fancybox-loading.fancybox-ie6 div	{ background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_loading.png', sizingMethod='scale', enabled='true'); }
    
    /* IE6, IE7, IE8 */
    
    .fancybox-ie .fancybox-bg { background: transparent !important; }
    
    .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_n.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_ne.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_e.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_se.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_s.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_sw.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_w.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='fancybox/fancy_shadow_nw.png', sizingMethod='scale', enabled='true'); }

    but should be:

    /* IE6 */
    
    .fancybox-ie6 #fancybox-close { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_close.png', sizingMethod='scale', enabled='true'); }
    
    .fancybox-ie6 #fancybox-left-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_nav_left.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie6 #fancybox-right-ico { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_nav_right.png', sizingMethod='scale', enabled='true'); }
    
    .fancybox-ie6 #fancybox-title-over { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_title_over.png', sizingMethod='scale', enabled='true'); zoom: 1; }
    .fancybox-ie6 #fancybox-title-float-left { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_title_left.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie6 #fancybox-title-float-main { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_title_main.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie6 #fancybox-title-float-right { background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_title_right.png', sizingMethod='scale', enabled='true'); }
    
    .fancybox-ie6 #fancybox-bg-w, .fancybox-ie6 #fancybox-bg-e, .fancybox-ie6 #fancybox-left, .fancybox-ie6 #fancybox-right, #fancybox-hide-sel-frame {
    	height: expression(this.parentNode.clientHeight + "px");
    }
    
    #fancybox-loading.fancybox-ie6 {
    	position: absolute; margin-top: 0;
    	top: expression( (-20 + (document.documentElement.clientHeight ? document.documentElement.clientHeight/2 : document.body.clientHeight/2 ) + ( ignoreMe = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop )) + 'px');
    }
    
    #fancybox-loading.fancybox-ie6 div	{ background: transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_loading.png', sizingMethod='scale', enabled='true'); }
    
    /* IE6, IE7, IE8 */
    
    .fancybox-ie .fancybox-bg { background: transparent !important; }
    
    .fancybox-ie #fancybox-bg-n { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_shadow_n.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-ne { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_shadow_ne.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-e { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_shadow_e.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-se { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_shadow_se.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-s { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_shadow_s.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-sw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_shadow_sw.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-w { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_shadow_w.png', sizingMethod='scale', enabled='true'); }
    .fancybox-ie #fancybox-bg-nw { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/wp-content/plugins/responsive-lightbox/assets/fancybox/fancy_shadow_nw.png', sizingMethod='scale', enabled='true'); }

    Pls note the paths.

    Cheers…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Latest version broke gallery with Fancybox’ is closed to new replies.