Featured Image From URL - Version 2.7.0

Version Description

  • Deprecated: Metadata > Metadata Generation; Improvement: Metadata > Fake Internal Featured Image layout is more intuitive now.
Download this release

Release Info

Developer marceljm
Plugin Icon 128x128 Featured Image From URL
Version 2.7.0
Comparing to
See all releases

Code changes from version 2.6.9 to 2.7.0

admin/api.php CHANGED
@@ -2,6 +2,9 @@
2
 
3
  function fifu_enable_fake_api(WP_REST_Request $request) {
4
  update_option('fifu_data_generation', 'toggleoff');
 
 
 
5
  fifu_enable_fake2();
6
  }
7
 
2
 
3
  function fifu_enable_fake_api(WP_REST_Request $request) {
4
  update_option('fifu_data_generation', 'toggleoff');
5
+ update_option('fifu_fake', 'toggleoff');
6
+ fifu_disable_fake();
7
+
8
  fifu_enable_fake2();
9
  }
10
 
admin/html/js/menu.js CHANGED
@@ -1,6 +1,7 @@
1
  jQuery(document).ready(function () {
2
  window.scrollTo(0, 0);
3
  jQuery('.wrap').css('opacity', 1);
 
4
  });
5
 
6
  function homeUrl() {
@@ -32,7 +33,6 @@ jQuery(function () {
32
  });
33
 
34
  jQuery("#tabs-flickr").tabs();
35
- jQuery("#accordionClean").accordion();
36
  jQuery("#tabs").tabs();
37
  jQuery("#tabs-top").tabs();
38
  jQuery("#fifu_input_spinner_cron_metadata").spinner({min: 1, step: 1});
@@ -74,6 +74,19 @@ jQuery(function () {
74
  });
75
  });
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  function fifu_fake_js() {
78
  jQuery('.wrap').block({message: 'Please wait some seconds...', css: {backgroundColor: 'none', border: 'none', color: 'white'}});
79
 
@@ -101,6 +114,7 @@ function fifu_fake_js() {
101
  },
102
  complete: function () {
103
  setTimeout(function () {
 
104
  jQuery('.wrap').unblock();
105
  }, 1000);
106
  },
@@ -130,7 +144,6 @@ function fifu_clean_js() {
130
  jQuery("#fifu_toggle_data_clean").attr('class', 'toggleoff');
131
  jQuery("#fifu_toggle_fake").attr('class', 'toggleoff');
132
  jQuery("#fifu_toggle_fake2").attr('class', 'toggleoff');
133
- jQuery("#fifu_toggle_data_generation").attr('class', 'toggleoff');
134
  jQuery('.wrap').unblock();
135
  }, 1000);
136
  }
1
  jQuery(document).ready(function () {
2
  window.scrollTo(0, 0);
3
  jQuery('.wrap').css('opacity', 1);
4
+ fifu_fake1_js();
5
  });
6
 
7
  function homeUrl() {
33
  });
34
 
35
  jQuery("#tabs-flickr").tabs();
 
36
  jQuery("#tabs").tabs();
37
  jQuery("#tabs-top").tabs();
38
  jQuery("#fifu_input_spinner_cron_metadata").spinner({min: 1, step: 1});
74
  });
75
  });
76
 
77
+ function fifu_fake1_js() {
78
+ if (jQuery('#fifu_toggle_fake').attr('class') == 'toggleon') {
79
+ jQuery('#tr_fake1').show();
80
+ jQuery('#tr_fake2').hide();
81
+ } else if (jQuery('#fifu_toggle_fake2').attr('class') == 'toggleon') {
82
+ jQuery('#tr_fake1').hide();
83
+ jQuery('#tr_fake2').show();
84
+ } else {
85
+ jQuery('#tr_fake1').show();
86
+ jQuery('#tr_fake2').show();
87
+ }
88
+ }
89
+
90
  function fifu_fake_js() {
91
  jQuery('.wrap').block({message: 'Please wait some seconds...', css: {backgroundColor: 'none', border: 'none', color: 'white'}});
92
 
114
  },
115
  complete: function () {
116
  setTimeout(function () {
117
+ jQuery("#fifu_toggle_fake").attr('class', 'toggleoff');
118
  jQuery('.wrap').unblock();
119
  }, 1000);
120
  },
144
  jQuery("#fifu_toggle_data_clean").attr('class', 'toggleoff');
145
  jQuery("#fifu_toggle_fake").attr('class', 'toggleoff');
146
  jQuery("#fifu_toggle_fake2").attr('class', 'toggleoff');
 
147
  jQuery('.wrap').unblock();
148
  }, 1000);
149
  }
admin/html/menu.html CHANGED
@@ -1163,11 +1163,11 @@
1163
  <table>
1164
  <tr>
