‘WordPress Coppermine Plugin’ can be downloaded here.
This WordPress plugin supplies a set of template tags to allow you display images from a Coppermine Gallery.
Tags are provided to display the following:
- A configurable list of albums
- Grid of images from a selected album
- A latest images block to display a configurable number of images that were last uploaded.
This plugin leverages Lightbox2 v2.04 to display the full size version of the images. As this software was not created by me it has not been included within this package. It can be downloaded from http://www.huddletogether.com/projects/lightbox2/#download
The plug-in supplies a settings page which allows the user to enter the Coppermine database details and the display settings.
The gallery on this site uses this plugin.
Installation
Installing the WordPress Coppermine Plugin is simple:
- Unzip ‘id-coppermine-plugin.zip’ in to the ‘/wp-content/plugins/’ directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- In the ‘Settings’ menu select ‘ID Coppermine’.
- Under the ‘General Settings’ section enter the full url to the root of your Coppermine installation i.e. http://www.yoursite.com/copperminedirectory and the Coppermine username of the user for whom to display the images for. NOTE: there should not be a trailing slash in the url.
- Under the ‘Coppermine Database Settings’ section enter the Coppermine web server and database details. These details will not be validated so you will only find out if they are incorrect when you try to view a page using one of the template tags. This allows you to be able to change the details at any point.
- In the ‘Display Settings’ section you can set the number of column and rows to display when rendering the gallery, and wether to display the image title and to list the albums.
- In the ‘Latest Images Settings’ section you can specify the number of images to display when rendering the latest images section.
- Download Lightbox2 from http://www.huddletogether.com/projects/lightbox2/#download and extract to the same directory as your blog homepage.
Usage
- Inside the folder of your selected theme create a file called ‘gallery.php’.

- Open this file using notepad or your favourite text editor and paste the following:
<?php /* Template Name: Gallery */ /** * @package WordPress * @subpackage Default_Theme */ get_header(); ?> <div id="gallery" role="main"> <?php id_coppermine_render_album_list(); id_coppermine_render_gallery(); id_coppermine_render_page_nav(); ?> </div> <?php get_footer(); ?>
- Save the file.
- In the admin menu under ‘Pages’ select ‘Add New’
- Call the page ‘Gallery’
- Do not enter anything into the body/text area of the page.
- Under ‘Template’, select ‘Gallery’ from the drop down.

- Click publish.
If you change your theme you will need to remember to copy the ‘gallery.php’ file from your original theme directory to your new one.
Donations
Although this plugin is provided free of charge please consider making a small donation to the Vulcan to the Sky Trust.


March 12, 2011 at 8:12 pm
I just wanted to say thanks. Your plugin is exactly what I needed to round out my site. I was beating my head in trying to tweak other work arounds.
March 16, 2011 at 1:00 am
I cannot get this thing to work. When choosing which albums in Coppermine to display…if I de-select some albums and go to the page I get the following error:
Fatal error: Call to undefined function GetUserImageDataLimitSql() in C:\Inetpub\wwwroot\localuser\jackdeth\padp\dp\wp-content\plugins\id-coppermine\id-coppermine-context.php on line 312
If I leave ALL the albums selected the page displays photos in the number of colums and rows I wish, but below the photos I cannot navigate to more photos. I get the following error displayed there instead:
Fatal error: Call to private method id_coppermine_context::GetUserImageCount() from context ‘id_coppermine’ in C:\Inetpub\wwwroot\localuser\jackdeth\padp\dp\wp-content\plugins\id-coppermine\id-coppermine-template.php on line 126
May 10, 2011 at 8:31 am
Hi,
this is just a fine plugin and it works well!
Maybe you are able to insert a code that will rendering / recalculate the thubnails shown at the gallery site?
Some Thumbs are shown unsharp……..
Thanks an work on!!
May 10, 2011 at 8:36 am
Ups forgott something:
Maybe its a cool idea to handle the shown pictures more easyer in what direkction there are shown…..e.g:
last date up oder downscending…….
July 15, 2011 at 3:34 pm
Hi James!
thx for this plugin. I have some trouble with WordPress 3.2.1 and your plugin.
1. Titles are not shown
2. navigation (pagenumbers) are only shown if “list albums” is selected
3. private and password protected visibilty does not work
maybe my reports are helpful
danio
August 14, 2011 at 12:16 am
when i try to activate iy, i get the following error: Please help
Method Not Implemented
GET to /wordpress/wp-admin/plugins.php not supported.
January 12, 2012 at 1:23 pm
I’m having trouble changing the database details. Instead of upgrading the Coppermine installation that was already there and this plugin was kinda working with, I did a new installation in another directory with a new database, but now cannot change the database details. It’s either not connecting to the new database (another similar plugin is connecting) or the settings are not updating. I tried uninstalling the plugin and re-installing and also deleting that line out of the database and no luck.
February 2, 2012 at 11:18 am
I’ve done everything as described. If I now the “Gallery” page views I get the following error message:
Parse error: syntax error, unexpected ‘*’ in /home/httpd/vhosts/andreas-felder.info/httpdocs/kameramann/wp-content/themes/ArtSee/gallery.php on line 2
February 3, 2012 at 12:39 pm
Hi,
I am working on a new version which will fix this problem. Thanks for the heads up.
James