• The new version of psnGallery (integration of Coppermine in WP) is out.
    View it in action at blog.idahocline.com
    Now in every post, you have access to Coppermine…Album, Pictures via simple tags as “<gallery>”, “<cpg_album>”, “<cpg_thumb>”, “<cpg_gallery>”

Viewing 15 replies - 31 through 45 (of 138 total)
  • Thread Starter idahocline

    (@idahocline)

    idahocline.com has huge issues for the moment. a new site called blog.idahocline.info has just been published. Soon idahocline.com will be up again (as the Phoenix).
    Don’t be afraid with the 404…I am still transfering data…. sorry for the inconvenience.

    I still have no idea what tag to use and how to use it when I want to post ONE SPECIFIC IMAGE!
    please help!

    @idaho your fix for the bug worked – however it has been lost in the forum rollback.
    Also did you get my note about the $CONFIG not present as global in the get url function?

    Thread Starter idahocline

    (@idahocline)

    :o) Yeap ! But I found the global definition….Strange…I will repackage the zip tonight….
    The fix is also located at blog.idahocline.info

    I still have no idea what tag to use and how to use it when I want to post ONE SPECIFIC IMAGE!
    please help!

    Thread Starter idahocline

    (@idahocline)

    Dear Anonymous, instead of waiting to have an answer, have you at least tried to read the tag names ?
    you have:
    <cpg_gallery> to have a gallery
    <cpg_album> to have an album
    <cpg_picture> to have a picture
    and so on…
    Is this answer your question ? If not, provide the number of your picture, and I will write for you the full code to have it displayed.

    A possible bug
    <cpg_album>1|5</cpg_album>
    Will list all the pictures of album 1 one per row without any $beforeCol $afterCol etc – to make it work, that is give 5 columns per row you have to add an additional | character like
    <cpg_album>1|5|</cpg_album>

    Another bug ??
    The image size in the <img > tag is always that of the thumbnail – this apparently shows even the normal or fullsize pictures as thumbnails.

    Thread Starter idahocline

    (@idahocline)

    gotcha ! ??
    line 262 : $image_size = psnImgSize($picture->pwidth, $picture->pheight, $CONFIG['thumb_width']);
    the $CONFIG['thumb_width']must be changed according the size selected. And should use the $CONFIG['picture_width']); for the “normal size”. Do you agree ?

    Thread Starter idahocline

    (@idahocline)

    same thing of course each time the function “psnImgSize” is called…

    Yes that should fix it the way you have programmed it, But I noticed that you are not using the $CONFIG[‘thumb_use’] to calculate the $ratio – this can give you wrong sizes for thumbs in portrait mode…. use something like
    //Calculate the thumbnail dimensions
    if ($CONFIG['thumb_use'] == 'ht') {
    $ratio = $height / $CONFIG['thumb_width'] ;
    } elseif ($CONFIG['thumb_use'] == 'wd') {
    $ratio = $width / $CONFIG['thumb_width'] ;
    } else {
    $ratio = max($width, $height) / $CONFIG['thumb_width'] ;
    }

    P.S. the above code has been written off hand and not tested – but will give you the idea ??

    Thread Starter idahocline

    (@idahocline)

    Thanks. I’ve got the idea….nice ! ?? Will be in the next release.
    Small question…(I don’t remember) The ‘$CONFIG[‘thumb_use’]’ was already existing in 1.1D ?

    $CONFIG[‘thumb_use’] is not in 1.1D but then as you might know 1.1D is deprecated version, 1.3 should be out soon

    Thread Starter idahocline

    (@idahocline)

    I know but it is for the compatibility with former (obsolete ;o) ) release of CPG….
    For those who don’t want to upgrade to 1.2 or to 1.3…..

    In that case an if (isset($CONFIG['thumb_use'])) will do the trick…

Viewing 15 replies - 31 through 45 (of 138 total)
  • The topic ‘Plugin psnGallery : Coppermine in WordPress’ is closed to new replies.