1165
  <td style="width:50px"></td>
1166
- <td style="width:100px">action</td>
1167
- <td style="width:200px">pros</td>
1168
- <td style="width:200px">cons</td>
1169
  </tr>
1170
- <tr>
1171
  <form
1172
  id="fifu_form_fake"
1173
  action="javascript:void(0)"
@@ -1177,7 +1177,8 @@
1177
  type="image"
1178
  href="javascript:void(0)"
1179
  id="fifu_toggle_fake"
1180
- onclick="invert('fake')"
 
1181
  name="fifu_toggle_fake"
1182
  class="<?php echo $enable_fake; ?>"
1183
  value=""
@@ -1189,7 +1190,7 @@
1189
  value="" >
1190
  </td>
1191
  <td>
1192
- create one fake image for all URLs
1193
  </td>
1194
  <td>
1195
  you can keep your real internal featured image.
@@ -1199,7 +1200,7 @@
1199
  </td>
1200
  </form>
1201
  </tr>
1202
- <tr>
1203
  <form
1204
  id="fifu_form_fake2"
1205
  action="javascript:void(0)"
@@ -1210,7 +1211,8 @@
1210
  href="javascript:void(0)"
1211
  id="fifu_toggle_fake2"
1212
  onclick="invert('fake2');
1213
- fifu_fake_js();";
 
1214
  name="fifu_toggle_fake2"
1215
  class="<?php echo $enable_fake2; ?>"
1216
  value=""
@@ -1222,13 +1224,13 @@
1222
  value="" >
1223
  </td>
1224
  <td>
1225
- create a different fake image for each URL
1226
  </td>
1227
  <td>
1228
  the site can show the images anywhere and in the correct size in most cases. Greater chance of the external images being supported by other plugins.
1229
  </td>
1230
  <td>
1231
- it'll replace your real internal featured image.
1232
  </td>
1233
  </form>
1234
  </tr></table>
@@ -1246,55 +1248,30 @@
1246
 
1247
  <br>
1248
 
1249
- <div id="accordionClean">
1250
- <h3>&nbsp;&nbsp;&nbsp;clean metadata</h3>
1251
- <div>
1252
- <form
1253
- id="fifu_form_data_clean"
1254
- action="javascript:void(0)"
1255
- method="post">
1256
- <input
1257
- type="image"
1258
- href="javascript:void(0)"
1259
- id="fifu_toggle_data_clean"
1260
- onclick="invert('data_clean');
1261
- fifu_clean_js();";
1262
- name="fifu_toggle_data_clean"
1263
- class="<?php echo $enable_data_clean; ?>"
1264
- value=""
1265
- style="display:block">
1266
-
1267
- <input
1268
- type="hidden"
1269
- id="fifu_input_data_clean"
1270
- name="fifu_input_data_clean"
1271
- value="" >
1272
- </form>
1273
- </div>
1274
-
1275
- <h3>&nbsp;&nbsp;&nbsp;metadata generation</h3>
1276
- <div>
1277
- <form
1278
- id="fifu_form_data_generation"
1279
- action="javascript:void(0)"
1280
- method="post">
1281
- <input
1282
- type="image"
1283
- href="javascript:void(0)"
1284
- id="fifu_toggle_data_generation"
1285
- onclick="invert('data_generation')"
1286
- name="fifu_toggle_data_generation"
1287
- class="<?php echo $enable_data_generation; ?>"
1288
- value=""
1289
- style="display:block">
1290
-
1291
- <input
1292
- type="hidden"
1293
- id="fifu_input_data_generation"
1294
- name="fifu_input_data_generation"
1295
- value="" >
1296
- </form>
1297
- </div>
1298
  </div>
1299
  </div>
1300
  </div>
@@ -2650,6 +2627,22 @@
2650
  From <b>September 2019</b>, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
2651
  </div>
2652
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2653
  <div class="box">
2654
  <table>
2655
  <tr>
@@ -2797,7 +2790,6 @@ fifu_content:<?php echo $enable_content ?>;
2797
  fifu_content_page:<?php echo $enable_content_page ?>;
2798
  fifu_css:<?php echo $css_style ?>;
2799
  fifu_data_clean:<?php echo $enable_data_clean ?>;
2800
- fifu_data_generation:<?php echo $enable_data_generation ?>;
2801
  fifu_default_url:<?php echo $default_url ?>;
2802
  fifu_enable_default_url:<?php echo $enable_default_url ?>;
2803
  fifu_fake:<?php echo $enable_fake ?>;
1163
  <table>
1164
  <tr>
1165
  <td style="width:50px"></td>
1166
+ <td style="width:200px">action</td>
1167
+ <td style="width:350px">pros</td>
1168
+ <td style="width:300px">cons</td>
1169
  </tr>
1170
+ <tr id='tr_fake1'>
1171
  <form
