Coppermine Integration

by stilgar

Current stable version: 3.3 (Download)

Works with WordPress 1.5 & 1.5.2 and Coppermine 1.33 to 1.35

Current test version: 3.9 (Download)
Written for Wordpress 1.5.1, 1.5.2, 1.6/2.0 and Coppermine 1.33 to 1.35 and 1.42, 1.43

This plugin integrates Coppermine into WordPress, allowing you to insert pictures in your articles with a simple click.

If you are new to this project, you can visit the demonstration site, and view the examples in the documentation.


Major changes since 3.3

  • Integration with Coppermine 1.4
  • Integration with WordPress 2.0
  • Support for TinyMCE
  • Grouping options

Last Changes: version 3.9 - Jan 3, 2006

  • don’t use last_addition column. (fix for invisible trees and album selecters)
  • repaired cpgcanaccess_album
  • repaired privacy settings in cpg_db_search_albums cpg_db_search_pictures
  • added cpg_connect to cpg_filter to have the engine ready in RSS streams.
  • don’t wonkify the inserter bar after an image upload
  • correction of access rights for browser and inserter: you can always see you own pics now.
  • Implementation of User Capabilities (wp20)

See the ChangeLog page for a complete list of changes.



Basic Features

  • One-click insert system for recent pictures.
  • Use menus to choose the alignment and the size of your pictures in your posts.
  • Image browser to select pictures from the whole gallery.
  • Popup window to upload pictures without leaving the editor.
  • Use Post-Tags  to insert photographic material from your Coppermine gallery in your posts.
  • Use Template-Tags  to use images in your themes.
  • Find pictures and posts with the search box.
  • All options can be changed through a configuration page.

Advanced installation

  • Transparently manage users in Coppermine and Wordpress.
  • Session sharing
  • Default albums for new users making the upload step even simpler.
  • With a customized theme users won’t see the difference between Wordpress and Coppermine pages.

Thanks / Related

See this post for a list of all Coppermine/Wordpress integrations I could find.

The functionality of simple version is based on version 0.1 of Matthias Jell’s plugin who adapted Jason Goldsmith’s plugin. Matthias’ advanced functionality was backported into the current version of this plugin.

Sorry Matthias for changing your style so much !

Thank you Dew for your incredible DewPlayer.

Thank you for the icons, Kevin Wetzels of el73 !

Thanks everybody for all the feedback !!

520 Responses to “Coppermine Integration”

