Easy FancyBox - Version 1.8.7

Version Description

Autoplay for Youtube, Vimeo and Dailymotion. Bugfixes.

=

Download this release

Release Info

Developer RavanH
Plugin Icon 128x128 Easy FancyBox
Version 1.8.7
Comparing to
See all releases

Code changes from version 1.8.6 to 1.8.7

easy-fancybox.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://status301.net/wordpress-plugins/easy-fancybox/
5
  Description: Easily enable the <a href="http://fancybox.net/">FancyBox jQuery extension</a> on all image, SWF, PDF, YouTube, Dailymotion and Vimeo links. Also supports iFrame and inline content.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
- Version: 1.8.6
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
@@ -37,7 +37,7 @@ if ( ! defined( 'ABSPATH' ) ) exit;
37
  * CONSTANTS
38
  **************/
39
 
40
- define( 'EASY_FANCYBOX_VERSION', '1.8.6' );
41
  define( 'FANCYBOX_VERSION', '1.3.21' );
42
  define( 'MOUSEWHEEL_VERSION', '3.1.13' );
43
  define( 'EASING_VERSION', '1.4.1' );
5
  Description: Easily enable the <a href="http://fancybox.net/">FancyBox jQuery extension</a> on all image, SWF, PDF, YouTube, Dailymotion and Vimeo links. Also supports iFrame and inline content.
6
  Text Domain: easy-fancybox
7
  Domain Path: languages
8
+ Version: 1.8.7
9
  Author: RavanH
10
  Author URI: http://status301.net/
11
  */
37
  * CONSTANTS
38
  **************/
39
 
40
+ define( 'EASY_FANCYBOX_VERSION', '1.8.7' );
41
  define( 'FANCYBOX_VERSION', '1.3.21' );
42
  define( 'MOUSEWHEEL_VERSION', '3.1.13' );
43
  define( 'EASING_VERSION', '1.4.1' );