1172
  id="fifu_form_fake"
1173
  action="javascript:void(0)"
1177
  type="image"
1178
  href="javascript:void(0)"
1179
  id="fifu_toggle_fake"
1180
+ onclick="invert('fake');
1181
+ fifu_fake1_js();"
1182
  name="fifu_toggle_fake"
1183
  class="<?php echo $enable_fake; ?>"
1184
  value=""
1190
  value="" >
1191
  </td>
1192
  <td>
1193
+ create one fake image for all URLs (<b>deprecated soon</b>)
1194
  </td>
1195
  <td>
1196
  you can keep your real internal featured image.
1200
  </td>
1201
  </form>
1202
  </tr>
1203
+ <tr id='tr_fake2'>
1204
  <form
1205
  id="fifu_form_fake2"
1206
  action="javascript:void(0)"
1211
  href="javascript:void(0)"
1212
  id="fifu_toggle_fake2"
1213
  onclick="invert('fake2');
1214
+ fifu_fake_js();
1215
+ fifu_fake1_js()";
1216
  name="fifu_toggle_fake2"
1217
  class="<?php echo $enable_fake2; ?>"
1218
  value=""
1224
  value="" >
1225
  </td>
1226
  <td>
1227
+ create a different fake image for each URL (<b>recommended</b>)
1228
  </td>
1229
  <td>
1230
  the site can show the images anywhere and in the correct size in most cases. Greater chance of the external images being supported by other plugins.
1231
  </td>
1232
  <td>
1233
+ the image metadata will replace your real internal featured image if that exists.
1234
  </td>
1235
  </form>
1236
  </tr></table>
1248
 
1249
  <br>
1250
 
1251
+ <div>
1252
+ <form
1253
+ id="fifu_form_data_clean"
1254
+ action="javascript:void(0)"
1255
+ method="post">
1256
+ <input
1257
+ type="image"
1258
+ href="javascript:void(0)"
1259
+ id="fifu_toggle_data_clean"
1260
+ onclick="invert('data_clean');
1261
+ fifu_clean_js();
1262
+ jQuery('#tr_fake1').show();
1263
+ jQuery('#tr_fake2').show();";
1264
+ name="fifu_toggle_data_clean"
1265
+ class="<?php echo $enable_data_clean; ?>"
1266
+ value=""
1267
+ style="display:block">
1268
+
1269
+ <input
1270
+ type="hidden"
1271
+ id="fifu_input_data_clean"
1272
+ name="fifu_input_data_clean"
1273
+ value="" >
1274
+ </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1275
  </div>
1276
  </div>
1277
  </div>
2627
  From <b>September 2019</b>, always you guys report an issue between FIFU and another plugin or theme, the solution will be posted here.
2628
  </div>
2629
  </div>
2630
+ <div class="box">
2631
+ <table>
2632
+ <tr>
2633
+ <td style="border-bottom:none">2019-10-28</td>
2634
+ <td style="border-bottom:none"><h3>https</h3></td>
2635
+ <td style="border-bottom:none">protocol</td>
2636
+ </tr>
2637
+ </table>
2638
+ <div class="greybox" style="position: relative; top: -10px">
2639
+ Replacing http URLs by https:<br>
2640
+ 1) run this SQL command: UPDATE wp_postmeta SET meta_value = REPLACE(meta_value, 'http://', 'https://') WHERE meta_key = 'fifu_image_url' AND meta_value LIKE '%site.com%';<br>
2641
+ 2) enable "FIFU settings > Metadata > Clean metadata" toggle (it will be automatically disabled after a few minutes);<br>
2642
+ 3) enable "Fake Internal Featured Image" (the 2nd toggle).<br>
2643
+ * replace site.com by the domain of the URLs you want to update
2644
+ </div>
2645
+ </div>
2646
  <div class="box">
2647
  <table>
2648
  <tr>
2790
  fifu_content_page:<?php echo $enable_content_page ?>;
2791
  fifu_css:<?php echo $css_style ?>;
2792
  fifu_data_clean:<?php echo $enable_data_clean ?>;
 
2793
  fifu_default_url:<?php echo $default_url ?>;
2794
  fifu_enable_default_url:<?php echo $enable_default_url ?>;
2795
  fifu_fake:<?php echo $enable_fake ?>;
