Rue Plumet

How fast the minutes fly away and every minute colder.


August 13, 2005

CoppermineSC 0.4.2 Released

Filed under: Software I Wrote — Brad @ 10:50 am

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.4.2! 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.4.2:

  • Changed plugin to always exclude images from private albums when using tags that pull from categories or from the entire gallery. Thanks to Rob for pointing this problem out to me.
  • Changed wording for the setting that indicates whether individual image links should link to the normal size image or to the album they belong to (in order to clarify functionality).
  • A detailed list of all changes is available.

Changed Settings:

  • // set whether individual image links should link to the normal size image or to the album they belong to (does not effect album, category, or gallery based thumbnails), comment out exactly one of the following two lines
    define ('CPGSC_SINGLEIMAGE_LINK', 'album');
    //define ('CPGSC_SINGLEIMAGE_LINK', 'normalimage');

20 Comments »

  1. Hi, i’ve installed your plugin and it seems to work fine for me, so i plan to use it in the future. What i miss is a simple and convenient way to insert images in a post (i am too lazy to look in my coppermine for the image and album ids…), like using some sort of wizard thingy. Maybe i’ll begin to code something like that in the future.

    Keep up the good work!

    Comment by DangerMouse — August 16, 2005 @ 9:19 am

  2. Thanks for the plugin!

    One feature I’d like to request is the ability to “align=right”, “align=center” or “align=right”. Maybe [cpg_imagethumb:2,myimage.jpg,right] ?

    Thanks again!

    Comment by SatyrTN — August 16, 2005 @ 5:53 pm

  3. [...] http://www.55rueplumet.com/2005/08/13/copperminesc042 [...]

    Pingback by sirjohn.co.uk » Blog Archive » CoppermineSC plugin for WordPress — August 18, 2005 @ 6:49 pm

  4. SatyrTN,
    Thanks for your comments. You mention adding support for alignment of images (left, right, center). Are you primarily interested in using that for individual single images, or for thumbnail sets of images from albums and categories, too?

    Also, for your purposes do you want to use different alignments, sometimes left, sometimes right, and sometimes center? Or do you want all images aligned the same way, just to something other than left? If it is the latter, I think you should be able to do that by using the CSS tags described in the plugin. Please contact me for more details if that is what you want to do.

    Comment by Brad — August 19, 2005 @ 9:15 am

  5. thanks for the plugin. I am sure you have puch much time into that. I tried to use you plugin but I am getting the following error and my blogroll doesnto show either

    WordPress database error: [Table 'oqjwbmie_gallery.wp_options' doesn't exist]
    SELECT option_value FROM wp_options WHERE option_name = ‘blogfilename

    so I am using the plugin from texx.org. that work but yours have some more flexibility whihc I like to use.
    Thanks
    shahram

    Comment by shahram — August 22, 2005 @ 7:13 pm

  6. sorry agian one more question how I can align the photo so the next topic will be under the photo. Should I change any code in the theme if yes can you lead me to a thread so I can find the solution. Thanks

    Comment by shahram — August 22, 2005 @ 7:48 pm

  7. shahram,
    Thanks for your comments. I’m sorry to hear about your trouble, but hopefully we can get things working properly. Regarding the database error, can you please tell me what version of WordPress you are using and also what other plugins you have activated?

    As for the alignment question, I’m having a little trouble visualizing the problem. Can you maybe send me a screenshot of the problem or a link to an example of the problem? I think that would be very helpful in trying to figure out what is going on.

    Comment by Brad — August 22, 2005 @ 10:20 pm

  8. shahram’s problem has been solved. Apparently, depending on how a particular web host has PHP and mySQL configured, it might be necessary to reset the WordPress database connection at the end of the CoppermineSC script.

    shahram and I were running the same version of WordPress, PHP, and mySQL and he had the problem and I didn’t, so all I can determine is that there might be a setting somewhere that can cause this issue.

    The patch that fixed sharam’s problem doesn’t seem to introduce any bugs for users who don’t have the problem in the first place, so I will be incorporating it as a standard part of the next version of CoppermineSC.

    Comment by Brad — August 23, 2005 @ 10:15 am

  9. Thanks for the time you put for plug in and help . I think it will be good idea if you make an entry in the
    http://www.wp-plugins.net so everyone can find it there also.

    Comment by Shahram — August 23, 2005 @ 11:04 am

  10. shahram,
    Thanks for the vote of confidence as far as wp-plugins goes. In their documentation they request that plugins provide an admin page to configure settings so that users do not have to edit the actual script itself at all. For CoppermineSC that means you must be able to set your Coppermine connection information and other preferences from an admin page instead of editing the script file. I’m in the process of working on that and I intend to post the script once I have that work complete.

    Comment by Brad — August 23, 2005 @ 9:17 pm

  11. I would like to make another suggestion, if you do not consider that I am requesting too much. I make suggestion as I think that this is the best way for improvment. It would be great if the thumbnail in the WP connects to its image rather than the whole album.

    Comment by shahram — August 23, 2005 @ 9:51 pm

  12. Hi – Does your plugin work in comments as well as in posts? I expect there are reasons not to do this, for the sake of security, but in some cases – mine, at least – it would be beneficial to be able to use it in a comment.

    Just wondering. Thanks…

    Comment by azxak — August 23, 2005 @ 11:42 pm

  13. Azxak,
    The plugin as it is written right now will not work in comments. However, you can easily edit the script so that it will work in comments. Find the line (near the very end of the script) that reads:

    add_filter(’the_content’, ‘cpgsc_process’);

    and add a new line after it that reads:

    add_filter(’comment_text’, ‘cpgsc_process’);

    That should do it. I’ll try to add that as an official option in the next version.

    Comment by Brad — August 24, 2005 @ 8:34 am

  14. shahram,
    Don’t feel bad about requesting things. I’m always open to requests. If you are talking about having a single image (as opposed to a set of thumbnails from an entire album or category) link to the image itself instead of to the album it comes from, that’s already in the plugin. Find the lines in the script that read (near the beginning of the script, a little after the part where you set your mySQL parameters):

    // set whether individual image links should link to the normal size image or to the album they belong to (does not effect album, category, or gallery based thumbnails), comment out exactly one of the following two lines
    define (’CPGSC_SINGLEIMAGE_LINK’, ‘album’);
    //define (’CPGSC_SINGLEIMAGE_LINK’, ‘normalimage’);

    and change them to read:

    // set whether individual image links should link to the normal size image or to the album they belong to (does not effect album, category, or gallery based thumbnails), comment out exactly one of the following two lines
    //define (’CPGSC_SINGLEIMAGE_LINK’, ‘album’);
    define (’CPGSC_SINGLEIMAGE_LINK’, ‘normalimage’);

    Basically just flip which of the last two lines is commented out with the two forward slashes. That will do what you want.

    Comment by Brad — August 24, 2005 @ 8:47 am

  15. Brad, thanks for the quick fix for making your plugin functional inside comments. Exactly what I needed.

    Very nice work all together.

    Comment by Azxak — August 24, 2005 @ 11:15 am

  16. Hi,
    I get the same error message as shahram. Could you send me the patch that fixes it?

    thanks,
    Laiska

    Comment by Laiska — September 3, 2005 @ 5:48 pm

  17. Laiska,
    I’m sorry to hear about your trouble. I really need to get a new version posted that includes the patch for this bug. I hope to do that within the next week. I have a relatively new baby who has been a bit trying lately, but I hope this coming week will be better so I can get caught up on things. Anyway, I’ve emailed you instructions on how to fix the bug. Please let me know if it does not work and I will investigate your issue further.

    Comment by Brad — September 3, 2005 @ 9:30 pm

  18. Brad, thanks a lot for the quick answer! It fixed the problem.
    Great script!
    :L

    Comment by Laiska — September 4, 2005 @ 3:54 am

  19. I am having the same error trouble that others are having. Any chance I could get an e-mail of the fix as well. Thanks.

    Comment by Ian — September 11, 2005 @ 5:46 pm

  20. Ian,
    I’m sorry to hear about your trouble. I emailed you the fix. I really need to get a new version posted that includes the patch for this bug. I hope to do that within the next week.

    Comment by Brad — September 11, 2005 @ 10:09 pm

RSS feed for comments on this post. | TrackBack URI

Leave a comment