hi there,
i've been reading around these forums and i can't seem to find what i want so i'll just ask. Is there a plugin or a bit of code that someone is willing to share that i could add to the page that puts a thumbnail of a random image from an album and links too it if someone wants to click on it?
Comments
You will see in the doc of that link how to pull from a specific album.
So for example, if I want to get 3 random images from the album (folder name=vacation) vacation:
`
printRandomImages(3,null,'album','vacation')
`
now what Im trying to do it edit the image.php file of the template i'm using and just make a smaller "thumbmail" size random image below the main image with that "thumbnail" linking to that image... is there any way you could help with that?
muchas gracias if you can.
if (is_object($randomImage)) {
$randomImageURL = html_encode(getURL($randomImage));
Not really in front of a machine where I can test that out right now, but I think it'll do what you're asking. Massage and style any elements you need to make it work.
to display a radom pict from gallery in image.php, add something like that
`
<?php printRandomImages(1, NULL, 'all', '', 200, 200, false); ?>
`