Featured Image From URL - Version 3.7.6

Version Description

  • New option: Auto set featured media using web page address > Custom field; enhancement: Auto set featured media using web page address (auto set product gallery for Amazon products); enhancement: CDN + Optimized Thumbnails (can serve Amazon images now); notice: FIFU will no longer support Instagram images.
Download this release

Release Info

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

Code changes from version 3.7.5 to 3.7.6

admin/html/css/menu.css CHANGED
@@ -190,7 +190,7 @@ div.fifu-referral {
190
  height: 24px;
191
  position: relative;
192
  float:right;
193
- right:8px;
194
  top:-39px;
195
  padding: 7px;
196
  color: #f0f0f1;
190
  height: 24px;
191
  position: relative;
192
  float:right;
193
+ right:2px;
194
  top:-39px;
195
  padding: 7px;
196
  color: #f0f0f1;
admin/html/js/menu.js CHANGED
@@ -55,6 +55,7 @@ jQuery(function () {
55
  jQuery("#tabsAutoSet").tabs();
56
  jQuery("#tabsIsbn").tabs();
57
  jQuery("#tabsScreenshot").tabs();
 
58
  jQuery("#tabsSlider").tabs();
59
  jQuery("#tabsContent").tabs();
60
  jQuery("#tabsContentAll").tabs();
55
  jQuery("#tabsAutoSet").tabs();
56
  jQuery("#tabsIsbn").tabs();
57
  jQuery("#tabsScreenshot").tabs();
58
+ jQuery("#tabsFinder").tabs();
59
  jQuery("#tabsSlider").tabs();
60
  jQuery("#tabsContent").tabs();
61
  jQuery("#tabsContentAll").tabs();
admin/html/menu.html CHANGED
@@ -97,10 +97,10 @@
97
  <div id="tabs-1">
98
  <table style="text-align:left; font-size: 11px">
99
  <tr class="color">
100
- <th>
101
  <b><?php $fifu['cli']['column']['tab']() ?></b>
102
  </th>
103
- <th>
104
  <b><?php $fifu['cli']['column']['feature']() ?></b>
105
  </th>
106
  <th>
@@ -496,6 +496,23 @@
496
  on, off
497
  </th>
498
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
499
  <tr class="color">
500
  <th>
501
  <?php $fifu['tab']['auto']() ?>
@@ -2564,34 +2581,66 @@
2564
  <?php $fifu['finder']['desc']() ?>
2565
  </div>
2566
  <br>
2567
- <table style="text-align:left">
2568
- <tr>
2569
- <td>
2570
- <input
2571
- type="submit"
2572
- href="javascript:void(0)"
2573
- class="toggleoff"
2574
- value=""
2575
- style="display:block;border:none">
2576
- </td>
2577
- <td>
2578
- <?php $fifu['finder']['auto']() ?>
2579
- </td>
2580
- </tr>
2581
- <tr>
2582
- <td>
2583
- <input
2584
- type="submit"
2585
- href="javascript:void(0)"
2586
- class="toggleoff"
2587
- value=""
2588
- style="display:block;border:none">
2589
- </td>
2590
- <td>
2591
- <?php $fifu['finder']['video']() ?>
2592
- </td>
2593
- </tr>
2594
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2595
  </div>
2596
 
2597
  <div class="box">
@@ -5988,27 +6037,6 @@
5988
  3) add "$imageresize = $imageresize ? $imageresize : $image_src;" immediately below that.<br>
5989
  </div>
5990
  </div>
5991
- <div class="box">
5992
- <table>
5993
- <tr>
5994
- <td style="border-bottom:none">2020-06-02</td>
5995
- <td style="border-bottom:none"><h3> Zapier (+Instagram)</h3></td>
5996
- <td style="border-bottom:none">service</td>
5997
- </tr>
5998
- </table>
5999
- <div class="greybox" style="position: relative; top: -10px">
6000
- Setting featured image automatically:<br>
6001
- 1) access "FIFU Settings > Automatic > Auto set featured image/video using img/iframe tag from post content";<br>
6002
- 2) enable "use the found image/video as featured image";<br>
6003
- 3) enable "hide the image/video from content";<br>
6004
- 4) access "Zapier > Make a Zap", select Instagram as the first app and configure as you want;<br>
6005
- 5) select WordPress as the second app;<br>
6006
- 6) click on "Choose Action Event", select "Create Post" and "Continue";<br>
6007
- 7) select your "WordPress account" and "Continue";<br>
6008
- 8) on "Customize Post", click on "Content" and select "Permalink";<br>
6009
- 9) put the "Permalink" in an img tag: &lt;img src="Permalink"&gt;<br>
6010
- </div>
6011
- </div>
6012
  <div class="box">
