這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

Media Organiser

外掛說明

This plugin allows attachments to be organised into folders on the server.

Attachments are physically moved into folders, and all references to them in pages and posts are updated accordingly.

Media Organiser was originally forked from version 1.4.2 of Media File Manager by Atsushi Ueda, and has been largely rewritten since then. It does not yet have the ‘media selector’ function of Media File Manager — in fact, the ‘new’ interface to choosing media is so poorly documented that I can’t work out how to use it. Any ideas?

There is also a tool on the plugin’s Settings page which allows attachments
whose files are missing from the file system to be tidied up.

Requirements

  • MySQL database engine that does transactions, otherwise things will get out of whack of something goes wrong when renaming files. Information on changing engines can be found on easyengine.io. The tables that are affected are wp_posts and wp_postmeta.

Acknowledgements

Icons adapted from github.com/iconic/open-iconic/.

Known issues

  • May not work on sites hosted on a Windows server — haven’t checked the use of directory separators yet.
  • Does database transactions — so requires a database engine that can do commit/rollback, such as InnoDB.
  • Does its best to make changes atomic, but things could go wrong if something changes in the middle of renaming files.
  • No internationalization (yet).
  • Doesn’t check if posts are already locked for editing before making changes to them, so it’s best to move and rename attachments when you’re sure that no-one else is working on any posts or pages that use those attachments.

安裝方式

Install the plugin in the usual way and activate it.

Administrators should get permission to use the plug-in automatically. Go to Settings / Media Organiser to give other roles permission to use it if required.

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈Media Organiser〉的開發相關工作。

參與者

將〈Media Organiser〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

0.1.6

  • Fixed an obscure bug by giving global variables even longer names. I really
    need to avoid globals.
  • Tested with WordPress 5.0.3.

0.1.5

  • Added a feature on the Settings pages to allow any post attachments with
    missing files to be deleted.

0.1.4

  • Tested with WordPress 5.0.1.

0.1.3

  • Tested with WordPress 4.9.1.

0.1.2

  • Added code to cope with duplicated secondary files.
  • Documented requirement for transaction-capable database engine.
  • Automatically grant capabilities to administrators.
  • Better CSS for small screens.

0.1.1

  • Disable checkboxes if moving is not possible (i.e. name clash)
  • Improvements to CSS and HTML
  • Tweaks to documentation.

0.1.0

  • Media Organiser admin page largely reworked. Media Selector section is not yet done.
  • Meets current WordPress standards: uploaded to WordPress Plugin Directory.

0.0.9

  • Forked from Media File Manager 1.4.2