![]() |
|
2 Qs: Random image display > link to album? and displaying a list of albums... - 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: 2 Qs: Random image display > link to album? and displaying a list of albums... (/thread-6335.html) |
2 Qs: Random image display > link to album? and displaying a list of albums... - shiatostorm - 2009-12-24 Firstly: I've managed to get the random images working (yay! but I was unable to remove the 'Li' tags any other way than editing the functions.php file, is there a better way of doing things?), I would like the random image displayed to direct the viewer to the album it sits in and not the image itself - as I'm using a lightbox/slimbox script for viewing images and image.php is a bit redundant (and unstyled!). Is there a way to make this possible? Oh and only show this random image on the first index page and not any other subsequent ones page 2, 3 4 etc? Secondly: I'm trying, unsuccessfully to place a list of albums into a sidebar within the album.php file - for direct access to a specific album rather than go back to the index page and then through the pages that way. I found 'printAlbumMenuListAlbum' in the Docs but seem to be falling flat when trying to implement it. I'm unclear how to get the function to work as each time I try the page just goes blank, not quite sure what I'm doing wrong... Thirdly: Merry Christmas!
2 Qs: Random image display > link to album? and displaying a list of albums... - acrylian - 2009-12-24 1a. [i]Is there a way to make this possible?</ema> That is the wrong question as nearly everything is possible. You have to do some customizing doing your own function for that. 1b. Check for the page with a simple if/else. 2. `printAlbumMenuList` is a function of the print_album_menu plugin (which is clearly noticable on the doc) and needs of course to be enabled. 3. You too..:-)[/i] 2 Qs: Random image display > link to album? and displaying a list of albums... - shiatostorm - 2009-12-25 ah ha, thanks very much for all that. 1 - I've found 'getAlbumLinkURL' seems to be about right and trying to get that working. I'm getting there - at present it just ends up as "mysite.com/gallery/index.php?album=" and then stops there. I'm missing something somewhere. I'll look a bit harder and see what does/doesn't break it! 2 - sorted - I'm a fool for not checking in the first place, doh! 3 -
|