I am back
I placed the random image script on the index page of my website and it's working great! One thing though, it is loading extremely slow because it seem like it's loading the full image but as a thumbnail size. How can I allow the script to display the cached copy of the pictures instead of the original picture? So, the random image that is being displayed is the cached (smaller) image but still links to the original picture in zenphoto?
Again, here is the script I am using
`
<?php
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'album');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
header ('Content-Type: text/html; charset=' . getOption('charset'));
?>
<html>
<head>
<title>Test Index</title>
</head>
<body>
<?php
$randomImage = getRandomImages();
$randomImageURL = getURL($randomImage);
echo "<img src='".
$randomImage->getSizedImage(getOption('image_size')) .
"' alt="random image"n" . $randomImage->getTitle() .
'" />';
?>
</body>
</html>
`