Featured Image From URL - Version 3.7.5

Version Description

  • 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).
Download this release

Release Info

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

Code changes from version 3.7.4 to 3.7.5

admin/db.php CHANGED
@@ -874,6 +874,7 @@ class FifuDb {
874
  /* delete all urls */
875
 
876
  function delete_all() {
 
877
  if (fifu_is_on('fifu_confirm_delete_all') &&
878
  fifu_is_on('fifu_run_delete_all') &&
879
  get_option('fifu_confirm_delete_all_time') &&
874
  /* delete all urls */
875
 
876
  function delete_all() {
877
+ sleep(3);
878
  if (fifu_is_on('fifu_confirm_delete_all') &&
879
  fifu_is_on('fifu_run_delete_all') &&
880
  get_option('fifu_confirm_delete_all_time') &&
admin/html/css/menu.css CHANGED
@@ -186,6 +186,16 @@ tr.color:nth-child(even) {
186
  padding: 7px;
187
  }
188
 
 
 
 
 
 
 
 
 
 
 
189
  div.polaroid {
190
  width: 100%;
191
  background-color: white;
186
  padding: 7px;
187
  }
188
 
189
+ div.fifu-referral {
190
+ height: 24px;
191
+ position: relative;
192
+ float:right;
193
+ right:8px;
194
+ top:-39px;
195
+ padding: 7px;
196
+ color: #f0f0f1;
197
+ }
198
+
199
  div.polaroid {
200
  width: 100%;
201
  background-color: white;
admin/html/js/menu.js CHANGED
@@ -221,7 +221,7 @@ function fifu_run_delete_all_js() {
221
  setTimeout(function () {
222
  jQuery("#fifu_toggle_run_delete_all").attr('class', 'toggleoff');
223
  jQuery('#tabs-top').unblock();
224
- }, 1000);
225
  },
226
  timeout: 0
227
  });
221
  setTimeout(function () {
222
  jQuery("#fifu_toggle_run_delete_all").attr('class', 'toggleoff');
223
  jQuery('#tabs-top').unblock();
224
+ }, 3000);
225
  },
226
  timeout: 0
227
  });
admin/html/menu.html CHANGED
@@ -3,6 +3,7 @@
3
  <div class="header-box">
4
  <h1 style="color:white;padding-left:20px"><span class="dashicons dashicons-camera" style="font-size:30px"></span><span style="padding-left:20px">featured image from url</span></h1>
5
  <a href="https://chrome.google.com/webstore/detail/fifu-scraper/pccimcccbkdeeadhejdmnffmllpicola" target="_blank"><img class="fifu-chrome" src="https://storage.googleapis.com/featuredimagefromurl/chrome-web-store2.png" title="<?php $fifu['chrome']['link']() ?>"/></a>
 
6
  </div>
7
 
8
  <div id="tabs-top" style="float:left">
@@ -5626,6 +5627,20 @@
5626
  </div>
5627
  </div>
5628
  <div id="tabs-t">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5629
  <div class="box">
5630
  <table>
5631
  <tr>
@@ -5636,7 +5651,7 @@
5636
  </table>
5637
  <div class="greybox" style="position: relative; top: -10px">
5638
  Posts created by WP Automatic have no featured image. <br>
5639
- x) please contact its support, because the integration with FIFU was made 100% on WP Automatic side.<br>
5640
  </div>
5641
  </div>
5642
  <div class="box">
3
  <div class="header-box">
4
  <h1 style="color:white;padding-left:20px"><span class="dashicons dashicons-camera" style="font-size:30px"></span><span style="padding-left:20px">featured image from url</span></h1>
5
  <a href="https://chrome.google.com/webstore/detail/fifu-scraper/pccimcccbkdeeadhejdmnffmllpicola" target="_blank"><img class="fifu-chrome" src="https://storage.googleapis.com/featuredimagefromurl/chrome-web-store2.png" title="<?php $fifu['chrome']['link']() ?>"/></a>
6
+ <a href="https://referral.fifu.app" target="_blank"><div class="fifu-referral"><i class="fas fa-comment-dollar" style="font-size:30px" title="<?php $fifu['referral']['link']() ?>"></i></div></a>
7
  </div>
