I got it to work kind of!
I upgraded to 1.1.2, put your new code on index.php and changed `getAlbumLinkURL()` to `$firstImage->getImageLink();`.
It does work, except now all of the thumbnails on the index page point to the first photo of the first album. I played around a little and noticed that if I change the number from 0 to 1 in the `$first = $alb[0];` line, the thumbnails would then link to the first image of the second album.
Is there a way for each of the albums on index.php to have their own link be first image of their album?
Here's my index.php file:
`<?php if (!defined('WEBPATH')) die(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title><?php printGalleryTitle(); ?></title>
<link rel="stylesheet" href="<?php echo $_zp_themeroot ?>/zen.css" type="text/css" />
<?php printRSSHeaderLink('Gallery','TedPhoto'); ?>
<?php zenJavascript(); ?>
</head>
<body>
<div id="gallerytitle">
<?php echo getGalleryTitle(); ?>
[hr]
<?php while (next_album()): ?>
<?php global $_zp_gallery;
$alb = $_zp_gallery->getAlbums();
$first = $alb[1];
$firstAlbum = new Album($_zp_gallery, $first);
$img = $firstAlbum->getImages(0);
$first = $img[0];
$firstImage = new Image($firstAlbum, $first);
?>
<div id="album">
<?php printAlbumThumbImage(getAlbumTitle()); ?>
<?php printAlbumTitle(); ?>
<?php endwhile; ?>
</div>
<?php printAdminToolbox(); ?>
</body>
</html>`