Title: External Gallery2 Image Block Plugin
Author: Lentil
Published: <strong>2008 年 9 月 14 日</strong>
Last modified: 2009 年 8 月 14 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/gallery2-image-block-widget.svg)

# External Gallery2 Image Block Plugin

 作者：[Lentil](https://profiles.wordpress.org/lentil/)

[下载](https://downloads.wordpress.org/plugin/gallery2-image-block-widget.zip)

 * [详情](https://cn.wordpress.org/plugins/gallery2-image-block-widget/#description)
 * [评价](https://cn.wordpress.org/plugins/gallery2-image-block-widget/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/gallery2-image-block-widget/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/gallery2-image-block-widget/#developers)

 [支持](https://wordpress.org/support/plugin/gallery2-image-block-widget/)

## 描述

If you use Gallery2 in an external (non WPG2) installation, you may want to display
images using the Gallery2 Image Block module. If so, this is the widget for you.
Options described in the [Gallery 2 Image Block](http://codex.gallery2.org/Gallery2:Modules:imageblock)
documentation are included, but not all have been tested. Your mileage may vary.

User configuration of Image Block options is available through the Widget configuration
panel. Blank (empty) options use the Gallery2 defaults.

_Note:_ The widget is written using [lib_curl()](http://www.php.net/curl) to avoid
url_fopen issues.

For more information, see the [plugin page](http://www.theschierers.net/blog/g2-imageblock-plugin).

## 屏幕截图

 * [[
 * An example of the widget in place on my website. Not that title and date are 
   being shown and a custom title is in use.
 * [[
 * The widget form open and active for editing showing the available options.

## 安装

 1. Unpack the zip file.
 2. Upload `Gallery2_ImageBlock.php` to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. Add the G2 ImageBlock widget to an active sidebar from the ‘Display:Widget’ menu.
 5. Configure the `Gallery2 URL` option to match your Gallery install. Do not include`
    main.php` or the trailing slash.
 6. Save your sidebar changes and view your new Image Block!

## 常见问题

  What options have been tested?

RandomImage and DailyImage blocks have been tested along with both at once (using
the pipe ‘|’ separator). Title and date ‘show’ options have been tested along with
both at once. ‘maxSize’ was also tested.

## 评价

此插件暂无评价。

## 贡献者及开发者

「External Gallery2 Image Block Plugin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Lentil ](https://profiles.wordpress.org/lentil/)

[帮助将「External Gallery2 Image Block Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/gallery2-image-block-widget)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/gallery2-image-block-widget/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/gallery2-image-block-widget/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/gallery2-image-block-widget/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/gallery2-image-block-widget/)。

## 额外信息

 *  版本 **0.1.5**
 *  最后更新：**17 年前**
 *  活跃安装数量 **10+**
 *  已测试的最高版本为 **2.8.4**
 *  语言
 * [English (US)](https://wordpress.org/plugins/gallery2-image-block-widget/)
 * 标签
 * [Gallery2](https://cn.wordpress.org/plugins/tags/gallery2/)[image block](https://cn.wordpress.org/plugins/tags/image-block/)
   [widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/gallery2-image-block-widget/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/gallery2-image-block-widget/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/gallery2-image-block-widget/reviews/)

## 贡献者

 *   [ Lentil ](https://profiles.wordpress.org/lentil/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/gallery2-image-block-widget/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.theschierers.net/blog/)