Linux 软件免费装
Banner图

Media Vault

开发者 Max GJP
更新时间 2014年2月19日 00:48
PHP版本: 3.5.0 及以上
WordPress版本: 3.8.1
版权: GPLv3 or later
版权网址: 版权信息

标签

links security media shortcode images private multisite flexible files documents simple attachments downloads protection uploads powerful download links

下载

0.8.10 0.6 0.7 0.7.1 0.8 0.8.11 0.8.12 0.8.5 0.8.6 0.8.7 0.8.8 0.8.9

详情介绍:

Protected Attachment Files Media Vault cordons off a section of your WordPress uploads folder and secures it, protecting all files within by passing requests for them through a powerful, flexible and completely customizable set of permission checks. After activating the plugin, to protect attachment files with Media Vault you can: By default the only permission check that the plugin does on media files is that the user requesting them be logged in. You can change this default behavior from the 'Media Settings' page in the 'Settings' menu of the WordPress Admin. You can also change the restrictions set on attachments on an individual basis by means of either the Media Vault metabox on the 'Edit Media' page or the Media Vault Protection Settings fields in the new Media Modal. You can also write your own custom restrictions using the mgjp_mv_add_permission() function. See this support question for more details. Safe Download Links Creating a cross-browser compatible download link for a file is a harder task than might be expected. Media Vault handles this for you, and it does so while preserving all the file security features discussed earlier like blocking downloads to people who should not have access to the file. The download links are available through a simple shortcode that you can use in your post/page editor screen: [mv_dl_links ids="1,2,3"] where 'ids' are the comma separated list of attachment ids you would like to make available for download in the list. Note: Plugin comes with styles ready for WordPress 3.8+! Note: Now supports WordPress MultiSite!

安装:

Install Through your Blog's Admin This sometimes does not to work on localhost, so if you're running your site off your own computer it's simpler to use the second method.
  1. Go to the 'Plugins' menu in WordPress and select 'Add New'.
  2. Type 'Media Vault' in the Search Box and press the 'Search' button.
  3. When you find 'Media Vault', click 'Install Now' and after reading it, click 'ok' on the little alert that pops up.
  4. When the plugin finishes installing, simply click 'Activate Now'.
Downloading from WordPress.org
  1. Clicking the big 'Download' button on the right on this page (wordpress.org/plugins/media-vault/) will download the plugin's zip folder (mediavault.zip).
  2. Upload this zip folder to your server; to the /wp-content/plugins/ directory of the site you wish to install the plugin on.
  3. Extract the contents of the zip. Once it is done you can delete the mediavault.zip file if you wish.
  4. Activate the plugin through the 'Plugins' menu in WordPress.
Once you have Media Vault activated and fully enabled don't forget to go and check out the plugin's settings on the 'Media Settings' page under the admin 'Settings' menu.

屏幕截图:

  • The WordPress Media Upload page with Media Vault file protection activated.
  • An example of the access denied prompt produced by a custom file access restriction implemented very simply using Media Vault.
  • The WordPress Media Upload page with Media Vault file protection activated (in WP mp6 & WP 3.8+)

升级注意事项:

0.8.12 fixed bug in mv-file-handler.php causing php Notice and corrupted files. Big thanks to user ikivanov for pointing it out and providing the solution! 0.8.11 fixed bug in mv-metaboxes.php causing php Notice. Thank you user ikivanov for pointing it out! 0.8.10 fixed typo causing php error in mv-extra-activation-steps.php. Thank you user wwn2013 for pointing it out! 0.8.9 Added Attachment Edit Fields to the new Media Modal and fixed visual bug with IE8 0.8.8 fixed bug in mv-file-handler.php that allowed files to be viewed in the protected folder when 'Save uploads in year/month folders' was not selected. Thanks to WayneHarris for pointing the issue out. 0.8.7 added a body class to the WP admin to let Media Vault know to use the new 3.8+ styles 0.8.6 fixed code that required php 5.4 and above, to be compatible with older versions of php 0.8.5 The WPMU update - more organized code, now 90% more optimized to run fine both on single-site installs as well as multisite installs. 0.8 The Update update - good amount of bugfixing, and streamlining of code. Added a class to handle fluid plugin updates and some functions to allow for image placeholders to appear in the place of restricted images. 0.7.1 The Metabox - added a Media Vault metabox to the attachment editor screen to manage protection meta + bugfixing 0.7 Version 0.7 includes minor remastering of the permission checking code to address protected attachment access from within the WordPress backend. It is strongly recommended that you upgrade from version 0.6. 0.6 This is the original release version.

常见问题:

How do I toggle File Protection on an existing Attachment?

You have two options. If you only want to toggle File Protection on a single attachment, you can do it directly from the attachment's Edit page. In the 'Media Vault Settings' metabox in the right column, you can toggle protection by clicking the button that will either say 'Add to Protected' or 'Remove from Protected'. Remember to click 'Update' to save the changes you have made. If you want to toggle File Protection on multiple attachments, the plugin comes with two bulk actions that can be performed in the Media Library page in the WordPress Admin. On the Media Library page select the attachment or attachments you would like to manipulate by ticking the box next to their title. Then from the 'bulk options' dropdown select either the 'Add to Protected' or 'Remove from Protected' option and click the 'Apply' button next to the dropdown. You can verify that the action took effect by looking at the Media Vault column in the Media Library list table. It will display when an attachment's files are protected as well as the permissions set on the particular attachment.

Can files uploaded from the front-end be automatically protected?

Yes they can, see this support question for more details!

How are unprotected files handled? How does this plugin work?

This question was recently asked and answered in this support thread, check it out!

更新日志:

0.8.12 fixed bug in mv-file-handler.php causing php Notice and corrupted files. Big thanks to user ikivanov for pointing it out and providing the solution! 0.8.11 0.8.10 Fixed typo causing php error in mv-extra-activation-steps.php. Thank you user wwn2013 for pointing it out! 0.8.9 0.8.8 fixed bug in mv-file-handler.php that allowed files to be viewed in the protected folder when 'Save uploads in year/month folders' was not selected. Thanks to WayneHarris for pointing the issue out. 0.8.7 added a body class to the WP admin to let Media Vault know to use the new 3.8+ styles 0.8.6 fixed code that required php 5.4 and above, to be compatible with older versions of php 0.8.5 0.8 0.7.1 The Metabox - added a Media Vault metabox to the attachment editor screen to manage protection meta + bugfixing on the bulk actions script 0.7 Minor remastering of permission checking code to address protected attachment access from within the WordPress backend. Highly recommended to immediately update. 0.6 Initial Release.