Giter VIP home page Giter VIP logo

iamdharmesh / featured-image-by-url Goto Github PK

View Code? Open in Web Editor NEW
33.0 6.0 12.0 1.54 MB

This plugin allows to use an external URL Images as Featured Image for your post, page & custom post types like WooCommerce Product. Includes support for Product Gallery (WooCommerce).

Home Page: https://wordpress.org/plugins/featured-image-by-url/

License: GNU General Public License v2.0

CSS 5.26% PHP 92.94% JavaScript 1.80%
wordpress wordpress-plugin woocommerce image featured-image image-url hacktoberfest

featured-image-by-url's Introduction

Knawat

Join the chat at https://gitter.im/Knawat/Lobby

Description

Welcome to the Knawat Featured Image by URL Plugin repository on GitHub. Here you can browse the source, look at open issues and keep track of development.

If you are not a developer, please use the Knawat plugin page on WordPress.org.

Deployment

We use 10up/action-wordpress-plugin-deploy Github Action for auto deployment to WordPress.

Contributing to Knawat

If you have a patch or have stumbled upon an issue with Knawat WooCommerce plugin core, you can contribute this back to the code. Please create a pull request.

Check also

featured-image-by-url's People

Contributors

dharmeshtatva avatar esl4m avatar harikrut avatar hazemkhaled avatar iamdharmesh avatar super-saiyan-mohamed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

featured-image-by-url's Issues

Featured image causing Google Ads to disapprove as malicious link

Hello,
We are struggling with this issue for over 1 month now and i hope you are able to assist. We installed the Knawat dropshipping plugin including featured image and xlanguage plugins into our Woocommerce store. After adding some products we noticed that our Google Ads stopped and after several weekes communicating with Google Support, we received the link that was seen by them as suspicious, see below:

(https://z2v5k2j8.cdn.knwt.co/2018/07/1474075133PA%C3%87ALI-KORSEL%C4%B0-%C3%87ORAP-740x740.jpg)

The link in itself is an image of one of the products we hosted in our shop. To troubleshoot we deleted all products and images, scanned our site through several external tools as Virus Total, installed malware tools and scanned all files but everything returned clean. Despite removing all images and products including the removal of the Knawat plugin, we still receive from Google the same reason for denial of our Ads. Is there any way you can assist it would be much appreciated. Somehowe this link is still embedded in our site although we cleaned all files, database etc.

Thank you in advance for your reply and suggestion

Can't add images via PHP

Hey guys,

is there a pre-build function to add images via PHP?
Just adding images URLs to the database is clearly not working.
I can't figure out how to insert the Featured Image or Gallery URLs to this special WooCommerce-scheme ๐Ÿ˜ข

Gallery on Products/Variations

Hi. Product/Variations doesn't have gallery? Or i doing something wrong? de post work on product, creates a gallery and a feature image . But doesn't work on variations.

Thank you!

Import/Export Featured Images by URL via CSV

Hi there,

Your plugin works really fine in my template, I'm really thankful for it. I'd like to suggest one improvement: it would be great if we could import/export those links via CSV. Currently, we can only add those links manually so if we have thousands of images it's difficult to process them.

Thanks again!

variation images?

Hi

Any plans to add functionality to allow external images for variations?

Any help is much appreciated.

Wyatt

Send MetaData via api

hi i can not send url link by api
example :
metadata aded :
_knawatfibu_wcgallary = https://text.com/image.jpg?x-oss-process=image/resize,h_1600,https://text.com/image.jpg?x-oss-process=image/resize,h_1600
after submitting
splitted ',' links for example , it shows incorrectly

image one = https://text.com/image.jpg?x-oss-process=image/resize
image two = h_1600
image three = https://text.com/image.jpg?x-oss-process=image/resize
image four = h_1600
because in the event that :
image one = https://text.com/image.jpg?x-oss-process=image/resize,h_1600

and special thanks for this plugin

Variation Image Not showing

The variation image is not showing. When I go to the product the featured image shows, but when I click on a variation the featured image continues to be shown. On the example from the link below, the "Black/White Plaid" option will work as I setup an actual image for that option just to show that it would work when you did it the default way. When using the plugin way (by URL) it does not work.

Link: http://probitasstore.com/valleyseniorliving/product/port-authority-ultra-plush-blanket/

Desktop ok, mobile no picture gives error

Hello,
First of all, thank you very much for the plugin.
Ver. 1.1.7
Error 1: Desktop ok, no mobile picture error.
Error 2: Preview does not come even if you type the url on the number of product additions, it is necessary to save and open again.

anatoliashop_img_on_01
anatoliashop com_urun_goz-ve-dudak-makyaj-temizleyicisi-artistry_(iPhone X) (1)
Thanks

XML files with 10k images -> automatically include with php function as featured image ?

Is your feature request related to a problem? Please describe.
I have several XML files with over 10k images. From Instagram to Twitter. Everything is there. However, I am missing a function with WP all import. Can I include something there maybe?
Maybe could generate shortcodes.
I can not go into each individual post and manually enter the links by hand.

Describe the solution you'd like
I import my XML files with WP All import plugin.
There is a possibility to download the images and insert them as featured image. There is a section below where you can add a php function. So that it automatically creates the images as a featured image. Without downloading them.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Shopz.io support

The plugin not working with Shopz.io, everything else working except images

img_6d8125972194-1

A new warning message for woocommerce Knawat plugin users

A new warning message for woocommerce Knawat plugin users

Notice: wc_rest_system_status_controller was called incorrectly. Classes that extend the WooCommerce/WordPress REST API should only be loaded during the rest_api_init action, or should call WC()->api->rest_api_includes() manually. Backtrace: require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), WP_Hook->do_action, WP_Hook->apply_filters, Knawat_Dropshipping_Woocommerce->init_includes, require_once('/plugins/dropshipping-woocommerce/includes/api/class-dropshipping-woocommerce-handshake.php'), class_exists, spl_autoload_call, WC_Autoloader->autoload, wc_doing_it_wrong Please see Debugging in WordPress for more information. (This message was added in version 3.6.) in /home/abbalac1/public_html/wp-includes/functions.php on line 4667

