Mô tả
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.
Ảnh màn hình
Cài đặt
- Upload
bp-gallery-sidebar-widget.phpto the/wp-content/plugins/directory - Activate the plugin through the ‘Plugins’ menu in WordPress
- Use the widget in the widget editor.
- 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.
Hỏi đáp
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.
Đánh giá
Không có đánh giá nào cho plugin này.
Người đóng góp & Lập trình viên
“BP-Gallery Sidebar Widget” là mã nguồn mở. Những người sau đã đóng góp vào plugin này.
Những người đóng gópDịch “BP-Gallery Sidebar Widget” sang ngôn ngữ của bạn.
Muốn tham gia phát triển?
Duyệt code, check out SVN repository, hoặc theo dõi nhật ký phát triển qua RSS.
Nhật ký thay đổi
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.