inc/class-easyfancybox.php CHANGED
@@ -81,7 +81,7 @@ class easyFancyBox {
81
  $script .= ' };
82
  if(typeof easy_fancybox_handler===\'undefined\'){
83
  var easy_fancybox_handler=function(){
84
- jQuery(\'.nofancybox,a.wp-block-file__button,a.pin-it-button,a[href*="pinterest.com/pin/create"]\').addClass(\'nolightbox\');';
85
 
86
  foreach (self::$options as $key => $value) {
87
  // check if not enabled or hide=true then skip
@@ -99,7 +99,7 @@ jQuery(\'.nofancybox,a.wp-block-file__button,a.pin-it-button,a[href*="pinterest.
99
  if ( !empty($autoAttribute) ) {
100
  if ( is_numeric($autoAttribute) ) {
101
  $script .= '
102
- jQuery(\''.$value['options']['autoAttribute']['selector'].'\').not(\'.nolightbox,li.nolightbox>a\').addClass(\''.$value['options']['class']['default'].'\');';
103
  } else {
104
  // set selectors
105
  $file_types = array_filter( explode( ' ', str_replace( ',', ' ', $autoAttribute ) ) );
@@ -150,7 +150,7 @@ jQuery(fb_'.$key.'_select).addClass(\''.$value['options']['class']['default'].'\
150
 
151
  case '1':
152
  $script .= ';
153
- var fb_'.$key.'_sections = jQuery(\''.get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']).'\');
154
  fb_'.$key.'_sections.each(function(){jQuery(this).find(fb_'.$key.'_select).attr(\'rel\',\'gallery-\'+fb_'.$key.'_sections.index(this));});';
155
  break;
156
 
81
  $script .= ' };
82
  if(typeof easy_fancybox_handler===\'undefined\'){
83
  var easy_fancybox_handler=function(){
84
+ jQuery(\'.nofancybox,a.wp-block-file__button,a.pin-it-button,a[href*="pinterest.com/pin/create"],a[href*="facebook.com/share"],a[href*="twitter.com/share"]\').addClass(\'nolightbox\');';
85
 
86
  foreach (self::$options as $key => $value) {
87
  // check if not enabled or hide=true then skip
99
  if ( !empty($autoAttribute) ) {
100
  if ( is_numeric($autoAttribute) ) {
101
  $script .= '
102
+ jQuery('.$value['options']['autoAttribute']['selector'].').not(\'.nolightbox,li.nolightbox>a\').addClass(\''.$value['options']['class']['default'].'\');';
103
  } else {
104
  // set selectors
105
  $file_types = array_filter( explode( ' ', str_replace( ',', ' ', $autoAttribute ) ) );
150
 
151
  case '1':
152
  $script .= ';
153
+ var fb_'.$key.'_sections=jQuery(\''.get_option($value['options']['autoSelector']['id'],$value['options']['autoSelector']['default']).'\');
154
  fb_'.$key.'_sections.each(function(){jQuery(this).find(fb_'.$key.'_select).attr(\'rel\',\'gallery-\'+fb_'.$key.'_sections.index(this));});';
155
  break;
156
 
inc/easyfancybox-options.php CHANGED
@@ -400,7 +400,7 @@ $efb_options = array (
400
  'default' => '',
401
  'description' => __('(leave empty to ignore)','easy-fancybox') . '<br/>'
402
  ),
403
- /* 'forceNewtab' => array (
404
  'id' => 'fancybox_forceNewtab',
405
  'input' => 'checkbox',
406
  'hide' => true,
@@ -424,6 +424,7 @@ $efb_options = array (
424
  'id' => 'fancybox_scriptPriority',
425
  'title' => __('FancyBox script priority','easy-fancybox'),
426
  'label_for' => 'fancybox_scriptPriority',
 
427
  'input' => 'number',
428
  'step' => '1',
429
  'min' => '-999',
@@ -862,7 +863,7 @@ $efb_options = array (
862
  'input' => 'checkbox',
863
  'hide' => true,
864
  'default' => '1',
865
- 'selector' => 'a[href*=".pdf"],area[href*=".pdf"],a[href*=".PDF"],area[href*=".PDF"]',
866
  'description' => __('Autodetect','easy-fancybox')
867
  ),
868
  'tag' => array (
@@ -884,7 +885,7 @@ $efb_options = array (
884
  'input' => 'select',
885
  'options' => array(
886
  'function(a,i,o){o.type=\'pdf\';}' => __('Object tag (plus fall-back link)','easy-fancybox'),
887
- 'function(a,i,o){o.content=\'<embed src="\'+a[i].href+\'" type="application/pdf" height="100%" width="100%" />\'}' => __('Embed tag','easy-fancybox'),
888
  '' => __('iFrame tag (let browser decide)','easy-fancybox'),
889
  'function(a,i,o){o.href=\'https://docs.google.com/viewer?embedded=true&url=\'+a[i].href;}' => __('Google Docs Viewer (external)','easy-fancybox')
890
  ),
@@ -975,7 +976,7 @@ $efb_options = array (
975
  'input' => 'checkbox',
976
  'hide' => true,
977
  'default' => '1',
978
- 'selector' => 'a[href*=".swf"],area[href*=".swf"],a[href*=".SWF"],area[href*=".SWF"]',
979
  'description' => __('Autodetect','easy-fancybox') . '<br />'
980
  ),
981
  'tag' => array (
@@ -1070,7 +1071,7 @@ $efb_options = array (
1070
  'input' => 'checkbox',
1071
  'hide' => true,
1072
  'default' => '1',
1073
- 'selector' => 'a[href*=".svg"],area[href*=".svg"],a[href*=".SVG"],area[href*=".SVG"]',
1074
  'description' => __('Autodetect','easy-fancybox') . '<br />'
1075
  ),
1076
  'tag' => array (
@@ -1166,7 +1167,7 @@ $efb_options = array (
1166
  'input' => 'checkbox',
1167
  'hide' => true,
1168
  'default' => '1',
1169
- 'selector' => 'a[href*="youtu.be/"],area[href*="youtu.be/"],a[href*="youtube.com/watch"],area[href*="youtube.com/watch"]',
1170
  'description' => __('Autodetect','easy-fancybox') . '<br />'
1171
  ),
1172
  'tag' => array (
@@ -1259,8 +1260,8 @@ $efb_options = array (
1259
  'onStart' => array (
1260
  'noquotes' => true,
1261
  'default' => get_option( 'fancybox_YoutubenoCookie' ) ?
1262
- 'function(a,i,o){o.href=a[i].href.replace(/https?:\/\/youtu\.be/gi,"https://www.youtube-nocookie.com/embed").replace(/https?:\/\/(?:www\.)?youtube\.com\/watch\?(.*)v=([a-z0-9\_\-]+)(?:&|&amp;|\?)?(.*)/gi,"https://www.youtube-nocookie.com/embed/$2?$1$3");var splitOn=o.href.indexOf("?");var urlParms=(splitOn>-1)?o.href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fs=0")>-1)?false:true}' :
1263
- 'function(a,i,o){o.href=a[i].href.replace(/https?:\/\/youtu\.be/gi,"https://www.youtube.com/embed").replace(/https?:\/\/(?:www\.)?youtube\.com\/watch\?(.*)v=([a-z0-9\_\-]+)(?:&amp;|&|\?)?(.*)/gi,"https://www.youtube.com/embed/$2?$1$3");var splitOn=o.href.indexOf("?");var urlParms=(splitOn>-1)?o.href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fs=0")>-1)?false:true}'
1264
  )
1265
  )
1266
  ),
@@ -1278,7 +1279,7 @@ $efb_options = array (
1278
  'input' => 'checkbox',
1279
  'hide' => true,
1280
  'default' => '1',
1281
- 'selector' => 'a[href*="vimeo.com/"],area[href*="vimeo.com/"]',
1282
  'description' => __('Autodetect','easy-fancybox') . '<br />'
1283
  ),
1284
  'tag' => array (
@@ -1363,7 +1364,7 @@ $efb_options = array (
1363
  ),
1364
  'onStart' => array (
1365
  'noquotes' => true,
1366
- 'default' => 'function(a,i,o){o.href=a[i].href.replace(/https?:\/\/(?:www\.)?vimeo\.com\/([0-9]+)(?:&|&amp;|\?)?(.*)/gi,"https://player.vimeo.com/video/$1?$2");var splitOn=o.href.indexOf("?");var urlParms=(splitOn>-1)?o.href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fullscreen=0")>-1)?false:true}'
1367
  )
1368
  )
1369
  ),
@@ -1381,7 +1382,7 @@ $efb_options = array (
1381
  'input' => 'checkbox',
1382
  'hide' => true,
1383
  'default' => '1',
1384
- 'selector' => 'a[href*="dailymotion.com/"],area[href*="dailymotion.com/"]',
1385
  'description' => __('Autodetect','easy-fancybox') . '<br />'
1386
  ),
1387
  'tag' => array (
@@ -1466,7 +1467,7 @@ $efb_options = array (
1466
  ),
1467
  'onStart' => array (
1468
  'noquotes' => true,
1469
- 'default' => 'function(a,i,o){o.href=a[i].href.replace(/^https?:\/\/(?:www\.)dailymotion.com\/video\/(.*)/gi,"https://www.dailymotion.com/embed/video/$1");var splitOn=o.href.indexOf("?");var urlParms=(splitOn>-1)?o.href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fullscreen=0")>-1)?false:true}'
1470
  )
1471
  )
1472
  ),
400
  'default' => '',
401
  'description' => __('(leave empty to ignore)','easy-fancybox') . '<br/>'
402
  ),
403
+ /* 'forceNewtab' => array (
404
  'id' => 'fancybox_forceNewtab',
405
  'input' => 'checkbox',
406
  'hide' => true,
424
  'id' => 'fancybox_scriptPriority',
425
  'title' => __('FancyBox script priority','easy-fancybox'),
426
  'label_for' => 'fancybox_scriptPriority',
427
+ 'hide' => true,
428
  'input' => 'number',
429
  'step' => '1',
430
  'min' => '-999',
863
  'input' => 'checkbox',
864
  'hide' => true,
865
  'default' => '1',
866
+ 'selector' => '\'a[href*=".pdf"],area[href*=".pdf"],a[href*=".PDF"],area[href*=".PDF"]\'',
867
  'description' => __('Autodetect','easy-fancybox')
868
  ),
869
  'tag' => array (
885
  'input' => 'select',
886
  'options' => array(
887
  'function(a,i,o){o.type=\'pdf\';}' => __('Object tag (plus fall-back link)','easy-fancybox'),
888
+ 'function(a,i,o){o.type=\'html\';o.content=\'<embed src="\'+a[i].href+\'" type="application/pdf" height="100%" width="100%" />\'}' => __('Embed tag','easy-fancybox'),
889
  '' => __('iFrame tag (let browser decide)','easy-fancybox'),
890
  'function(a,i,o){o.href=\'https://docs.google.com/viewer?embedded=true&url=\'+a[i].href;}' => __('Google Docs Viewer (external)','easy-fancybox')
891
  ),
976
  'input' => 'checkbox',
977
  'hide' => true,
978
  'default' => '1',
979
+ 'selector' => '\'a[href*=".swf"],area[href*=".swf"],a[href*=".SWF"],area[href*=".SWF"]\'',
980
  'description' => __('Autodetect','easy-fancybox') . '<br />'
981
  ),
982
  'tag' => array (
1071
  'input' => 'checkbox',
1072
  'hide' => true,
1073
  'default' => '1',
1074
+ 'selector' => '\'a[href*=".svg"],area[href*=".svg"],a[href*=".SVG"],area[href*=".SVG"]\'',
1075
  'description' => __('Autodetect','easy-fancybox') . '<br />'
1076
  ),
1077
  'tag' => array (
1167
  'input' => 'checkbox',
1168
  'hide' => true,
1169
  'default' => '1',
1170
+ 'selector' => '\'a[href*="youtu.be/"],area[href*="youtu.be/"],a[href*="youtube.com/"],area[href*="youtube.com/"]\').filter(function(){return this.href.match(/\/(?:youtu\.be|watch\?|embed\/)/);}',
1171
  'description' => __('Autodetect','easy-fancybox') . '<br />'
1172
  ),
1173
  'tag' => array (
1260
  'onStart' => array (
1261
  'noquotes' => true,
1262
  'default' => get_option( 'fancybox_YoutubenoCookie' ) ?
1263
+ 'function(a,i,o){var splitOn=a[i].href.indexOf("?");var urlParms=(splitOn>-1)?a[i].href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fs=0")>-1)?false:true;o.href=a[i].href.replace(/https?:\/\/(?:www\.)?youtu(?:\.be\/([^\?]+)|be\.com\/watch\?v=([^&]+))(.*)/gi,"https://www.youtube-nocookie.com/embed/$1$2?$3");}' :
1264
+ 'function(a,i,o){var splitOn=a[i].href.indexOf("?");var urlParms=(splitOn>-1)?a[i].href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fs=0")>-1)?false:true;o.href=a[i].href.replace(/https?:\/\/(?:www\.)?youtu(?:\.be\/([^\?]+)|be\.com\/watch\?v=([^&]+))(.*)/gi,"https://www.youtube.com/embed/$1$2?$3")+"&autoplay=1";}'
1265
  )
1266
  )
1267
  ),
1279
  'input' => 'checkbox',
1280
  'hide' => true,
1281
  'default' => '1',
1282
+ 'selector' => '\'a[href*="vimeo.com/"],area[href*="vimeo.com/"]\').filter(function(){return this.href.match(/\/(?:[0-9]+|video\/)/);}',
1283
  'description' => __('Autodetect','easy-fancybox') . '<br />'
1284
  ),
1285
  'tag' => array (
1364
  ),
1365
  'onStart' => array (
1366
  'noquotes' => true,
1367
+ 'default' => 'function(a,i,o){var splitOn=a[i].href.indexOf("?");var urlParms=(splitOn>-1)?a[i].href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fullscreen=0")>-1)?false:true;o.href=a[i].href.replace(/https?:\/\/(?:www\.)?vimeo\.com\/([0-9]+)\??(.*)/gi,"https://player.vimeo.com/video/$1?$2")+"&autoplay=1";}'
1368
  )
1369
  )
1370
  ),
1382
  'input' => 'checkbox',
1383
  'hide' => true,
1384
  'default' => '1',
1385
+ 'selector' => '\'a[href*="dailymotion.com/"],area[href*="dailymotion.com/"]\').filter(function(){return this.href.match(/\/video\//);}',
1386
  'description' => __('Autodetect','easy-fancybox') . '<br />'
1387
  ),
1388
  'tag' => array (
1467
  ),
1468
  'onStart' => array (
1469
  'noquotes' => true,
1470
+ 'default' => 'function(a,i,o){var splitOn=a[i].href.indexOf("?");var urlParms=(splitOn>-1)?a[i].href.substring(splitOn):"";o.allowfullscreen=(urlParms.indexOf("fullscreen=0")>-1)?false:true;o.href=a[i].href.replace(/^https?:\/\/(?:www\.)?dailymotion.com\/video\/([^\?]+)(.*)/gi,"https://www.dailymotion.com/embed/video/$1?$2")+"&autoPlay=1";}'
1471
  )
1472
  )
1473
  ),
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=ravan
4
  Tags: fancybox, lightbox, gallery, image, photo, video, flash, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, swf, jquery, webp
5
  Requires at least: 3.3
6
  Tested up to: 4.9
7
- Stable tag: 1.8.6
8
 
9
  Easily enable the FancyBox jQuery extension on just about all media links. Multi-Site compatible. Supports iFrame and Flash movies.
10
 
@@ -73,6 +73,35 @@ If you're happy with this plugin as it is, please consider writing a quick [rati
73
 
74
  If you wish to help build this plugin, you're very welcome to [translate Easy FancyBox into your language](https://translate.wordpress.org/projects/wp-plugins/easy-fancybox/) or contribute bug reports, feature suggestions and/or code on [Github](https://github.com/RavanH/easy-fancybox/).
75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
 
77
  == Installation ==
78
 
@@ -421,41 +450,7 @@ Note: It completely depends on the AJAX script where this code snippet should be
421
  Yes. Designed to work with **Network Activate** and does not require manual activation on each site in your network.
422
 
423
 
424
- == Known Issues ==
425
-
426
- = General =
427
-
428
- - **Outbound links or Downloads tracking** in some of the stats plugins can interfere with FancyBox. Disable such option or exclude links manually with a class (see instructions for SlimStat below)
429
- - Most plugins and themes that already include a light box script. Continue reading to see if you are using one of the know ones or follow the troubleshooting steps to find out what is conflicting on your site.
430
- - Any theme that is missing the obligatory `<?php wp_footer(); ?>` call in the footer.php template.
431
-
432
- = Plugin conflicts =
433
-
434
- - **jQuery Updater** moves jQuery to version 2+ which is incompatible.
435
- - **All in One SEO Pack** and **Analytics for WordPress** with outbound link tracking enabled. Disable that feature.
436
- - **WP Slimstat** with Track Outbound Clicks enabled, will break the light box effect on some browsers. Adding `fancybox` (or any of the other classes like `fancybox-youtube,fancybox-iframe,fancybox-inline` depending on which media should be displayed in FancyBox) to the Do Not Track field is reported to solve the issue. Slimstat also might interfere with the YouTube url conversion. When clicking a Youtube link, the movie opens in an overlay as it is supposed to but immediately after that, the complete page gets redirected to the original YouTube page. Adding a `class="noslimstat"` to the link is reported to work around the issue.
437
- - **Google Analytics for WordPress** converts links like `href="#anyID"` to `href="http://yoursite.url/page/#anyID"`, disabling inline content shown in FancyBox.
438
- - Both the **uBillBoard** and **Camera slideshow** have their own easing script hard-coded which conflicts with the one in Easy FancyBox. The only way around the conflict is to set both the Easing In and Easing Out options on your Settings > Media page to **Swing**.
439
- - **Wordpress Firewall 2** blocks access to image files needed for proper display of the FancyBox overlay in older IE and other non-css3 browsers.
440
- - **WordPress Amazon Associate**: A script provided by Amazon and the FancyBox script are incompatible. Disabling _Product Preview_ in the **WP - Amazon > Settings** page should work around the issue.
441
- - **WP Supersized** uses the Animate Enhanced jQuery extension which causes a conflict with the Easing extension used by FancyBox resulting in a 0px sized lightbox frame and/or some kind of positioning issue with auto-centering.
442
-
443
- = Theme conflicts =
444
-
445
- - Older versions of **Elegant Themes** have FancyBox integrated in a hard-coded way, making them incompatible with Easy FancyBox. In the latest versions of these themes, there is an option to disable the included FancyBox. Use this option to make your theme compatible with Easy FancyBox :)
446
- - The **Mystique** theme has two options called "Lightbox" and "Optimize website for faster loading" that will break Easy FancyBox. Disable both in Mystique's options > Advanced.
447
- - **Imbalance** and other themes that uses the Photo Galleria jQuery extension: turn of the JSGallery option.
448
- - Themes like **Envisioned**, **Chameleon** and many others have FancyBox baked in. There is no solution other than stripping the theme of all FancyBox related code or better: disable the plugin and use the theme provided version...
449
- - Themes based on the **Thesis** framework might see issues in IE 8, for which [a hack has been proposed](https://voidzonemedia.com/solutions/thesis-ie8-remove-ie7-emulation/)
450
-
451
-
452
- = Other =
453
-
454
- - When showing an iframe as inline content in FancyBox -- not advised, use fancybox-iframe instead! -- the iframe will become blank after opening and closing it. The solution is to link directly to the iframe source and use `class="fancybox-iframe"` instead.
455
- - Embedded flash content that has no wmode or wmode 'window', is displayed above the overlay and other javascript rendered content like dropdown menus. WordPress does NOT check for missing wmode in oEmbed generated embed code. Since version 1.3.4.5, the missing wmode is added by this plugin for WP (auto-)embeds but not for other user-embedded content. Please make sure you set the wmode parameter to 'opaque' (best performance) or 'transparent' (only when you need transparency) for your embedded content.
456
-
457
-
458
- == Trouble Shooting ==
459
 
460
  If, after activation, your images do not open in a FancyBox overlay, there are several possible reasons. Some are easily solved, others are more difficult. Follow these basic checks to make sure everything is in place:
461
 
@@ -495,12 +490,18 @@ If you still do not get to see your images in FancyBox, ask on the [Easy FancyBo
495
 
496
  == Upgrade Notice ==
497
 
498
- = 1.8.6 =
499
- Gutenberg compatibility and other bugfixes.
500
 
501
 
502
  == Changelog ==
503
 
 
 
 
 
 
 
504
  = 1.8.6 =
505
  * Gutenberg file block download button compatibility
506
  * Gutenberg gallery block compatibility
4
  Tags: fancybox, lightbox, gallery, image, photo, video, flash, overlay, youtube, vimeo, dailymotion, pdf, svg, iframe, swf, jquery, webp
5
  Requires at least: 3.3
6
  Tested up to: 4.9
7
+ Stable tag: 1.8.7
8
 
9
  Easily enable the FancyBox jQuery extension on just about all media links. Multi-Site compatible. Supports iFrame and Flash movies.
10
 
73
 
74
  If you wish to help build this plugin, you're very welcome to [translate Easy FancyBox into your language](https://translate.wordpress.org/projects/wp-plugins/easy-fancybox/) or contribute bug reports, feature suggestions and/or code on [Github](https://github.com/RavanH/easy-fancybox/).
75
 
76
+ **KNOWN ISSUES**
77
+
78
+ = General =
79
+
80
+ - **Outbound links or Downloads tracking** in some of the stats plugins can interfere with FancyBox. Disable such option or exclude links manually with a class (see instructions for SlimStat below)
81
+ - Most plugins and themes that already include a light box script. Continue reading to see if you are using one of the know ones or follow the troubleshooting steps to find out what is conflicting on your site.
82
+ - Any theme that is missing the obligatory `<?php wp_footer(); ?>` call in the footer.php template.
83
+ - When showing an iframe as inline content in FancyBox -- not advised, use fancybox-iframe instead! -- the iframe will become blank after opening and closing it. The solution is to link directly to the iframe source and use `class="fancybox-iframe"` instead.
84
+ - Embedded flash content that has no wmode or wmode 'window', is displayed above the overlay and other javascript rendered content like dropdown menus. WordPress does NOT check for missing wmode in oEmbed generated embed code. Since version 1.3.4.5, the missing wmode is added by this plugin for WP (auto-)embeds but not for other user-embedded content. Please make sure you set the wmode parameter to 'opaque' (best performance) or 'transparent' (only when you need transparency) for your embedded content.
85
+
86
+ = Plugin conflicts =
87
+
88
+ - **jQuery Updater** moves jQuery to version 2+ which is incompatible.
89
+ - **All in One SEO Pack** and **Analytics for WordPress** with outbound link tracking enabled. Disable that feature.
90
+ - **WP Slimstat** with Track Outbound Clicks enabled, will break the light box effect on some browsers. Adding `fancybox` (or any of the other classes like `fancybox-youtube,fancybox-iframe,fancybox-inline` depending on which media should be displayed in FancyBox) to the Do Not Track field is reported to solve the issue. Slimstat also might interfere with the YouTube url conversion. When clicking a Youtube link, the movie opens in an overlay as it is supposed to but immediately after that, the complete page gets redirected to the original YouTube page. Adding a `class="noslimstat"` to the link is reported to work around the issue.
91
+ - **Google Analytics for WordPress** converts links like `href="#anyID"` to `href="http://yoursite.url/page/#anyID"`, disabling inline content shown in FancyBox.
92
+ - Both the **uBillBoard** and **Camera slideshow** have their own easing script hard-coded which conflicts with the one in Easy FancyBox. The only way around the conflict is to set both the Easing In and Easing Out options on your Settings > Media page to **Swing**.
93
+ - **Wordpress Firewall 2** blocks access to image files needed for proper display of the FancyBox overlay in older IE and other non-css3 browsers.
94
+ - **WordPress Amazon Associate**: A script provided by Amazon and the FancyBox script are incompatible. Disabling _Product Preview_ in the **WP - Amazon > Settings** page should work around the issue.
95
+ - **WP Supersized** uses the Animate Enhanced jQuery extension which causes a conflict with the Easing extension used by FancyBox resulting in a 0px sized lightbox frame and/or some kind of positioning issue with auto-centering.
96
+
97
+ = Theme conflicts =
98
+
99
+ - Older versions of **Elegant Themes** have FancyBox integrated in a hard-coded way, making them incompatible with Easy FancyBox. In the latest versions of these themes, there is an option to disable the included FancyBox. Use this option to make your theme compatible with Easy FancyBox :)
100
+ - The **Mystique** theme has two options called "Lightbox" and "Optimize website for faster loading" that will break Easy FancyBox. Disable both in Mystique's options > Advanced.
101
+ - **Imbalance** and other themes that uses the Photo Galleria jQuery extension: turn of the JSGallery option.
102
+ - Themes like **Envisioned**, **Chameleon** and many others have FancyBox baked in. There is no solution other than stripping the theme of all FancyBox related code or better: disable the plugin and use the theme provided version...
103
+ - Themes based on the **Thesis** framework might see issues in IE 8, for which [a hack has been proposed](https://voidzonemedia.com/solutions/thesis-ie8-remove-ie7-emulation/)
104
+
105
 
106
  == Installation ==
107
 
450
  Yes. Designed to work with **Network Activate** and does not require manual activation on each site in your network.
451
 
452
 
453
+ = TROUBLE SHOOTING =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
454
 
455
  If, after activation, your images do not open in a FancyBox overlay, there are several possible reasons. Some are easily solved, others are more difficult. Follow these basic checks to make sure everything is in place:
456
 
490
 
491
  == Upgrade Notice ==
492
 
493
+ = 1.8.7 =
494
+ Autoplay for Youtube, Vimeo and Dailymotion. Bugfixes.
495
 
496
 
497
  == Changelog ==
498
 
499
+ = 1.8.7 =
500
+ * Autoplay Youtube/Vimeo/Dailymotion
501
+ * FIX: Exclude Vimeo user pages from autodetect
502
+ * FIX: Exclude facebook/twitter share link
503
+ * FIX: PDF embed tag
504
+
505
  = 1.8.6 =
506
  * Gutenberg file block download button compatibility
507
  * Gutenberg gallery block compatibility