An internet search reveals that another plugin with the same error was updated to resolve the issue.

API update and Facebook for Woocommerce image (solved)

It happened that in Woocommerce all the product images were seen correctly from this plugin, but in the products synchronized with the Facebook store, the images were not displayed.

I found that if I completed (with any image) the "Product Image" field, then the Facebook for Woocommerce plugin update and publish the image refered by this plugin (featured-image-by-url).

So I've used dummy url from product placeholder image as image src:

"images": [
{"src":"https://myshop.com/wp-content/uploads/dummy.png"}
],
"meta_data": [{"key": "_knawatfibu_url", "value":"https://mydam.com/uploads/productimage.png"}
]

Add image URL to product variation

Hi!

Great plugin! It save me a lot of time!

I got a doubt about how to associate an image url to a product variation.

When I edit the featured image of the variation the button prompt the wordpress media uploader, but i don't found the field to insert the URL.

Thanks!

image

Improve UI for product gallery images.

Improvement needed in UI for product gallery images. Currently its looks like below screenshot.

product_gallery

For 1-2 gallery images its fine but for more than 3 images its not user friendly.

url not visible in existing featured image by url

When you are editing an existing Featured Image by Url in the Woocommerce product edit screen, the url where the image comes from is not displayed. You can see it if you right click and paste the image location into a text editor, or view the object properties in your browser, but shouldn't it be editable text next to the image preview rather than having to remove the image and re-enter the whole url?

Keep loading when product update with more than 1 images in gallery and finally 500 error

Describe the bug
Keep loading when product update with more than 1 images in gallery, and finally 500 error

To Reproduce
Steps to reproduce the behavior:

  1. Go to product edit page and update it with more than 1 images in gallery
  2. Click update, then keep loading, finally 500 error.

Expected behavior
Should be updated shortly.

Screenshots
This request takes too long to process, it is timed out by the server. If it should not be timed out, please contact administrator of this web site to increase 'Connection Timeout'.