6013
  <table>
6014
  <tr>
@@ -6019,7 +6047,7 @@
6019
  </table>
6020
  <div class="greybox" style="position: relative; top: -10px">
6021
  Setting featured video automatically:<br>
6022
- 1) access "FIFU Settings > Automatic > Auto set featured image/video using img/iframe tag from post content";<br>
6023
  2) enable "use the found image/video as featured image";<br>
6024
  3) enable "hide the image/video from content";<br>
6025
  4) access "Zapier > Make a Zap", select YouTube as the first app and configure as you want;<br>
97
  <div id="tabs-1">
98
  <table style="text-align:left; font-size: 11px">
99
  <tr class="color">
100
+ <th style="width:80px">
101
  <b><?php $fifu['cli']['column']['tab']() ?></b>
102
  </th>
103
+ <th style="width:150px">
104
  <b><?php $fifu['cli']['column']['feature']() ?></b>
105
  </th>
106
  <th>
496
  on, off
497
  </th>
498
  </tr>
499
+ <tr class="color">
500
+ <th>
501
+ <?php $fifu['tab']['auto']() ?>
502
+ </th>
503
+ <th>
504
+ <?php $fifu['title']['finder']() ?>
505
+ </th>
506
+ <th>
507
+ <?php $fifu['finder']['tab']['custom']() ?>
508
+ </th>
509
+ <th>
510
+ wp fifu finder --field &lt;string&gt;
511
+ </th>
512
+ <th>
513
+ meta_key
514
+ </th>
515
+ </tr>
516
  <tr class="color">
517
  <th>
518
  <?php $fifu['tab']['auto']() ?>
2581
  <?php $fifu['finder']['desc']() ?>
2582
  </div>
2583
  <br>
2584
+ <div id="tabsFinder">
2585
+ <ul>
2586
+ <li><a href="#tabsFinder-a"><?php $fifu['finder']['tab']['auto']() ?></a></li>
2587
+ <li><a href="#tabsFinder-b"><?php $fifu['finder']['tab']['custom']() ?></a></li>
2588
+ <li><a href="#tabsFinder-c"><?php $fifu['finder']['tab']['amazon']() ?></a></li>
2589
+ <br>
2590
+ <br>
2591
+ <div id="tabsFinder-a">
2592
+ <table style="text-align:left">
2593
+ <tr>
2594
+ <td>
2595
+ <input
2596
+ type="submit"
2597
+ href="javascript:void(0)"
2598
+ class="toggleoff"
2599
+ value=""
2600
+ style="display:block;border:none">
2601
+ </td>
2602
+ <td>
2603
+ <?php $fifu['finder']['auto']() ?>
2604
+ </td>
2605
+ </tr>
2606
+ <tr>
2607
+ <td>
2608
+ <input
2609
+ type="submit"
2610
+ href="javascript:void(0)"
2611
+ class="toggleoff"
2612
+ value=""
2613
+ style="display:block;border:none">
2614
+ </td>
2615
+ <td>
2616
+ <?php $fifu['finder']['video']() ?>
2617
+ </td>
2618
+ </tr>
2619
+ </table>
2620
+ </div>
2621
+
2622
+ <div id="tabsFinder-b">
2623
+ <?php $fifu['finder']['custom']['desc']() ?>
2624
+ <br>
2625
+ <br>
2626
+ <table style="text-align:left">
2627
+ <tr>
2628
+ <th>
2629
+ <input type="text"
2630
+ style="width:800px"
2631
+ value="">
2632
+ <input type="submit"
2633
+ value="<?php $fifu['button']['submit']() ?>" disabled>
2634
+ </th>
2635
+ </tr>
2636
+ </table>
2637
+ </div>
2638
+
2639
+ <div id="tabsFinder-c">
2640
+ For Amazon products the plugin will set the image gallery as well.
2641
+ </div>
2642
+ </ul>
2643
+ </div>
2644
  </div>
2645
 
2646
  <div class="box">
6037
  3) add "$imageresize = $imageresize ? $imageresize : $image_src;" immediately below that.<br>
6038
  </div>
6039
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6040
  <div class="box">
6041
  <table>
6042
  <tr>
6047
  </table>
6048
  <div class="greybox" style="position: relative; top: -10px">
6049
  Setting featured video automatically:<br>
6050
+ 1) access "FIFU Settings > Automatic > Auto set featured media from post content";<br>
6051
  2) enable "use the found image/video as featured image";<br>
6052
  3) enable "hide the image/video from content";<br>
6053
  4) access "Zapier > Make a Zap", select YouTube as the first app and configure as you want;<br>
