Hi, I have the random image working from ll albums, with this code:
<?php define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/zp-core/template-functions.php");?>
<?php $randomImage = getRandomImages();
$randomImageURL = getURL($randomImage);
echo "
<img src='". $randomImage->getSizedImage(getOption('image_size')) . "'
alt=\"random image\n" . $randomImage->getTitle() . '" />';
?>
i have tried to use this to add the getRandomImagesAlbum($album) but cant work out how and where?
please help..
Thanks
Comments
<?php define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/zp-core/template-functions.php");?>
in my html
<?php $randomImage = getRandomImages();
$randomImageURL = getURL($randomImage);
echo "
<img src='". $randomImage->getSizedImage(getOption('image_size')) . "'
alt=\"random image\n" . $randomImage->getTitle() . '" />';
?>
where do i do that, can you show me exactly?
can anyone help me with this.. really struggling with it.
thanks.