Giter VIP home page Giter VIP logo

joostdekeijzer / wp_network_shared_media Goto Github PK

View Code? Open in Web Editor NEW
45.0 9.0 17.0 263 KB

I'm sorry to have to inform you that this plugin is unsupported and therefore deprecated. It was build just before the new javascript Mediabrowser was introduced and rebuilding this plugin to support this is a complete overhaul. There are some alternatives available, See links below. Thanks for using this plugin!

PHP 100.00%
wordpress wordpress-plugin

wp_network_shared_media's Introduction

=== Network Shared Media (deprecated/unsupported) ===
Contributors: joostdekeijzer
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&[email protected]&item_name=network-shared-media+WordPress+plugin&item_number=Joost+de+Keijzer&currency_code=EUR
Tags: multisite, network, wpmu, media, image, photo, picture, mp3, video, integration
Requires at least: 3.5
Tested up to: 5.0
Stable tag: 0.12
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Allows you to use media from other blogs in a Multisite environment.

== Description ==

=== Deprecated ===

I'm sorry to have to inform you that this plugin is unsupported and therefore deprecated.

It was build just before the new javascript Mediabrowser was introduced and rebuilding this plugin to support this is a complete overhaul.

There are some alternatives available, as is posted in https://wordpress.org/support/topic/no-support-try-network-media-library/
Also see https://github.com/humanmade/network-media-library#history and https://github.com/humanmade/network-media-library#alternatives for options.

Thanks for using this plugin!

=== Original description ===

This plugin adds a new tab to the "Add Media" window, allowing you to access media in other blogs.

