Title: WP Coppermine Plugin
Author: cyberspice
Published: <strong>2009 年 5 月 17 日</strong>
Last modified: 2009 年 5 月 19 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/wp-cpg-widget.svg)

# WP Coppermine Plugin

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

[下载](https://downloads.wordpress.org/plugin/wp-cpg-widget.1.0.2.zip)

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

 [支持](https://wordpress.org/support/plugin/wp-cpg-widget/)

## 描述

This WordPress plug-in supplies a widget that will display a configurable
 number
of images, in a configurable grid, selected in a configurable way, from a Coppermine
Gallery. When the pointer is placed over an image a larger version of the image 
will be displayed in a pop-up together with any title and description.

The plug-in supplies a settings page which allows the user to enter the
 Coppermine
database details. The widget is a fully compliant WordPress widget and can be configured
using a form on the widget’s appearance page.

On the appearance form you can choose to select how many images to display and
 
the shape of grid in which to didsplay them. You can choose whether to select random,
or the latest images, from either all of the images or a specific album. You can
also enter the text to display as the widget title.

Further details can be found at:

http://www.cyberspice.org.uk/blog/wordpress-coppermine-widget/

### History

#### Revision 1.0

Initial version

#### Revision 1.0.1

Bug fix – Fixes issue with pathing of style sheet and javascript files
 for inclusion
in to the blog page header.

#### Revision 1.0.2

Bug fix – Use of PHP 5.x ‘private’ keyword changed to ‘var’ for PHP 4.x
 compatibility.

Bug fix – Fixed FORM path when configuring the gallery database details
 in settings.

Bug fix – Removed errant space from end of file that caused PHP warnings
 displayed
in the browser.

(Last update 19 May 2009)

## 屏幕截图

 * [[
 * An example of the widget in use on a blog. This is my blog at http://www.cyberspice.
   org.uk/blog/
 * [[
 * The plug-in settings page. The plug-in will attempt to connect to the server 
   before accepting the settings.
 * [[
 * The widget appearance page.

## 安装

Installation is relatively simple and similar to other plug-ins and widgets.

 1. Unzip `wp-cpg-widget.zip` in to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. In the ‘Settings’ menu select ‘WP Coppermine’ and enter the Coppermine web
     server
    and database details on its setting page. The settings will be validated but can’t
    be edited once set. You can reset the plug-in by de-activating and then re-activating
    it in the ‘Plugins’ menu.
 4. In the ‘Appearance’ menu select ‘Widgets’ page add to the widget to your
     sidebar(
    s) and use the edit form to enter the widget title text, select the grid layout,
    and the how to select images.

And that’s it.

## 常见问题

  How do I change the Coppermine server settings?

At the moment the only way to change the settings is to de-activate the
 plug-in(
which will erase all plug-in settings) and then re-activate it.

  How do I change the style of the pop up or widget?

If the widgets appearance form is insufficient you can edit the widget
 style sheet(
wp-cpg-widget.css in the plug-in directory). The widget includes the style sheet
as part of the blog page header.

  How is the pop-up displayed?

The pop-up is a DIV element which is part of the widget HTML. Normally
 the DIV 
is hidden but its appearance and content is displayed by JavaScript supplied by 
the file wp-cpg-widget.js. The widget includes the JavaScript as part of the blog
page header.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WP Coppermine Plugin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「WP Coppermine Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-cpg-widget)

### 对开发感兴趣吗?

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

## 额外信息

 *  版本 **1.0.2**
 *  最后更新：**17 年前**
 *  活跃安装数量 **20+**
 *  WordPress 版本 ** 2.7.0 或更高版本 **
 *  已测试的最高版本为 **2.7.1**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-cpg-widget/)
 * 标签
 * [Coppermine](https://cn.wordpress.org/plugins/tags/coppermine/)[widget](https://cn.wordpress.org/plugins/tags/widget/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-cpg-widget/advanced/)

## 评级

 4 星（最高 5 星）。

 *  [  0 条 5 星评价     ](https://wordpress.org/support/plugin/wp-cpg-widget/reviews/?filter=5)
 *  [  1 条 4 星评价     ](https://wordpress.org/support/plugin/wp-cpg-widget/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-cpg-widget/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-cpg-widget/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/wp-cpg-widget/reviews/?filter=1)

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

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

## 贡献者

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

## 支持

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

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

## 捐助

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

 [ 捐助此插件 ](http://www.cyberspice.org.uk/blog/wordpress-coppermine-widget/)