How to?
-
I installed the plugin but it is not clear how to use it. How can I use an external URL as the media file and save it to the database like an uploaded media? How can I change the file of a media without creating a new media entry? Could you provide details?
-
All features provided by this plugin are optional. You have to enable it via the Settings > Media page. The features you are looking for are “URL media” and “Change media file”.
To add a new media from an external URL, open the media editor and select the “URL media” tab (works only with the previous version of WP Media Manager).
To change the file of a media, go to that media page from the library and scroll down the page. You will see a “Change media file” section with an upload button that lets you select a file from your hard drive.However, the version 1.0 of this plugin does not work with the new Media Manager that came with WordPress 3.5. Let me update the plugin version to make this work again.
I have updated the plugin to make the “URL media” feature compatible with WP 3.5 (and WP 3.6). As a bonus, you can now add a file pointing to an external URL directly from the Media Library > Add menu.
Please let me know if this solves your issue.
“URL media” doesn’t work for me.
After specifying URL and image name and click “Save” – nothing happened.
WP 3.6.1.Hi smel
Could you describe me How you use the plugin ? Do you go to a post or page, and then use the “Add media” button ? And then what do you do ?
When you mean “nothing happened”, you mean that the media management window closes itself, or you mean that clicking the button has no effect at all ?
Could you verify in the media Library (Medias main menu) if the image appears here ?Hi Fab1en,
Thanks for your rapid response.
In the “Setting” I enabled only “URL media” helper.
Then – “Media Library” – “Add New” – fill up “Insert from URL” field
by specifying full url path and image name (https://www.caminodesantiago.me/wp-content/uploads/dog.jpg) – click “Save”.
After that window that consists “Insert from URL” field closes itself without insertion anything into library.Could you try with a video file URL ? For example this one : https://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/sintel_trailer-1080p.mp4 (Sintel opensource movie trailer).
You should see it in the Media Library and be able to play it with the included mediaelement HTML5 player in the media edition page.If this does not work, then try to enable debug messages by inserting the following lines in your wp-config.php :
/**
* For developers: WordPress debugging mode.
*
* Change this to true to enable the display of notices during development.
* It is strongly recommended that plugin and theme developers use WP_DEBUG
* in their development environments.
*/
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);// Disable display of errors and warnings
define('WP_DEBUG_DISPLAY', false);Retry to insert the image, then look at a file named
debug.log
in thewp-content
directory to see if any error has been logged.[29-Oct-2013 14:35:21 UTC] WordPress database error Field ‘post_content’ doesn’t have a default value for query INSERT INTO
wp_posts
(post_author
,post_date
,post_date_gmt
,post_content_filtered
,post_title
,post_excerpt
,post_status
,post_type
,comment_status
,ping_status
,post_password
,post_name
,to_ping
,pinged
,post_modified
,post_modified_gmt
,post_parent
,menu_order
,post_mime_type
,guid
) VALUES (1,’2013-10-29 10:35:21′,’2013-10-29 14:35:21′,”,’test’,”,’inherit’,’attachment’,’open’,’open’,”,’test’,”,”,’2013-10-29 10:35:21′,’2013-10-29 14:35:21′,0,0,’video/mp4′,’https://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/sintel_trailer-1080p.mp4′) made by require_once(‘C:\inetpub\wwwroot\Wordpress_RE\wp-admin\admin.php’), do_action(‘admin_init’), call_user_func_array, mediahelper_url_media_manage_new_file, wp_insert_attachmentCould you try the updated version I have put on github ? Please try it with a video file url I mentioned in the previous post, and tell me if it solves the issue.
Thanks
Hi, I installed latest WP 6.7.1 and your updated version.
Now I can insert into media library linked picture, that appears in the library like gray thumbnail.
Linked video file you provided shows player icon.I can’t insert linked image as featured image to any page (it just ignore it). When I try to attach it to any page (the most important for me) – nothing happened.
View option for your video shows the page with title name and text link.
Click on to the text link gives me two option : save file or open it with
associated program.
View option for linked image shows just page with no image, no title name on it.The same thing happens to me. Linking external images does not work. Linking external videos seems to work well.
Since there has been no response to this for 3 months I am guessing this is no longer supported. I will try to play around with the source code to see if I can figure out what wrong an fix it.
Sorry, I did not find the time to update this plugin to make it compatible with last WP version.
If you can do it Bluejay256, please fork the github repo and make a pull request and I will integrate your changes.If you add the linked code to the file “url_media.php” this plugin will work with 3.8.1.
I am sure there is a much better way to do this, but the modifications at least work for me. The pixel size modification will most likely not work with all templates, so your mileage may vary.
- The topic ‘How to?’ is closed to new replies.