ZenphotoCMS Forum
custom thumbnail from image_album_statistics aren't displayed - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: custom thumbnail from image_album_statistics aren't displayed (/thread-3949.html)



custom thumbnail from image_album_statistics aren't displayed - flu - 2008-10-24

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 ?




custom thumbnail from image_album_statistics aren't displayed - acrylian - 2008-10-24

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...




custom thumbnail from image_album_statistics aren't displayed - flu - 2008-10-27

You are right, you told me to do this way :
$albumthumb = $tempalbum->getAlbumThumbImage();
echo "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.




custom thumbnail from image_album_statistics aren't displayed - acrylian - 2008-10-27

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...:-)




custom thumbnail from image_album_statistics aren't displayed - flu - 2008-10-27

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.




custom thumbnail from image_album_statistics aren't displayed - flu - 2008-10-31

solved :
http://www.zenphoto.org/support/topic.php?id=4145&replies=22#post-25294




custom thumbnail from image_album_statistics aren't displayed - acrylian - 2008-10-31

Not solved, that is a workaround...:-)




custom thumbnail from image_album_statistics aren't displayed - flu - 2008-10-31

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 :

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 "getAlbumThumb()."\">\n ";
by
$albumthumb = $tempalbum->getAlbumThumbImage(); echo "name."&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...




custom thumbnail from image_album_statistics aren't displayed - acrylian - 2008-10-31

Yes, actually that should work... I will take a look, I promise.




custom thumbnail from image_album_statistics aren't displayed - flu - 2008-10-31

If you do so, I'll spend the whole next ten years listening 24h a day Autobahn by Kraftwerk.
I swear.




custom thumbnail from image_album_statistics aren't displayed - acrylian - 2008-10-31

That indeed motivates me a lot...:-)




custom thumbnail from image_album_statistics aren't displayed - flu - 2008-10-31

ahahah !

(I knew it !)




custom thumbnail from image_album_statistics aren't displayed - flu - 2008-11-06

Supersolved :
http://www.zenphoto.org/support/topic.php?id=3490#post-25451

(auuuuutooooooobaaaaaaaaaaahn)