Is cpm_getAlbumListFrom buggy? Does not return all images. Is cpm_getAlbumListFrom buggy? Does not return all images.
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Is cpm_getAlbumListFrom buggy? Does not return all images.

Started by baerlichkeit, February 26, 2008, 01:46:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

baerlichkeit

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

baerlichkeit

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