Featured Image From URL - Version 1.1.1

Version Description

  • Now, when you access "All Posts", "All Pages" or "Products" in admin menu, the Featured Images (internal or external) will be shown in a new column.

=

Download this release

Release Info

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

Code changes from version 1.1 to 1.1.1

admin/column.php ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ add_action('admin_init', 'fifu_column');
4
+
5
+ function fifu_column() {
6
+ add_filter('manage_posts_columns', 'fifu_column_head');
7
+ add_filter('manage_pages_columns', 'fifu_column_head');
8
+ add_action('manage_posts_custom_column', 'fifu_column_content', 10, 2);
9
+ add_action('manage_pages_custom_column', 'fifu_column_content', 10, 2);
10
+ }
11
+
12
+ function fifu_column_head($default) {
13
+ $default['featured_image'] = 'Featured Image';
14
+ return $default;
15
+ }
16
+
17
+ function fifu_column_content($column, $post_id) {
18
+ if ($column == 'featured_image') {
19
+ $url = get_post_meta($post_id, 'fifu_image_url', true);
20
+ if ($url == '')
21
+ $url = wp_get_attachment_url(get_post_thumbnail_id());
22
+ echo sprintf('<img src="%s" width="100"/>', $url);
23
+ }
24
+ }
25
+
admin/html/menu.html CHANGED
@@ -86,7 +86,7 @@
86
 
87
  <div class="greybox">
88
 
89
- <p>Do you really love Featured Image From URL? So give your <a href="https://wordpress.org/plugins/featured-image-from-url" target="_blank">rating</a> right now. It's very important for me and WordPress community too.</p>
90
 
91
  </div>
92
 
86
 
87
  <div class="greybox">
88
 
89
+ <p>Do you really love Featured Image From URL? So give your <a href="https://wordpress.org/support/view/plugin-reviews/featured-image-from-url?filter=5" target="_blank">rating</a> right now. It's very important for me and WordPress community too.</p>
90
 
91
  </div>
92
 
featured-image-from-url.php CHANGED
@@ -2,8 +2,8 @@
2
 
3
  /*
4
  * Plugin Name: Featured Image From URL
5
- * Description: Allows you to use an external image as Featured Image of your post, page or WooCommerce product. And now it's possible to use external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server).
6
- * Version: 1.1
7
  * Author: Marcel Jacques Machado
8
  * Author URI: http://marceljm.com
9
  */
@@ -16,6 +16,7 @@ require_once( FIFU_INCLUDES_DIR . '/thumbnail.php' );
16
  if (is_admin()) {
17
  require_once( FIFU_ADMIN_DIR . '/meta-box.php' );
18
  require_once( FIFU_ADMIN_DIR . '/menu.php' );
 
19
  }
20
 
21
  register_deactivation_hook( __FILE__, 'fifu_desactivate' );
2
 
3
  /*
4
  * Plugin Name: Featured Image From URL
5
+ * Description: Allows to use an external image as Featured Image of your post, page or WooCommerce product. And external images in WooCommerce Product Gallery.
6
+ * Version: 1.1.1
7
  * Author: Marcel Jacques Machado
8
  * Author URI: http://marceljm.com
9
  */
16
  if (is_admin()) {
17
  require_once( FIFU_ADMIN_DIR . '/meta-box.php' );
18
  require_once( FIFU_ADMIN_DIR . '/menu.php' );
19
+ require_once( FIFU_ADMIN_DIR . '/column.php' );
20
  }
21
 
22
  register_deactivation_hook( __FILE__, 'fifu_desactivate' );
readme.txt CHANGED
@@ -1,18 +1,22 @@
1
  === Plugin Name ===
2
  Contributors: marceljm
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG
4
- Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, flickr, woocommerce, product image, product gallery, product, gallery
5
  Requires at least: 4.0
6
  Tested up to: 4.4
7
  Stable tag: 4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
- Allows you to use an external image as Featured Image of your post, page or WooCommerce product. And now it's possible to use external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server).
12
 
13
  == Description ==
14
 
15
- Allows you to use an external image (from Flickr, Picasa, Amazon S3, anywhere etc) as Featured Image of your post, page or WooCommerce product. And now it's possible to use external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server).
 
 
 
 
16
 
17
  == Installation ==
18
 
