custom thumbnail from image_album_statistics aren't displayed

Hi,
since my last upgrade to the zenphoto version 1.2.1 [2756] nightly, my custom thumbnails from image_album_statistics for the last updated albums aren't displayed.
Here is the code I get in my image src :
http://mysuperincrediblesite.com/cache/album2/subalbum2/_75_cw75_ch75.jpg
It seems that the name of the image isn't displayed before "_75_cw75_ch75.jpg" so no thumbnail is diplayed. I set my chmod, cache and albums, to 755 but it doesn't work.

Do you have any idea about it ?

Comments

  • acrylian Administrator, Developer
    Well, it's a developement version..:-). We had changed somethings that affect some other parts apparently.

    The custom thumbs are a hack, aren't they? I believe it was me who told you how to do that a while back. Could you post the code in question? I do not remember how we did it...
  • flu Member
    You are right, you told me to do this way :
    $albumthumb = $tempalbum->getAlbumThumbImage();
    echo "<img src=\"".WEBPATH."/".ZENFOLDER."/i.php?a=".$tempalbum->name."&i=".$albumthumb->name."&s=75&cw=75&ch=75\">\n";

    http://www.zenphoto.org/support/topic.php?id=3730

    I was wondering if you had added this parameter in the nightly versions til you gave me this trick but it doesn't work anymore.
  • acrylian Administrator, Developer
    Hm, actually that should still work... I haven't change anything regarding that. It might be related to the getAlbumThumbImage method. Note we change some things in the image processor to get the coming custom crop feature to work. To be exact sbillard did most of that so you will have to wait until he is back or don't use the nighty. Then we will decide if that plugin needs fixing or the image processor in general.. Remember it's still the development version, even if it is always quite stable...:-)
  • flu Member
    Thank you for your answer.
    As far as I know, the only thing that I 'm missing is the name of the photo before _75_cw75_ch75.jpg to make it work. Strange.
  • acrylian Administrator, Developer
    Not solved, that is a workaround...:-)
  • flu Member
    Hi Acrylian,
    You're right... I talk too fast : it doesn't work for me :
    I use zenphoto version 1.2.1 [2756]
    and I've got this code on my index page to print the five last updated albums :
    <?php printLatestUpdatedAlbums(5, 'showtitle', '','','',''); ?>
    with the image_album_statistics.php version 1.2.1 it doesn't work (no thumbnail at all) but I get them with the image_album_statistics.php version 1.2.
    My goal is to print 5 custom thumbnails for these albums, you gave me a trick :
    in image_album_statistics.php replace
    `echo "imagegetAlbumThumb()."\">\n
    ";`
    by
    `
    $albumthumb = $tempalbum->getAlbumThumbImage();
    echo "imagename."&i=".$albumthumb->name."&s=75&cw=75&ch=75\">\n
    ";
    `
    but it doesn't work anymore, the name of the image isn't displayed before "_75_cw75_ch75.jpg" so no thumbnail is diplayed and I I get img src like that :
    http://mysuperincrediblesite.com/cache/album2/subalbum2/_75_cw75_ch75.jpg

    Ahahah ! I'm lost...
  • acrylian Administrator, Developer
    Yes, actually that should work... I will take a look, I promise.
  • flu Member
    If you do so, I'll spend the whole next ten years listening 24h a day Autobahn by Kraftwerk.
    I swear.
  • acrylian Administrator, Developer
    That indeed motivates me a lot...:-)
  • flu Member
    ahahah !

    (I knew it !)
  • Supersolved :
    http://www.zenphoto.org/support/topic.php?id=3490#post-25451

    (auuuuutooooooobaaaaaaaaaaahn)
Sign In or Register to comment.