coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: baerlichkeit on February 26, 2008, 01:46:43 AM

Title: Is cpm_getAlbumListFrom buggy? Does not return all images.
Post by: baerlichkeit on February 26, 2008, 01:46:43 AM
Hi,
the search did not help me, or I did not search with the right terms...

I have a problem here. For my Fullscreen viewer i need to get a list of all images in an album.

What works:
calculating image count of the album
$count = $objCpm->cpm_getMediaCountForAlbum($album);
and than retrieving all images with
$objCpm->cpm_viewLastAddedMediaFrom("album=3",$count,1)

My problem:
if I use the getAlbumListFrom function (perhaps I use it the wrong way?) it returns only the first image. Even if I use "" as source, it displays the first image of each album.
$objCpm->cpm_getAlbumListFrom("",10,10,)
The walk around above works for me, but i really don't understand, what's wrong here. Do I have to add any options? I thought no, because i use the resultset.

Thanks for your help
Andreas
Title: Re: Is cpm_getAlbumListFrom buggy? Does not return all images.
Post by: baerlichkeit on February 26, 2008, 02:58:31 AM
Ok,
next time I will think before posting  :-X

QuoteGenerates a list of Albums based

It generates a list of albums, not of images... :(

Andreas