Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Is cpm_getAlbumListFrom buggy? Does not return all images.  (Read 4698 times)

0 Members and 1 Guest are viewing this topic.

baerlichkeit

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 26
    • Meine Seite - Makrograf.com
Is cpm_getAlbumListFrom buggy? Does not return all images.
« 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
Code: [Select]
$count = $objCpm->cpm_getMediaCountForAlbum($album);and than retrieving all images with
Code: [Select]
$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.
Code: [Select]
$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
Logged

baerlichkeit

  • Contributor
  • Coppermine novice
  • ***
  • Offline Offline
  • Posts: 26
    • Meine Seite - Makrograf.com
Re: Is cpm_getAlbumListFrom buggy? Does not return all images.
« Reply #1 on: February 26, 2008, 02:58:31 am »

Ok,
next time I will think before posting  :-X

Quote
Generates a list of Albums based

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

Andreas
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 20 queries.