admin/menu.php CHANGED
@@ -48,7 +48,6 @@ function fifu_get_menu_html() {
48
  $column_height = get_option('fifu_column_height');
49
  $enable_grid_category = get_option('fifu_grid_category');
50
  $enable_auto_alt = get_option('fifu_auto_alt');
51
- $enable_data_generation = get_option('fifu_data_generation');
52
  $enable_data_clean = 'toggleoff';
53
  $max_image_height_shop = get_option('fifu_image_height_shop');
54
  $max_image_width_shop = get_option('fifu_image_width_shop');
@@ -148,7 +147,6 @@ function fifu_update_menu_options() {
148
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
149
  fifu_update_option('fifu_input_grid_category', 'fifu_grid_category');
150
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
151
- fifu_update_option('fifu_input_data_generation', 'fifu_data_generation');
152
  fifu_update_option('fifu_input_data_clean', 'fifu_data_clean');
153
  fifu_update_option('fifu_input_image_height_shop', 'fifu_image_height_shop');
154
  fifu_update_option('fifu_input_image_width_shop', 'fifu_image_width_shop');
48
  $column_height = get_option('fifu_column_height');
49
  $enable_grid_category = get_option('fifu_grid_category');
50
  $enable_auto_alt = get_option('fifu_auto_alt');
 
51
  $enable_data_clean = 'toggleoff';
52
  $max_image_height_shop = get_option('fifu_image_height_shop');
53
  $max_image_width_shop = get_option('fifu_image_width_shop');
147
  fifu_update_option('fifu_input_column_height', 'fifu_column_height');
148
  fifu_update_option('fifu_input_grid_category', 'fifu_grid_category');
149
  fifu_update_option('fifu_input_auto_alt', 'fifu_auto_alt');
 
150
  fifu_update_option('fifu_input_data_clean', 'fifu_data_clean');
151
  fifu_update_option('fifu_input_image_height_shop', 'fifu_image_height_shop');
152
  fifu_update_option('fifu_input_image_width_shop', 'fifu_image_width_shop');
featured-image-from-url.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://featuredimagefromurl.com/
6
  * Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
- * Version: 2.6.9
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
4
  * Plugin Name: Featured Image from URL
5
  * Plugin URI: https://featuredimagefromurl.com/
6
  * Description: Use an external image as Featured Image of your post/page/custom post type (WooCommerce). Includes Auto Set (External Post), Product Gallery, Social Tags and more.
7
+ * Version: 2.7.0
8
  * Author: Marcel Jacques Machado
9
  * Author URI: https://www.linkedin.com/in/marceljm/
10
  */
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, flickr, s3, picasa, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all, content, custom, type, custom post type, category, video, external video, youtube, vimeo, featured video, hover, effects, hover effects, sirv, wp all import, css, style, slider, thumbnail, social, network, auto, publish, hide, first image, content, lightbox, size, grid, auto post thumbnail, link, uri, affiliate, wp, rest, api, wp rest api, lazy, load, google, drive, instagram, validation, jetpack, visual composer, play, pause, crop, resize, zoom, enable, disable, default, automatic, auto set, cloudinary, schedule, event, cron, seo, variable, tumblr, variation, product variation, shortcode, facebook, instagram, imgur, 9gag, wcfm
5
  Requires at least: 4.0
6
  Tested up to: 5.3
7
- Stable tag: 2.6.9
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -159,6 +159,9 @@ Features:
159
 
160
  == Changelog ==
161
 
 
 
 
162
  = 2.6.9 =
163
  * Notice: ready for WordPress 5.3.
164
 
@@ -636,6 +639,9 @@ was removed. To finish, a Premium version is now been presented.
636
 
637
  == Upgrade Notice ==
638
 
 
 
 
639
  = 2.6.9 =
640
  * Notice: ready for WordPress 5.3.
641
 
4
  Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, flickr, s3, picasa, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all, content, custom, type, custom post type, category, video, external video, youtube, vimeo, featured video, hover, effects, hover effects, sirv, wp all import, css, style, slider, thumbnail, social, network, auto, publish, hide, first image, content, lightbox, size, grid, auto post thumbnail, link, uri, affiliate, wp, rest, api, wp rest api, lazy, load, google, drive, instagram, validation, jetpack, visual composer, play, pause, crop, resize, zoom, enable, disable, default, automatic, auto set, cloudinary, schedule, event, cron, seo, variable, tumblr, variation, product variation, shortcode, facebook, instagram, imgur, 9gag, wcfm
5
  Requires at least: 4.0
6
  Tested up to: 5.3
7
+ Stable tag: 2.7.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
159
 
160
  == Changelog ==
161
 
162
+ = 2.7.0 =
163
+ * Deprecated: Metadata > Metadata Generation; Improvement: Metadata > Fake Internal Featured Image layout is more intuitive now.
164
+
165
  = 2.6.9 =
166
  * Notice: ready for WordPress 5.3.
167
 
639
 
640
  == Upgrade Notice ==
641
 
642
+ = 2.7.0 =
643
+ * Deprecated: Metadata > Metadata Generation; Improvement: Metadata > Fake Internal Featured Image layout is more intuitive now.
644
+
645
  = 2.6.9 =
646
  * Notice: ready for WordPress 5.3.
647