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: Last Album with Cpmfetch  (Read 4966 times)

0 Members and 1 Guest are viewing this topic.

Coline

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Last Album with Cpmfetch
« on: March 04, 2009, 08:09:52 pm »

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 :

Code: [Select]
<?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.
Logged

Coline

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Last Album with Cpmfetch
« Reply #1 on: March 05, 2009, 02:31:39 pm »

i find bymelf
Logged

Pascal YAP

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 13833
  • Hello World :-)
    • CPG 1.5.x ExperiMental website
Re: Last Album with Cpmfetch
« Reply #2 on: March 05, 2009, 03:38:37 pm »

Please explain your solution to other Coppermine Users  ;)
Thanx
Logged

Coline

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 55
Re: Last Album with Cpmfetch
« Reply #3 on: March 05, 2009, 04:54:55 pm »

My code is :

Code: [Select]
<?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/

Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 20 queries.