UPDATE: Version 0.4.6 has been released. Please see this entry or my CoppermineSC page for the latest information.

I’ve just released CoppermineSC version 0.3.5! You can download the new version or visit my CoppermineSC page for complete details about the plugin. You can also view a sample of what CoppermineSC can do. Feel free to post comments and feature requests to this entry.

New Features in Version 0.3.5:

  • Added new tags to pull images from categories (these work the same way as the album tags, you can optionally set the maximum number of images and choose if you want random images or not).
  • Added a new function that can be called from anywhere in your template so that you can include images in a sidebar.
  • Added new setting to customize the order of images (choices are database id, filename, title, or date) when including non-random images from albums.
  • Added new setting to customize the order of albums (choices are database id, assigned album order, or title) when including non-random images from categories.
  • A detailed list of all changes is available.

New Tags:

  • The following tags pull in images from the main database
    • These tags pull in thumbnails of images from a specific category in the main database
      [cpg_cat:5] – inserts thumbnails for all images in category id 5
      [cpg_cat:5,12] – inserts thumbnails for the first 12 images in category 5
      [cpg_catand:5] – inserts thumbnails for all images in category id 5 in random order
      [cpg_catrand:5,12] – inserts 12 random thumbnails from the images in category id 5
       
  • The following tags pull in images from an additional database
    • These tags pull in thumbnails of images from a specific category in an alternate database
      [cpg_dbcat:mydbname,5] – inserts thumbnails for all images in category id 5 from database named ‘mydbname’
      [cpg_dbcat:mydbname,5,12] – inserts thumbnails for the first 12 images in category 5 from database named ‘mydbname’
      [cpg_dbcatrand:mydbname,5] – inserts thumbnails for all images in category id 5 in random order from database named ‘mydbname’
      [cpg_dbcatrand:mydbname,5,12] – inserts 12 random thumbnails from the images in category id 5 from database named ‘mydbname’

Instructions for use in Sidebar or Template:

  • Use a snippet like the following in your sidebar or template:
    <?php if (function_exists('cpgsc_sidebar')) {
        cpgsc_sidebar('any_standard_tag'); }
    ?>

     
  • For example, to insert thumbnails for all images in album id 4:
    <?php if (function_exists('cpgsc_sidebar')) {
        cpgsc_sidebar('[cpg_album:4]'); }
    ?>

New Settings:

  • // set sort order for images when including non-random images from an album, comment out all but one of the following four lines
    //define ('CPGSC_IMAGE_SORT', 'database');
    //define ('CPGSC_IMAGE_SORT', 'date');
    define ('CPGSC_IMAGE_SORT', 'filename');
    //define ('CPGSC_IMAGE_SORT', 'title');

     
  • // set sort order for albums (within the selected category) when including non-random images from a category, comment out all but one of the following three lines
    //define ('CPGSC_ALBUM_SORT', 'database');
    define ('CPGSC_ALBUM_SORT', 'albumorder');
    //define ('CPGSC_ALBUM_SORT', 'title');

     
  • // optional text for category link (blank text means no link will be created), comment out exactly one of the following two lines
    //define ('CPGSC_CATEGORY_TEXT', '');
    define ('CPGSC_CATEGORY_TEXT', 'view more images from this category');