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

Sitewide Recent Images

描述

This plugin will add a widget that displays thumbnails of the most recently posted images from all the blogs in a network. It’s highly optimized to be scalable for large networks, so it should need only about 100 database queries even for a network of thousands of sites. And to keep any performance drain as minimal as possible, the plugin utilizes caching with an adjustable update interval.

  • Note that images are taken only from blogs and posts which don’t have privacy options enabled (compatible with More Privacy Options) and the image must be attached to a post. So essentially, only public images are shown.

The widget formatting is completely customizable via a template and/or CSS (if available). The template uses patterns that will plug in values for the following:

  • Image Title
  • Image Caption
  • Image Description
  • Image Thumbnail URL
  • Full Image URL
  • Image Publish Date
  • Parent Post Title
  • Parent Post URL
  • Blog URL

螢幕截圖

  • A mostly default view of the widget on the front-end
  • Widget options on the back-end

安裝

If you want to install this plugin for all the blogs on your network, follow the typical plugin install procedure:

  1. Copy the contents of this archive to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to the ‘Appearance > Widgets’ menu and add ‘Sitewide Recent Images’ to a sidebar

Alternatively, you can add this plugin to a theme that can be used on only a subset of your blogs:

  1. Copy the file ‘sitewide_recent_images.php’ from this archive and into the theme’s directory
  2. Edit the theme’s ‘functions.php’ file, adding the following that will include the plugin:
    include_once(get_template_directory() . ‘/sitewide_recent_images.php’);
  3. Activate the modified theme in ‘Appearance > Themes’
  4. Go to the ‘Appearance > Widgets’ menu and add ‘Sitewide Recent Images’ to a sidebar

常見問題

The images are wrapping into only one column. There is too much white-space to the right of the images.

As the width of sidebars varies between themes, you might have to adjust the default width of 100 pixels to get the images to wrap perfectly. You can adjust the width in the widget’s ‘Image Template’ option. Lower the width if images are wrapping into one column. And increase the width if there is too much white-space on the right side. For example, the Twenty-Ten theme works best with 95px width.

評價

There are no reviews for this plugin.

貢獻者及開發者

“Sitewide Recent Images” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 Sitewide Recent Images 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

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

修改日誌

1.0

  • First public release