Creating Album List with CPMFetch possible? Creating Album List with CPMFetch possible?
 

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

Creating Album List with CPMFetch possible?

Started by bngMONSTER, December 16, 2006, 03:16:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bngMONSTER

Hi!
is it possible to create a list of all albums in my gallery with CPMFetch
sortet A->Z
and the category behind the album in a table?

like this?




| Albumname1 (link to album)| category of Album 1 (link to category) |



| Albumname2 (link to album)| category of Album 1 (link to category) |



| Albumname2 (link to album)| category of Album 1 (link to category) |



other way to do that?
greetz MONSTER
PS Antwort in Deutsch geht auch :)

vuud

Quote from: bngMONSTER on December 16, 2006, 03:16:39 PM
Hi!
is it possible to create a list of all albums in my gallery with CPMFetch
sortet A->Z
and the category behind the album in a table?

like this?




| Albumname1 (link to album)| category of Album 1 (link to category) |



| Albumname2 (link to album)| category of Album 1 (link to category) |



| Albumname2 (link to album)| category of Album 1 (link to category) |



other way to do that?
greetz MONSTER
PS Antwort in Deutsch geht auch :)

I have a client that has a requirement similar to that for a project I am working on.  Fortunately that functionality will then be passed back into the development release.

But for now, cpmFetch does not have anything like that...


Please post for help to the forum... PM me only if you are sending security related items (passwords, security problems, etc).

cpmFetch - Images, RSS feeds from CPG from outside CPG
New release notification signup also. 
See http://cpmfetch.fistfullofco

niks_007

hi i did similer thing what you are asking hope can help you.

    <?
include "cpmfetch.php";
$objCpm = new cpm('/wallpapers');
$objCpm->cpm_setReturnType("resultset");
$data = $objCpm->cpm_viewLastAddedMediaFrom(1000, 1000, "cat=6,18");

$cnt = 0;
$arrayofalbums = array();

foreach ($data as $row) {
if (! in_array($row['aTitle'],$arrayofalbums))
{
?>
<a href="wallpapers/thumbnails.php?album=<? print $row['pAid']; ?>"> <?
print $row['aTitle'];
print '</a>';
print "";
print "\n";
array_push($arrayofalbums,$row['aTitle']);
$cnt++;
print "<br>";
if ($cnt == 6) break;
}
}
$objCpm->cpm_close();
?>


This displays the list of albums from seleted category but you can leave this blank to get if from all categories.

Thanks
Niks