Last Album with Cpmfetch Last Album with Cpmfetch
 

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

Last Album with Cpmfetch

Started by Coline, March 04, 2009, 08:09:52 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Coline

hi,
i would like to put on my site the last album upload. Now i have the last pics (so 4 pics in the same album) . I have cpmfetch on my gallery and on my site.
I search in the forum but i didn't find anythings.
My Site : http://www.avrilspirit.com/
My Gallery: http://www.avrilspirit.com/gallery/
My version is Coppermine Photo Gallery 1.4.20 (stable) and i have the modded by stramm.

my code is :

<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(2,2);
$options = array( 'windowtarget' => '_blank');
$objCpm->cpm_close(); 
?>


Sorry for my bad english but i'm french ;)

thanks for helping.

Coline


Pascal YAP

Please explain your solution to other Coppermine Users  ;)
Thanx

Coline

My code is :

<?php
include "./gallery/cpmfetch/cpmfetch.php";
$objCpm = new cpm("./gallery/cpmfetch/cpmfetch_config.php");
$objCpm-> cpm_viewLastUpdatedAlbumsFrom (0,3,1);
$options = array( 'windowtarget' => '_blank');
$objCpm->cpm_close(); ?>



And this is the result : http://www.avrilspirit.com/