Pages: [26] 25 24 23 22 21 20 19 18 17 161 » (Show All)

  1. steve (8) Says:

    It's the name of your mysql database, along with the mysql username and mysql password. You'll have entered them into the Coppermine install screen when you set Coppermine up (go to and go down to 2.1.2 to remind yourself what it looked like). If you can't remember what they were, I'll try to remember where you can look them up!

    Hope that helps.

  2. Sam S (3) Says:

    Steve, thanks so much. I can't remember them. If you know where I could look them up that would be awesome.

  3. Francis (6) Says:

    hmm does 3.9 work with coppermine 1.4.4?

  4. Daniel Peterson (2) Says:

    Shadow does not work in firefox then you want to have image not thumb.

  5. WordPress Lightbox and Image Manager Plugins at The WeBlog of John Says:

    [...] I think if I wanted to have some kind of a picture gallery I would still use the Coppermine plugin from But for inserting pictures into posts, I think this is a pretty good combination to have! Tags: image manager, javascript, prototype, thumbnails, WordPress PluginsShare and Enjoy:These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

  6. Francis (6) Says:

    Hmm. So 3.9 works with coppermine 1.4.4 but why is it not retrieving all of my albums? I've got over 30 but it's only displaying 4.

  7. steve (8) Says:

    Francis - if you've got more than one user in Coppermine, then try this. Log in to Wordpress, go to plugins and "click here to configure Coppermine". Under Editor Integration make sure display everybody's pictures is set to yes.

  8. steve (8) Says:

    Sam - I haven't been able to find the database settings in Coppermine, but it's quite likely they're the same as the Wordpress onces. Use an FTP program (file transfer program) to download Open it up in notepad (or something like that) and in it you'll see the Wordpress database name, username and password. Don't change them, as they need to match up with settings elsewhere, but try using them in the WP/Coppermine plugin.

  9. Francis (6) Says:

    figured out why only a few albums were being shown, visibility was set to 2 on most of my albums. Do you know what that means or where it can be set? Thanks FR

  10. steve (8) Says:

    Where/how did you find out that visibility was set to 2? That might give me a clue!

  11. Francis (6) Says:


    the visibility setting is in the table cpg131_albums (it's one of the columns for each album). the code which retrieves the albums is ca. line 1178 in coppermine.php in cpg_db_get_albums

    } else {
    $sql .= 'WHERE visibility=0 ';
    /* else: all albums */

    I figured that if you wanted all albums you wouldn't need to specify WHERe visibility=0 because it shouldn't matter what the visibility is (though I wish I knew what visibility does). I briefly scoured the copermine docs but couldn't find it.

    Instead I updated my table to set all the visibilities equal to 0 (so it would get retrieved by cpg_db_get_albums) and now all my albums show in wordpress.


  12. James (5) Says:

    Fatal error: Call to undefined function _cpg_image_insert_shadow_dropdown() in /usr/local/www/data-dist/wp-content/plugins/coppermine/coppermine.php on line 2753

    Using wp2 and coppermine 143

    this error is appearing on the WRITE screen. all details are correct in the config. i've reinstalled apache (2.2 and 1.3), used php5 and php4, with gd and imagemagick installed. someone please help, as Chrstopher Phillips had the same problem, and nobody replied to him once.


  13. steve (8) Says:

    Francis - the is out of my depth now, but...

    coppermine.php lines 1103 - 1108 suggest to me that album.visibility=0 might be the state that's set when no user is logged in to Coppermine.

    Are you using the user integration part of the plugin, or have you set "coppermine user" and "coppermine password" on the plugin config page? If you're using user integration, when you log in to wordpress and then straight away go into the propper coppermine gallery, do you see yourself logged in there?

  14. steve (8) Says:

    James - are you using the current stable of current test version of the plugin?

    In the version of coppermine.php that I've got from "current test", line 2753 is commented out:


    So try commenting that out and re-uploading the file.

  15. James (5) Says:

    This was downloaded just before I wrote on here. It is the latest test version.

    The reaons I'm using this test version is because the stable version also does not work for me.

    The OS I am using is freebsd 6, apache 1.3 and PHP Version 5.1.2

    If you want to see phpinfo, try

    It's saying that the function _cpg_image_insert_shadow_dropdown() is not defined, so perhaps there is an issue with whatever php module that relies on. Any clues?

  16. James (5) Says:

    I did however just comment out the _cpg_image_insert_shadow.... line directly before the line you mentioned Steve. When I click Write now, I can write again (yay), but trying to insert images is more difficult. The popup appears, and shows me my albums on the left hand side, but when I select an album, on the right it says this:

    The requested URL /wp-content/plugins/coppermine/

  17. steve (8) Says:

    James - this is out of my depth now, I'll leave it for someone else to help. At least you can write now... :)

  18. James (5) Says:

    Notice: Undefined variable: HTTP_POST_VARS in /usr/local/www/data-dist/coppermine/include/ on line 125

    Notice: Undefined variable: HTTP_GET_VARS in /usr/local/www/data-dist/coppermine/include/ on line 133

    Notice: Undefined variable: HTTP_COOKIE_VARS in /usr/local/www/data-dist/coppermine/include/ on line 152

    Notice: Undefined variable: HTTP_SERVER_VARS in /usr/local/www/data-dist/coppermine/include/ on line 195

    Notice: Undefined variable: HTTP_SERVER_VARS in /usr/local/www/data-dist/coppermine/include/ on line 202

    Fatal error: Call to undefined function db_query() in /usr/local/www/data-dist/coppermine/include/ on line 273

    is what i get when i login in wordpress, then navigate to coppermine :(

  19. Gambling (1) Says:

    windows xp of couse!!!!


  20. Sam S (3) Says:

    Steve or anyone:

    I installed the plugin and it appears to work except that for some reason, in the url for all of the images, it is written as However, that "gal" shouldnt be in the url. When I erase that in the address bar, the image displays properly. Any ideas on how I can fix this issue?

Pages: [26] 25 24 23 22 21 20 19 18 17 161 » (Show All)

Leave a Reply

You would be able to edit your comments if you registered.


  • Posted on Friday, July 22nd, 2005 at 3:42 am.
  • Classified as Uncategorized.
  • Follow any responses to this entry through the RSS 2.0 feed.
  • Comments are enabled.
  • you can trackback from your own site.