8
 
9
  <div id="tabs-top" style="float:left">
5627
  </div>
5628
  </div>
5629
  <div id="tabs-t">
5630
+ <div class="box">
5631
+ <table>
5632
+ <tr>
5633
+ <td style="border-bottom:none">2021-09-27</td>
5634
+ <td style="border-bottom:none"><h3> Apache</h3></td>
5635
+ <td style="border-bottom:none">web server</td>
5636
+ </tr>
5637
+ </table>
5638
+ <div class="greybox" style="position: relative; top: -10px">
5639
+ FIFU settings don't work due 301 (Moved Permanently) POST followed by 404 (Not Found) GET.<br>
5640
+ 1) open .htaccess file and replace 301 by 307;<br>
5641
+ 2) restart Apache.<br>
5642
+ </div>
5643
+ </div>
5644
  <div class="box">
5645
  <table>
5646
  <tr>
5651
  </table>
5652
  <div class="greybox" style="position: relative; top: -10px">
5653
  Posts created by WP Automatic have no featured image. <br>
5654
+ x) please contact its support, because WP Automatic is responsible for saving image URLs in FIFU custom fields.<br>
5655
  </div>
5656
  </div>
5657
  <div class="box">
admin/strings.php CHANGED
@@ -131,6 +131,11 @@ function fifu_get_strings_settings() {
131
  _e("Chrome Extension available", FIFU_SLUG);
132
  };
133
 
 
 
 
 
 
134
  // messages