admin/strings.php CHANGED
@@ -402,7 +402,7 @@ function fifu_get_strings_settings() {
402
  _e("\"Nulled\" Premium doesn't work", FIFU_SLUG);
403
  };
404
  $fifu['support']['money'] = function() {
405
- _e("Instagram images disappeared", FIFU_SLUG);
406
  };
407
  $fifu['support']['speed'] = function() {
408
  _e("PageSpeed and GTmetrix issues", FIFU_SLUG);
@@ -423,7 +423,7 @@ function fifu_get_strings_settings() {
423
  _e("This plugin has no nulled versions, but modified versions. Don't install that. It's illegal and may ruin your site. Moreover, sales of the original premium version keep this project alive.", FIFU_SLUG);
424
  };
425
  $fifu['support']['money-desc'] = function() {
426
- _e("Because Instagram is invalidating its URLs once a month. FIFU can renew the URLs automatically via API, however due to the costs involved, it is only available in the PRO version.", FIFU_SLUG);
427
  };
428
  $fifu['support']['speed-desc'] = function() {
429
  _e("You can solve that activating Performance > CDN + Optimized Thumbnails. Even large images hosted on slow servers should load quickly on your website.", FIFU_SLUG);
@@ -737,6 +737,18 @@ function fifu_get_strings_settings() {
737
  $fifu['finder']['video'] = function() {
738
  _e("look for embedded videos", FIFU_SLUG);
739
  };
 
 
 
 
 
 
 
 
 
 
 
 
740
 
741
  // tags
742
  $fifu['tags']['desc'] = function() {
402
  _e("\"Nulled\" Premium doesn't work", FIFU_SLUG);
403
  };
404
  $fifu['support']['money'] = function() {
405
+ _e("Instagram images don't work", FIFU_SLUG);
406
  };
407
  $fifu['support']['speed'] = function() {
408
  _e("PageSpeed and GTmetrix issues", FIFU_SLUG);
423
  _e("This plugin has no nulled versions, but modified versions. Don't install that. It's illegal and may ruin your site. Moreover, sales of the original premium version keep this project alive.", FIFU_SLUG);
424
  };
425
  $fifu['support']['money-desc'] = function() {
426
+ _e("Instagram is making it impossible for its images to be displayed on other websites, except when additional elements are embedded. So FIFU doesn't support Instagram images anymore.", FIFU_SLUG);
427
  };
428
  $fifu['support']['speed-desc'] = function() {
429
  _e("You can solve that activating Performance > CDN + Optimized Thumbnails. Even large images hosted on slow servers should load quickly on your website.", FIFU_SLUG);
737
  $fifu['finder']['video'] = function() {
738
  _e("look for embedded videos", FIFU_SLUG);
739
  };
740
+ $fifu['finder']['tab']['auto'] = function() {
741
+ _e("Auto set", FIFU_SLUG);
742
+ };
743
+ $fifu['finder']['tab']['custom'] = function() {
744
+ _e("Custom field", FIFU_SLUG);
745
+ };
746
+ $fifu['finder']['tab']['amazon'] = function() {
747
+ _e("Amazon", FIFU_SLUG);
748
+ };
749
+ $fifu['finder']['custom']['desc'] = function() {
750
+ _e("If you already have the web page address saved in your database, you could inform its custom field name here. FIFU would access that and import the value. For example, if the web page URL is saved in the Product URL field, you could add \"_product_url\", which is the field where the external URL to the product is stored.", FIFU_SLUG);
751
+ };
752
 
753
  // tags
754
  $fifu['tags']['desc'] = function() {
featured-image-from-url.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin Name: Featured Image from URL (FIFU)
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image as featured image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
7
- * Version: 3.7.5
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
4
  * Plugin Name: Featured Image from URL (FIFU)
5
  * Plugin URI: https://fifu.app/
6
  * Description: Use an external image as featured image of a post or WooCommerce product. Includes Image Search, Video, Social Tags, SEO, Lazy Load, Gallery, Automation etc.
7
+ * Version: 3.7.6
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
includes/attachment.php CHANGED
@@ -199,6 +199,9 @@ function fifu_get_photon_url($image, $size, $att_id) {
199
 
200
  }
201
 
 
 
 
202
  // Remove CDN prefix
203
  $matches = preg_split('/https:\/\//', $image[0]);
204
  if ($matches && count($matches) > 2)
199
 
200
  }
201
 
202
+ if (fifu_jetpack_ssl($image[0]))
203
+ $args['ssl'] = 1;
204
+
205
  // Remove CDN prefix
206
  $matches = preg_split('/https:\/\//', $image[0]);
207
  if ($matches && count($matches) > 2)
includes/jetpack.php CHANGED
@@ -20,7 +20,7 @@ function fifu_jetpack_blocked($url) {
20
  if (fifu_is_photon_url($url))
21
  return true;
22
 
23
- $blocklist = array('amazon-adsystem.com', 'sapo.io', 'unsplash.com', 'i.guim.co.uk', 's.yimg.com', 's1.yimg.com', 'www.washingtonpost.com', 'pbs.twimg.com', 'www.aljazeera.com', 'image.influenster.com', 'api.screenshotmachine.com', 'rackcdn.com', 'm.media-amazon.com', 'images-na.ssl-images-amazon.com', 'googleusercontent.com', 'drive.google.com');
24
  foreach ($blocklist as $domain) {
25
  if (strpos($url, $domain) !== false)
26
  return true;
@@ -28,6 +28,15 @@ function fifu_jetpack_blocked($url) {
28
  return false;
29
  }
30
 
 
 
 
 
 
 
 
 
 
31
  function fifu_is_photon_url($url) {
32
  $list = array('i0.wp.com', 'i1.wp.com', 'i2.wp.com', 'i3.wp.com');
33
  foreach ($list as $domain) {
20
  if (fifu_is_photon_url($url))
21
  return true;
22
 
23
+ $blocklist = array('amazon-adsystem.com', 'sapo.io', 'unsplash.com', 'i.guim.co.uk', 's.yimg.com', 's1.yimg.com', 'www.washingtonpost.com', 'pbs.twimg.com', 'www.aljazeera.com', 'image.influenster.com', 'api.screenshotmachine.com', 'rackcdn.com', 'googleusercontent.com', 'drive.google.com');
24
  foreach ($blocklist as $domain) {
25
  if (strpos($url, $domain) !== false)
26
  return true;
28
  return false;
29
  }
30
 
31
+ function fifu_jetpack_ssl($url) {
32
+ $list = array('m.media-amazon.com', 'images-na.ssl-images-amazon.com');
33
+ foreach ($list as $domain) {
34
+ if (strpos($url, $domain) !== false)
35
+ return true;
36
+ }
37
+ return false;
38
+ }
39
+
40
  function fifu_is_photon_url($url) {
41
  $list = array('i0.wp.com', 'i1.wp.com', 'i2.wp.com', 'i3.wp.com');
42
  foreach ($list as $domain) {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://donorbox.org/fifu
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 5.8.1
7
- Stable tag: 3.7.5
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -225,20 +225,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
225
 
226
  == Changelog ==
227
 
 
 
 
228
  = 3.7.5 =
229
  * New: Affiliate Program (earn money recommending FIFU); enhancement: Auto set featured media from post content (can find video URLs without iframe); fix: Delete All URLs (not working).
230
 
231
  = 3.7.4 =
232
  * New option: Save in the Media Library > Proxy.
233
 
234
- = 3.7.3 =
235
- * New option: Auto set featured image using post title and search engine > Source.
236
-
237
  = others =
238
  * [more](https://fifu.app/changelog)
239
 
240
 
241
  == Upgrade Notice ==
242
 
243
- = 3.7.5 =
244
- * New: Affiliate Program (earn money recommending FIFU); enhancement: Auto set featured media from post content (can find video URLs without iframe); fix: Delete All URLs (not working).
4
  Tags: featured, image, url, video, woocommerce
5
  Requires at least: 5.3
6
  Tested up to: 5.8.1
7
+ Stable tag: 3.7.6
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
225
 
226
  == Changelog ==
227
 
228
+ = 3.7.6 =
229
+ * New option: Auto set featured media using web page address > Custom field; enhancement: Auto set featured media using web page address (auto set product gallery for Amazon products); enhancement: CDN + Optimized Thumbnails (can serve Amazon images now); notice: FIFU will no longer support Instagram images.
230
+
231
  = 3.7.5 =
232
  * New: Affiliate Program (earn money recommending FIFU); enhancement: Auto set featured media from post content (can find video URLs without iframe); fix: Delete All URLs (not working).
233
 
234
  = 3.7.4 =
235
  * New option: Save in the Media Library > Proxy.
236
 
 
 
 
237
  = others =
238
  * [more](https://fifu.app/changelog)
239
 
240
 
241
  == Upgrade Notice ==
242
 
243
+ = 3.7.6 =
244
+ * New option: Auto set featured media using web page address > Custom field; enhancement: Auto set featured media using web page address (auto set product gallery for Amazon products); enhancement: CDN + Optimized Thumbnails (can serve Amazon images now); notice: FIFU will no longer support Instagram images.