coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: josephineb on February 01, 2009, 01:55:23 PM

Title: Albums from one user
Post by: josephineb on February 01, 2009, 01:55:23 PM
Hi!
Sorry if my English isn't very well...
I want to get te albums from one user on a page. I've already this:
<?php
require_once "./cpmfetch/cpmfetch.php";
$objCpm = new cpm./cpmfetch/cpmfetch_config.php");
$objCpm->cpm_getAlbumListFrom ("owner=test", 1,  3);
$objCpm->cpm_close();

?>


That shows: http://faziel.jgraphics.nl/fotoboek.php, that's right. But it only shows the first image of each album.
I want something like that: http://www.faziel.jgraphics.nl/index.php?cat=10002. (see the attachment).

The albums with the album title in a table...

I'm a cpmFetch newbie, can someone help me?

Thanks before!
Title: Re: Albums from one user
Post by: josephineb on February 01, 2009, 01:56:58 PM
I can't edit my topic, but there was an error in de code:
require_once "./cpmfetch/cpmfetch.php";
$objCpm = new cpm "./cpmfetch/cpmfetch_config.php");
$objCpm->cpm_getAlbumListFrom ("owner=test", 1,  3);
$objCpm->cpm_close();