Last Album with Cpmfetch Last Album with Cpmfetch
 

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

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/