Member
Member
jackdaw   21-11-2009, 12:48
#1

After the tip bryanbrazil gave me (search for 'jpg'), I now have a dynamic album representing all my images in chronoligical order (about 1500).

  1. The thumbnail for that album is set to 'most recent', but that doesn't work. A small bug perhaps? It always switches back to 'random thumbnail'.

  2. Somehow the slideshow takes forever to load on that album, while loading very quick in all the other (static) albums. How can I disable the slideshow link for this specific (and very large) dynamic album?

  3. How can I add a small link beneath the thumb (in album.php) and under the larger image (in image.php) to the original album of that specific image? Something like: 'from album [i]animals[/i]. The word animals then should be that link.

Thank you!

Member
Member
BertSimons   21-11-2009, 14:59
#2

on the search page I added this in the image loop below the thumb
`

found in album:
`

Member
Member
sbillard   21-11-2009, 18:04
#3

$album->isDynamic() will tell you if it is a dynamic album so you can omit the slideshow.

Member
Member
jackdaw   22-11-2009, 23:56
#4

BertSimons: I tried your suggestion in search/php but I'm getting these warnings:
[i]Warning: Missing argument 2 for printImageLink(), called in www.spoenk.nl/beeldend/themes/spoenk-nieuw/search.php on line 81 and defined in www.spoenk.nl/beeldend/zp-core/template-functions.php on line 2272
bloemen en planten[/i]

sbillard: how can I use this? I tried 'if ($album->isDynamic()==true) { etc. }
but that doesn't work.

Member
Member
kagutsuchi   23-11-2009, 02:44
#5

To fix the warning, take a look at the Function Documentation here: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintImageLink

For sbillard's suggestion, your code should work. However, you don't have to check that it is true (it will be evaluated as a boolean anyway):

if ($album->isDynamic()) { // place code here }

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.