Member
Member
edasque   2008-03-02, 17:49
#1
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 '<img src="'.WEBPATH.'/'.dirname($thumb).'/image/thumb/'.basename($thumb).'" alt="'.$title.'" />';

The rest is left as an exercise to the reader
Administrator
Administrator
acrylian   2008-03-02, 19:22
#2
But you know that we have a function for that in the core?
Member
Member
sbillard   2008-03-02, 19:40
#3
There is no difference in the thumb scheme for dynamic albums than for regular albums.
Member
Member
edasque   2008-03-02, 21:29
#4
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.
Member
Member
sbillard   2008-03-02, 23:06
#5
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.
Member
Member
edasque   2008-03-03, 20:44
#6
sbillard, makes sense. However <?php printLatestAlbums(6) ; ?>
doesn't work with dynamic albums it seems, so it's a moot point Smile
Member
Member
sbillard   2008-03-03, 20:52
#7
Please file a ticket so we can investigate and fix any problems.
Member
Member
edasque   2008-03-03, 21:22
#8
done.
Member
Member
sbillard   2008-03-04, 00:46
#9
Thanks. I've gotten time to look at the problem and a fix is in tonight's nightly.
Member
Member
edasque   2008-03-04, 16:56
#10
awesome. Thanks as always.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.