Hi,
I need help getting a loop to run appropriately inside another loop.. or what the best way to arrange this is.
What I want is:
a. big main album thumb + the first 4 album thumbs small, (these all link you to the first image)
b. then repeat for each following album.
Need help with:
1. The page I've made (richardpierpetit.com/index.php) looks the way I want from using css overrides (except for the error on the bottom), but I'm sure there's a more optimal approach.
a. My attempt to pull the image thumbs inside the main album thumb loop is causing the error, but I don't know what to change to get it to run smoothly.
2. Further, I'd like to only display the first 4 thumbs in the gallery, but the current php code displays all the thumbs due to this line.. "php while next image (false, firstpageimages)" but if I change firstpageimages to a number such as 4, i get the first 4 thumbs for gallery 1, then 2 thumbs for each following gallery.. the array number doesnt reset.
3. I'd like to change the anchor link for all the thumbs to just point to the 1st photo of each album
--Thanks so much for any help!
The code I used is below:
`
<!--insert-->
[list]
<?php
$counter = 0;
while (next_album()):
?>
<li class="gal">
<div id="story"><!-- li div container-->
<div id="mainthumb"> <a>" title="<?php echo gettext('View album:'); ?> <?php echo getAnnotatedAlbumTitle();?>"><?php printCustomAlbumThumbImage(getAnnotatedAlbumTitle(), null, 448, 300, null, null); ?></a>
<!--insert the other thumbs here-->
<?php while (next_image(false, $firstPageImages)): ?>
<div class="imagethumb"><a>" title="<?php echo getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?></a>
<?php endwhile; ?>
</div>
</div><!--end li div container-->
<!--/ insert thumbs here-->
<?php
if ($counter == 2) {
echo "[/list]
[list]";
}
$counter++;
endwhile;
?>
[/list]
<!--end insert-->
<br clear="all" />
<?php printPageListWithNav("� ".gettext("prev"), gettext("next")." �"); ?>
</div>
`