You are only limited by your imagination

WordPress Coppermine Plugin

‘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:

  1. Unzip ‘id-coppermine-plugin.zip’ in to the ‘/wp-content/plugins/’ directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. In the ‘Settings’ menu select ‘ID Coppermine’.
  4. 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.
  5. 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.
  6. 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.
  7. In the ‘Latest Images Settings’ section you can specify the number of images to display when rendering the latest images section.
  8. Download Lightbox2 from http://www.huddletogether.com/projects/lightbox2/#download and extract to the same directory as your blog homepage.

Usage

  1. Inside the folder of your selected theme create a file called ‘gallery.php’.
  2. 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(); ?>
  3. Save the file.
  4. In the admin menu under ‘Pages’ select ‘Add New’
  5. Call the page ‘Gallery’
  6. Do not enter anything into the body/text area of the page.
  7. Under ‘Template’, select ‘Gallery’ from the drop down.
  8. 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.

9 Comments

  1. 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.

  2. 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

  3. 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!!

  4. 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…….

  5. 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

  6. 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.

  7. 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.

  8. 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

  9. Hi,

    I am working on a new version which will fix this problem. Thanks for the heads up.

    James

Leave a Reply

Required fields are marked *.

*