ZenphotoCMS Forum
show_latest_albums breaks with Dynamic Folders in 1.1.5 - 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: show_latest_albums breaks with Dynamic Folders in 1.1.5 (/thread-2314.html)



show_latest_albums breaks with Dynamic Folders in 1.1.5 - edasque - 2008-03-02

Due to the different thumb URL scheme for dynamic albums, the old show_latest_albums function found in a few themes customfunctions.php breaks.

I was able to fix it with something like this:

if ($dyn=="1") {
echo '';

The rest is left as an exercise to the reader




show_latest_albums breaks with Dynamic Folders in 1.1.5 - acrylian - 2008-03-02

But you know that we have a function for that in the core?




show_latest_albums breaks with Dynamic Folders in 1.1.5 - sbillard - 2008-03-02

There is no difference in the thumb scheme for dynamic albums than for regular albums.




show_latest_albums breaks with Dynamic Folders in 1.1.5 - edasque - 2008-03-02

Well, it seems that for non dynamic albums, the thumbs column is filled with a relative URL for the thumb, relative to the album itself. Whereas for Dynamic albums (which I love, thanks sbillard), it's a longer URL that includes the non virtual album which the thumbnail is taken from ?

I'll look into the function in the core, probably didn't exist when I started writing the first version of my theme.




show_latest_albums breaks with Dynamic Folders in 1.1.5 - sbillard - 2008-03-02

It has always (since 1.1.1) been possible to have a thumb link be absolute. With the dynamic albums, since there are really no images in the album, that is about all that is useful.




show_latest_albums breaks with Dynamic Folders in 1.1.5 - edasque - 2008-03-03

sbillard, makes sense. However

doesn't work with dynamic albums it seems, so it's a moot point




show_latest_albums breaks with Dynamic Folders in 1.1.5 - sbillard - 2008-03-03

Please file a ticket so we can investigate and fix any problems.




show_latest_albums breaks with Dynamic Folders in 1.1.5 - edasque - 2008-03-03

done.




show_latest_albums breaks with Dynamic Folders in 1.1.5 - sbillard - 2008-03-04

Thanks. I've gotten time to look at the problem and a fix is in tonight's nightly.




show_latest_albums breaks with Dynamic Folders in 1.1.5 - edasque - 2008-03-04

awesome. Thanks as always.