135
  $fifu['message']['wait'] = function() {
136
  _e("Please wait a few seconds...", FIFU_SLUG);
@@ -254,7 +259,7 @@ function fifu_get_strings_settings() {
254
  _e("Image Validation", FIFU_SLUG);
255
  };
256
  $fifu['title']['html'] = function() {
257
- _e("Auto set featured image/video using img/iframe tag from post content", FIFU_SLUG);
258
  };
259
  $fifu['title']['metadata'] = function() {
260
  _e("Image Metadata", FIFU_SLUG);
@@ -858,7 +863,7 @@ function fifu_get_strings_settings() {
858
 
859
  // configuration
860
  $fifu['html']['desc'] = function() {
861
- _e("Set featured images/videos automatically. FIFU will read the HTML of your post and use the 1st image/video URL found as featured media. It happens when you click on Publish/Update button.", FIFU_SLUG);
862
  };
863
  $fifu['html']['tab']['auto'] = function() {
864
  _e("Auto set", FIFU_SLUG);
131
  _e("Chrome Extension available", FIFU_SLUG);
132
  };
133
 
134
+ // referral
135
+ $fifu['referral']['link'] = function() {
136
+ _e("Affiliate program: earn money recommending this plugin", FIFU_SLUG);
137
+ };
138
+
139
  // messages
140
  $fifu['message']['wait'] = function() {
141
  _e("Please wait a few seconds...", FIFU_SLUG);
259
  _e("Image Validation", FIFU_SLUG);
260
  };
261
  $fifu['title']['html'] = function() {
262
+ _e("Auto set featured media from post content", FIFU_SLUG);
263
  };
264
  $fifu['title']['metadata'] = function() {
265
  _e("Image Metadata", FIFU_SLUG);
863
 
864
  // configuration
865
  $fifu['html']['desc'] = function() {
866
+ _e("Set featured images/videos automatically. FIFU will read the HTML of your post and use the 1st image/video URL found as featured media. It happens when you click on Publish/Update button. Images URLs must be in \"img\" tags. And videos can only be hidden if they are in \"iframe\" tags", FIFU_SLUG);
867
  };
868
  $fifu['html']['tab']['auto'] = function() {
869
  _e("Auto set", FIFU_SLUG);
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.4
8
  * Author: fifu.app
9
  * Author URI: https://fifu.app/
10
  * WC requires at least: 4.0
@@ -100,9 +100,11 @@ function fifu_row_meta($plugin_meta, $plugin_file, $plugin_data, $status) {
100
  if (strpos($plugin_file, 'featured-image-from-url.php') !== false) {
101
  $tag_review = '<a title="If you are enjoying FIFU, please give it a 5-star rating =]" href="https://wordpress.org/support/plugin/featured-image-from-url/reviews/?filter=5" target="_blank"><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></a>';
102
  $tag_pro = '<a href="https://fifu.app/" target="_blank"><span style="padding:5px;color:white;background-color:#1da867">Upgrade to <b>PRO</b></span></a>';
 
103
  $new_links = array(
104
  'review' => $tag_review,
105
  'pro' => $tag_pro,
 
106
  );
107
  $plugin_meta = array_merge($plugin_meta, $new_links);
108
  }
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
100
  if (strpos($plugin_file, 'featured-image-from-url.php') !== false) {
101
  $tag_review = '<a title="If you are enjoying FIFU, please give it a 5-star rating =]" href="https://wordpress.org/support/plugin/featured-image-from-url/reviews/?filter=5" target="_blank"><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></a>';
102
  $tag_pro = '<a href="https://fifu.app/" target="_blank"><span style="padding:5px;color:white;background-color:#1da867">Upgrade to <b>PRO</b></span></a>';
103
+ $ref = '<a href="https://referral.fifu.app" target="_blank">Affiliate program</a>';
104
  $new_links = array(
105
  'review' => $tag_review,
106
  'pro' => $tag_pro,
107
+ 'affiliate' => $ref,
108
  );
109
  $plugin_meta = array_merge($plugin_meta, $new_links);
110
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: marceljm
3
  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
7
- Stable tag: 3.7.4
8
  License: GPLv3
9
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -41,7 +41,7 @@ Use an external image as featured image of your post, page or custom post type.
41
 
42
  #### AUTOMATIC FEATURED MEDIA
43
 
44
- * Auto set featured image/video using img/iframe tag from post content
45
  * **[PRO]** Auto set featured image using post title and search engine
46
  * **[PRO]** Auto set featured image using ISBN and books API
47
  * **[PRO]** Auto set screenshot as featured image
@@ -123,7 +123,8 @@ Supports videos from YouTube, Vimeo, Imgur, 9GAG, Cloudinary, Tumblr, Publitio,
123
 
124
  #### LINKS
125
 
126
- * **<a href="https://fifu.app/">Featured Image from URL PRO</a>**
 
127
  * **<a href="https://chrome.google.com/webstore/detail/fifu-scraper/pccimcccbkdeeadhejdmnffmllpicola">Google Chrome extension</a>**
128
 
129
  #### FIFU, the best WordPress plugin for...
@@ -224,20 +225,20 @@ Featured Image, Figurë e Zgjedhur, Image mise en avant, Uitgelichte afbeelding,
224
 
225
  == Changelog ==
226
 
 
 
 
227
  = 3.7.4 =
228
  * New option: Save in the Media Library > Proxy.
229
 
230
  = 3.7.3 =
231
  * New option: Auto set featured image using post title and search engine > Source.
232
 
233
- = 3.7.2 =
234
- * New option: Auto set featured image using ISBN and books API > Custom field; fix: CDN + Optimized Thumbnails (Google Drive and Amazon images not displayed).
235
-
236
  = others =
237
  * [more](https://fifu.app/changelog)
238
 
239
 
240
  == Upgrade Notice ==
241
 
242
- = 3.7.4 =
243
- * New option: Save in the Media Library > Proxy.
3
  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
 
41
 
42
  #### AUTOMATIC FEATURED MEDIA
43
 
44
+ * Auto set featured media from post content
45
  * **[PRO]** Auto set featured image using post title and search engine
46
  * **[PRO]** Auto set featured image using ISBN and books API
47
  * **[PRO]** Auto set screenshot as featured image
123
 
124
  #### LINKS
125
 
126
+ * **<a href="https://fifu.app/">FIFU PRO</a>**
127
+ * **<a href="https://referral.fifu.app/">Affiliate Program</a>**
128
  * **<a href="https://chrome.google.com/webstore/detail/fifu-scraper/pccimcccbkdeeadhejdmnffmllpicola">Google Chrome extension</a>**
129
 
130
  #### FIFU, the best WordPress plugin for...
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).