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

BP-Gallery Sidebar Widget

外掛說明

NOTE: This plugin works with BP Gallery RC2 and RC3.

I needed a sidebar solution to show links to bp-gallery galleries, so I wrote this widget. This widget selects from galleries of
type “photo”. The widget lets you specify the following parameters

  • Maximum Galleries: the number of galleries to show.
  • Gallery Order: choose from Random, Earliest, and Latest
  • Thumbnail: choose cover, first, or random image to determine which image is used for a thumbail in the sidebar. Cover image is specified in bp-gallery.
  • Thumbnail width/height: the HTML attributes width & height.
  • Thumbnail padding: used for padding-right and padding-bottom for each thumbnail

Kudos

  • Shout out to Brajesh Singh for creating the bp-gallery plugin
  • Shout out to Mathias Geat, whose nextgen-gallery-sidebar widget code was a big help while I was writing this plugin.

螢幕擷圖

  • screenshot-1.jpg – Shows the widget on the front end. Thumbnail size is 120 x 100, and padding is 1.
  • screenshot-2.jpg – Shows the back end.

安裝方式

  1. Upload bp-gallery-sidebar-widget.php to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use the widget in the widget editor.
  4. For best results, use the same dimensions for thumnail display that are specified for bp-gallery.
    The bp-gallery thumbnail is used for this widget, so using the same size means nice thumbnails.

常見問題集

Q: Does this work standalone?
A: No, sorry, it requires the BP Gallery plugin installed in BuddyPress

Q: WordPress single-user vs. WP-MU — does it matter?
A: Nope. It should work fine for both.

使用者評論

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

參與者及開發者

以下人員參與了開源軟體〈BP-Gallery Sidebar Widget〉的開發相關工作。

參與者

將〈BP-Gallery Sidebar Widget〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

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

變更記錄

1.2

  • Added use of gallery slug, so that thumbails link to their galleries instead of their owner profiles.

1.1

  • Modified for WP-MU compatability. Now references the BP Gallery tables using the wpdb->base_prefix variable.