It can be very helpful when you use [Multisite Language Switcher](http://wordpress.org/extend/plugins/multisite-language-switcher/) plugin for setting up a multilingual site as it prevents the editors from having to upload images twice.

Based on a blogpost by [Aaron Eaton](http://blog.channeleaton.com/sharing-media-libraries-across-network-sites).

Also see https://github.com/joostdekeijzer/wp_network_shared_media

== Installation ==

* Download the plugin
* Uncompress it with your preferred unzip program
* Copy the entire directory in your plugin directory of your WordPress blog (/wp-content/plugins)
* Network-activate the plugin
* Edit a post or create a new one
* Open the Add Media popup -> see the new tab!

== Upgrade Notice ==

* I've dropped support for WordPress versions below 3.5
* There is an issue with the "edit image" functionality in the post editor of WordPress 3.9, please see the FAQ

== Frequently Asked Questions ==

= Editing an image in WordPress 3.9 shows the wrong image! =

Yes, I know :-(

Starting from WordPress 3.9, when editing an image in the post editor, the original image data is retrieved from the server using only the image id. Using NSM, this will be the ID from a different blog. When, by coincidence, the current blog also has an attachment with that ID, the information for that image is displayed.

v0.10.0 of my plugin has a fix for newly inserted images, but old embeds will not be changed (please see [this forum post](https://wordpress.org/support/topic/using-wordpress-39-editing-an-image-shows-the-wrong-information) for more info).

If you encounter this, the most straight-forward solution is to:

1. Cancel the image edit
2. Go to the text view of the post
3. When your image has a caption, clear the id attribute of the caption shortcode
4. Also remove the `wp-image-<id>` and `wp-att-<id>` classes from the image tag
5. Return to Visual mode and try and edit the image again

Sorry for the inconvenience...

= About Permissions =

This plugin depends on the global WordPress blog permissions for viewing and editing Media.

Only blogs where the user has 'upload_files' permission are shown in the Network Shared Media tab.

If a user doesn't have the 'upload_files' permission on the current (active) blog, the tab isn't shown at all since that user can't access the Add Media pop-up window.

= I still can't see the site listed! =

A site can have several attributes which can be set through /wp-admin/network/sites.php .

This plugin only shows sites which attributes are set as follows:

* Public: true
* Archived: false
* Spam: false
* Delete: false
* Mature: ignored

== Screenshots ==
1. New tab added to the Add Media popup window
2. The Network Shared Media tab lists the media per site
3. Show a selected image and "Insert into Post"

== Changelog ==

= 0.12 =
* Deprecated

= 0.11 =
* Removed media-upload.php file and the direct request for it. It was incompatible with setups where the plugins directory had been moved. Now, requests are done through /wp-admin/admin-ajax.php.
* Tested with WordPress 4.3

= 0.10.1 =
* Added German translation (by realloc)

= 0.10.0 =
* Changes all image/caption id's and id-dependent classnames to include `nsm-<site_id>-<id>` to circumvent WordPress 3.9 editor issues (see FAQ or [this forum post](https://wordpress.org/support/topic/using-wordpress-39-editing-an-image-shows-the-wrong-information))
* New "base" for the insertion code
* Supports Video and Audio shortcode insertion

= 0.9.6 =
* Bugfix where, after selecting an image, reopening the Media Browser would result in an empty screen.
* Tested with WordPress 3.8.

= 0.9.5 =
* Added translations for Spanish (es_ES by Juan Ignacio Rodriguez) and Serbo-Croatian (sr_RS by Borisa Djuraskovic). Thank you!
* Bugfix for newer WordPress where original media tabs would show.

= 0.9.4 =
* Minor bugfix for WP3.5 (remove the "Edit picture" button)

= 0.9.3 =
* Set is_admin() to true, fixing issues with Contact Form 7 (and possibly others)

= 0.9.2 =
* bugfix for cross-domain errors in "multiple domain" installations

= 0.9.1 =
* some speed improvements
* sorting of sites

= 0.9 =
* When many sites are available, the site-selection becomes a drop-down list (as suggested by SooBahkDo)
* Ignore "mature" site attribute
* tested with WP3.4RC

= 0.8 =
* fixed some embarrassing typos

= 0.7 =
* i18n (feel free to contact me for translations)
* Updated read-me
* Added screenshot

= 0.6 =
* fixed bug where restore_current_blog would give unexpected results (when number of sites > 2)
* checking for correct permissions: upload_files permission required for both the "active" site as the networked sites
* to reduce server load: choose blog to display media of (in stead of just showing them all)

= 0.5 =
* first public version

wp_network_shared_media's People

Contributors

joostdekeijzer avatar lloc 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp_network_shared_media's Issues

Blog groups/permissions

I would love to see the ability to put the blogs into groups so that some blogs could share their media with certain others, but not all sites. For example if you have a client with a few different sites that want to share media but not with other client sites.

[feature request] Featured image selection in 4.3.1

Featured image selection doesn't seem to work on 4.3.1 in either the master or featured-image-support branch.

Do you have any plans regarding the development of this feature?

btw. Thank you for your amazing work thus far.

Allow both Insert into Post and Featured Image

I'm trying out your version that adds Featured image support, and I noticed that the normal "Insert into Post" link has been removed.

Is it possible to have both the featured image and the normal "Insert into Post" link? If so, what's the best way to add the "Insert into Post" back?

Featured Image uploader

This doesn't seem to add the tab when selecting a featured image. Is this something that is possible?

Plugin shows all content types but no attachments

I run a multisite on WP 4.3.1.

When I open the "Network Shared Media" tab and select a site, I get a list of all pages, posts, menu items, etc. but no attachments / images.

When I filter for "Images", it changes nothing.

screen

Please let me know when you need any more information. Thanks!

Feature Request

This may be outside the scope of what you are trying to accomplish, but I would love to use one blog as a media library that all other blogs on the network can use.

I know I could hardcode the blog id into your code, but I don't have any idea how to prevent users from uploading new media. In other words, I want to use one blog as a graphics library so everyone has permission to view and insert the media. But I don't want anyone except the superadmin to be able to upload.

Featured image not shared WP 3.4.1

Hi,
I need to share media library on multisite.
Since your official WP plugin doesn't support featured image, I've tried this dev version.
But it doesn't seem to work with WP 3.4.1.
While I see the network shared media tab for content media, I can't see it for featured image.

Thanks,
Davide

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.