Enviroment (please complete the following information):

  • Plugin Version 1.1.7
  • WordPress Version [e.g. 5.7.2
  • WooCommerce Version 5.3.0

Get Hover image for WooCommerce Grid in Flatsome theme is not working

Describe the bug

  • I'm using a Flatsome theme. It has a feature to display a second product image when the mouse hover.
  • I've tried to debug the function in the Flatsome theme. It's will get gallery Ids and get an attachment URL to display the second product image. When using this plugin it's can't get the second image in gallery because function wp_get_attachment_url from a fake attachment id.

So, does anyone has a solution for this issue? Can I override this function to get the feature display second image working?


function flatsome_woocommerce_get_alt_product_thumbnail() {
		$hover_style = get_theme_mod( 'product_hover', 'fade_in_back' );
		if ( $hover_style !== 'fade_in_back' && $hover_style !== 'zoom_in' ) {
			return;
		}

		global $product;
		$attachment_ids = $product->get_gallery_image_ids();
		$class          = 'show-on-hover absolute fill hide-for-small back-image';
		if ( $hover_style == 'zoom_in' ) {
			$class .= $class . ' hover-zoom';
		}

		if ( $attachment_ids ) {
			$loop = 0;
			foreach ( $attachment_ids as $attachment_id ) {
				$image_link = wp_get_attachment_url( $attachment_id );
				if ( ! $image_link ) {
					continue;
				}
				$loop ++;
				echo apply_filters( 'flatsome_woocommerce_get_alt_product_thumbnail',
					wp_get_attachment_image( $attachment_id, 'woocommerce_thumbnail', false, array( 'class' => $class ) ) );
				if ( $loop == 1 ) {
					break;
				}
			}
		}
	}


Environment (please complete the following information):

Plugin Version 1.1.7
WordPress Version 5.8.0
WooCommerce Version 5.6.0
Flatsome Version 3.14.2

Meta column not exporting with WC export to CSV

I am hoping to provide a sample CSV in excel for a client for them to populate with all their products, but their images are hosted at a separate DAM and I do not want them imported to the Wordpress media library. I love that this plugin works like it does, but am lost on how to properly setup the information so that the images do not actually import but remain linked to their path when imported. Thank you

Woocommerce Featured Image Upload .csv

Im using the plugin and it works fantastic adding urls manually in product edit page. I would like to add a featured image for each of my product(s) through woocommerce .csv import tool. I created a corresponding column called images and listed a url for each product in my .csv file but they are not importing.... what am I doing wrong?

Check plugin with Tide API and fix issues

WordPress has new API for check plugin comparability over PHP versions and WP-Coding-Standards and based on that plugins get rating on wp.org for more info https://wptide.org/. Also plugin with high coding standard rating get high ranking in repository search results.

Resized image is static

Hello,
I checked Display Resized Images to avoid big image to show under some context (in Service list).
I have an image by url which changes very frequently. The image url is always the same, but the content updates frequently, once 10 minutes. If I check Display Resized Images a static thumbnail cache is created forever.
Is there a way to dynamically change the resized image accordingly when the main feature image changes?

programmatically add product

Hello there,

I have a script that programmatically adds products from a xml, now i would like to incorporate your plugin to add the external images and i use the following script

function Generate_Image( $post_id, $image_url, $flag ){ if( $flag == 0){ update_post_meta($post_id,'_knawatfibu_url',$image_url); } if( $flag == 1 ){ # Add gallery image to product $attach_id_array = get_post_meta($post_id,'_knawatfibu_wcgallary', true); $attach_id_array .= ','.$image_url; update_post_meta($post_id,'_knawatfibu_wcgallary',$attach_id_array); } }

But it does not seem to add the image to the product meta,

Could you please help me?

Thanks!

Does this override the has_post_thumbnail() or set_post_thumbnail()

I have a few hooks that use those functions to generate the featured image and I am wondering if I can use the same hooks to send the code to insert things in the functions.php in the theme. Can I use that or should i use another function to check if it has a thumbnail?

No more images in cart after upgrade to WC 3.5

Hi,
After an upgrade to WooCommerce 3.5.x the thumbnail disappeared from the cart page.
Looks like the WP filter isn't working anymore. I did a rollback to WC version 3.4.7 and the images are back again. Any idea? Someone else with the same issue?

Product images not appearing, Placeholder only.

Website is RocketRoseArt.com. Theme is the Woocommerce Storefront theme.
After a recent update, I think, images stopped appearing and all I see is the placeholder image.
Deactivated and reactivated. No change. Checked links and they are fine.
Products are now inactive as they don't look very professional without an image.

Featured image on woocommerce product is not showing

Hello, Featured image on woocommerce product is not showing, product image gallery is working good.
In the admin back end I can see all pictures, product gallery and featured image.
Any idea what the problem could be?
Thank you
JP

How can add the "featured-image-by-url" in a post using the rest API?

Hi,

I tried to create a new post using the REST API, but the "featured-image-by-url" doesn't not display.

I tried different endpoint like _knawatfibu_url, featured_image_urls, jetpack_featured_media_url but I had not luck.
I installed also the plugin "Rest API Custom Fields" that used to enable the custom field '_knawatfibu_url' under the 'post' section, but the image did not show up.

Below an example of code I was using.

imageURL = 'https://upload.wikimedia.org/wikipedia/it/f/fc/Pippo_Disney.png'

content= {
    "title": 'Hi',
    "content": 'My Content',
    "date": '2020-08-17T10:16:34',
    "featured_image": , # IMPORTANT
    '_knawatfibu_url': imageURL ,
    'featured_image_urls': imageURL ,
    'jetpack_featured_media_url': imageURL ,

}

thanks in advance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.