Giter Club home page Giter Club logo

external-media-without-import's Introduction

External Media without Import

By default, adding an image to the WordPress media library requires you to import or upload the image to the WordPress site, which means there must be a copy of the image file stored in the site. This plugin enables you to add an image stored in an external site to the media library by just adding a URL linking to the remote image address. In this way you can host the images in a dedicated server other than the WordPress site, and still be able to show them by various gallery plugins which only take images from the media library.

The plugin provides buttons and inputs in the 'Media' -> 'Add New' page, the media upload panel and a dedicated Add External Media without Import submenu page. Therefore you can either add an external media before (or after) editing any post or page, or in the process of editing a post or page without interrupting the editing process.

Installation

  1. Upload the plugin files to the /wp-content/plugins/external-media-without-import directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.

Then you can use the plugin to add external media without import.

Usage

  1. Click the 'Add New' button in the 'Media' -> 'Library' page, the media upload panel will show up, in which there's an 'Add External Media without Import' button. Click it.
  2. Or click the 'Add External Media without Import' submenu in the side bar.
  3. Fill in the URLs of the images you want to add. You can fill in multiple URLs, with each URL filled in one line.
  4. Click the 'Add' button, the remote images will be added.

Click 'Add External Media without Import' button in the media upload panel, the 'Add a media from URL' panel will appear:

Enter the URLs of the external media you'd like to add to the media library and click 'Add':

You can fill in multiple URLs, with each URL filled in one line:

You can also add an external media during the process of editing a post or page by clicking 'Add Media' -> 'Upload Files', and in the upload panel click 'Add External Media without Import'. The same input interface will appear.

Note that WordPress needs to know in advance the width and height of an image in order to correctly display it in the media library page and any post/page. In most cases, the plugin resolves these properties automatically without worrying you. But in rare cases, the plugin may fail to get the widths and heights of the images you specify. In that case, some input fields will show up and let you fill in the properties manually.

Changelog

Version 1.1.2 - 2018.12.2

Fix: external images added in WooCommerce Product gallery disappear when clicking Publish/Update.

Similar issues of other plugins may also by chance be fixed.

Detailed information of this issue:

zzxiang#10
https://wordpress.org/support/topic/product-gallery-image-not-working/

Version 1.1.1

Debug warnings are fixed.

Version 1.1

Multiple URL links can be added in batch to the media library, with one URL per line in the text box.

Version 1.0.2.1

Just changed the readme file, the changelog in previous readme file seems not work.

Version 1.0.2

Fixed XSS Security Vulnerabilities and bug with mime types including '+' such as 'image/svg+xml'.

Thank Mike Vastola.

Click to see detailed information of this bug.

Version 1.0.1

Fixed a bug which causes HTTP 500 - internal server error.

The error occurs in previous version when the plugin fails to get the image size and MIME type. The HTTP 500 error causes the plugin message not correctly displayed in the media upload panel. It also causes the Add External Media without Import page broken.

external-media-without-import's People

Contributors

ferrastas avatar janz93 avatar jarosz avatar mvastola avatar zzxiang avatar

Stargazers

 avatar

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.