@@ -51,26 +55,30 @@ Allows you to use an external image (from Flickr, Picasa, Amazon S3, anywhere et
51
 
52
  * The external image has priority in this case and the internal image won't be shown.
53
 
54
- = Why aren't the external images showing in my site?
55
 
56
  * Because your theme is nonstandard. For US$ 50,00, I can analyse your theme code and make the required changes.
57
 
58
- = How to integrate WooCommerce and Featured Image From URL?
59
 
60
  * There is a toggle (on/off) in Featured Image From URL settings. When enabled, a shell script is executed to overwrite some code lines from WooCommerce plugin. Otherwise, the changes are undone.
61
 
62
- = What happens to the WooCommerce plugin if I deactivate Featured Image From URL?
63
 
64
  * When the plugin is deactivated, all the changes done by Featured Image From URL in WooCommerce code are undone.
65
 
66
- = Why WooCommerce integration isn't working/possible?
67
 
68
  * Because the integration script just work on a Linux server.
69
 
70
- = Why aren't my external images in WooCommerce Product Gallery being saved?
71
 
72
  * Because you are not filling the alt attribute field. It's required by WooCommerce.
73
 
 
 
 
 
74
  == Screenshots ==
75
 
76
  1. This plugin allows you to use an external image as Featured Image of your pages. Just fill the URL field with the image address and click on preview button.
@@ -81,35 +89,41 @@ Allows you to use an external image (from Flickr, Picasa, Amazon S3, anywhere et
81
 
82
  4. The external image will be displayed when someone shares your page on social networks.
83
 
84
- 5. Besides that, this plugin allows you to use an external image as Featured Image of your posts. Just fill the URL field with the image address and click on preview button.
85
 
86
- 6. If the URL is correct, the image preview will be shown. Then you can define the image title, filling the ALT field.
87
 
88
- 7. The external image will be displayed in your post gallery.
89
 
90
- 8. The external image will be displayed in your post.
91
 
92
- 9. The external image will be displayed when someone shares your post on social networks.
93
 
94
- 10. Moreover, you can integrate this plugin to WooCommerce. Just access Featured Image From URL settings and enable that. Then a shell script will be executed to overwrite some code lines from WooCommerce plugin. But don't worry about that, because moving the toggle to off will undone the changes. Unfortunatelly, the integration requires your site be running in a Linux server. So, if the toggle didn't appear, it's because your server uses a different system.
95
 
96
- 11. Now you can use an external image as Featured Image of your WooCommerce products. Just fill the URL field with the image address and click on preview button.
97
 
98
- 12. If the URL is correct, the image preview will be shown. Then you can define the image title, filling the ALT field.
99
 
100
- 13. It's also possible to use external images in the WooCommerce Product Gallery. Fill an URL field with the image address and click on preview button.
101
 
102
- 14. If the URL is correct, the image preview will be shown. Then you must define the image title, filling the ALT field.
103
 
104
- 15. And if you have more images, just fill the others URL fields with the image address and click on preview button.
105
 
106
  16. If the URL is correct, the image preview will be shown. Then you must define the image title, filling the ALT field.
107
 
108
- 17. The external images will be displayed on your product.
 
 
109
 
110
- 18. The same effects of the internal featured image will work for your external featured image.
111
 
112
- 19. The same effects of internal images will work for your external images in the product gallery.
 
 
 
 
113
 
114
  == Changelog ==
115
 
@@ -125,6 +139,9 @@ Allows you to use an external image (from Flickr, Picasa, Amazon S3, anywhere et
125
  = 1.1 =
126
  * Now it's possible to use external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server).
127
 
 
 
 
128
  == Upgrade Notice ==
129
 
130
  = 1.0 =
@@ -138,3 +155,6 @@ Allows you to use an external image (from Flickr, Picasa, Amazon S3, anywhere et
138
 
139
  = 1.1 =
140
  * Now it's possible to use until 10 external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server). Go to Featured Image From URL settings to enable that.
 
 
 
1
  === Plugin Name ===
2
  Contributors: marceljm
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8BLDLZ3HDBGQG
4
+ Tags: featured image, external featured image, featured image from url, url featured image, featured, image, external, url, flickr, woocommerce, product image, product gallery, product, gallery, column, list, page, post, all
5
  Requires at least: 4.0
6
  Tested up to: 4.4
7
  Stable tag: 4.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
11
+ Allows to use an external image as Featured Image of your post, page or WooCommerce product. And external images in WooCommerce Product Gallery.
12
 
13
  == Description ==
14
 
15
+ Allows you to use an external image (from Flickr, Picasa, Amazon S3, anywhere etc) as Featured Image of your post, page or WooCommerce product.
16
+
17
+ It's also possible to use external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server).
18
+
19
+ And a new functionality was added in this last version: now, when you access "All Posts", "All Pages" or "Products" in admin menu, the Featured Images (internal or external) will be shown in a new column.
20
 
21
  == Installation ==
22
 
55
 
56
  * The external image has priority in this case and the internal image won't be shown.
57
 
58
+ = Why aren't the external images showing in my site? =
59
 
60
  * Because your theme is nonstandard. For US$ 50,00, I can analyse your theme code and make the required changes.
61
 
62
+ = How to integrate WooCommerce and Featured Image From URL? =
63
 
64
  * There is a toggle (on/off) in Featured Image From URL settings. When enabled, a shell script is executed to overwrite some code lines from WooCommerce plugin. Otherwise, the changes are undone.
65
 
66
+ = What happens to the WooCommerce plugin if I deactivate Featured Image From URL? =
67
 
68
  * When the plugin is deactivated, all the changes done by Featured Image From URL in WooCommerce code are undone.
69
 
70
+ = Why WooCommerce integration isn't working/possible? =
71
 
72
  * Because the integration script just work on a Linux server.
73
 
74
+ = Why aren't my external images in WooCommerce Product Gallery being saved? =
75
 
76
  * Because you are not filling the alt attribute field. It's required by WooCommerce.
77
 
78
+ = When accessing "All Pages", "All Posts" or "Products" in admin menu, how can I enable or disable "Featured Image" column? =
79
+
80
+ * Just click on "Screen Options", and check or uncheck "Featured Image".
81
+
82
  == Screenshots ==
83
 
84
  1. This plugin allows you to use an external image as Featured Image of your pages. Just fill the URL field with the image address and click on preview button.
89
 
90
  4. The external image will be displayed when someone shares your page on social networks.
91
 
92
+ 5. The external image will be displayed in the list of Pages.
93
 
94
+ 6. Besides that, this plugin allows you to use an external image as Featured Image of your posts. Just fill the URL field with the image address and click on preview button.
95
 
96
+ 7. If the URL is correct, the image preview will be shown. Then you can define the image title, filling the ALT field.
97
 
98
+ 8. The external image will be displayed in your post gallery.
99
 
100
+ 9. The external image will be displayed in your post.
101
 
102
+ 10. The external image will be displayed when someone shares your post on social networks.
103
 
104
+ 11. The external image will be displayed in the list of Posts.
105
 
106
+ 12. Moreover, you can integrate this plugin to WooCommerce. Just access Featured Image From URL settings and enable that. Then a shell script will be executed to overwrite some code lines from WooCommerce plugin. But don't worry about that, because moving the toggle to off will undone the changes. Unfortunatelly, the integration requires your site be running in a Linux server. So, if the toggle didn't appear, it's because your server uses a different system.
107
 
108
+ 13. Now you can use an external image as Featured Image of your WooCommerce products. Just fill the URL field with the image address and click on preview button.
109
 
110
+ 14. If the URL is correct, the image preview will be shown. Then you can define the image title, filling the ALT field.
111
 
112
+ 15. It's also possible to use external images in the WooCommerce Product Gallery. Fill an URL field with the image address and click on preview button.
113
 
114
  16. If the URL is correct, the image preview will be shown. Then you must define the image title, filling the ALT field.
115
 
116
+ 17. And if you have more images, just fill the others URL fields with the image address and click on preview button.
117
+
118
+ 18. If the URL is correct, the image preview will be shown. Then you must define the image title, filling the ALT field.
119
 
120
+ 19. The external images will be displayed on your product.
121
 
122
+ 20. The same effects of the internal featured image will work for your external featured image.
123
+
124
+ 21. The same effects of internal images will work for your external images in the product gallery.
125
+
126
+ 22. The external image will be displayed in the list of Products.
127
 
128
  == Changelog ==
129
 
139
  = 1.1 =
140
  * Now it's possible to use external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server).
141
 
142
+ = 1.1.1 =
143
+ * Now, when you access "All Posts", "All Pages" or "Products" in admin menu, the Featured Images (internal or external) will be shown in a new column.
144
+
145
  == Upgrade Notice ==
146
 
147
  = 1.0 =
155
 
156
  = 1.1 =
157
  * Now it's possible to use until 10 external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server). Go to Featured Image From URL settings to enable that.
158
+
159
+ = 1.1.1 =
160
+ * Now, when you access "All Posts", "All Pages" or "Products" in admin menu, the Featured Images (internal or external) will be shown in a new column. Moreover, now it's possible to use until 10 external images in the WooCommerce Product Gallery (since your site is hosted on a Linux server). Go to Featured Image From URL settings to enable that.