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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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