I use a 1.9.11 version and I like it that when I charge the edit file, was leaving a photo of the last upload albums. I tried with the following code but doesn't turn out that I want.
<?php
include "./cpmfetch.php";
$objCpm = new cpm("./cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(4,2);
$objCpm->cpm_viewRandomMedia (1,4);
$objCpm->cpm_viewLastAddedMediaFromCategory (4,2,array("tablestyle" => "test1","imagestyle" => "test1"));
$objCpm->cpm_close();
I want that apeared a photo of the last upload album
Quote from: Piceo2k on March 19, 2007, 03:37:24 PM
I use a 1.9.11 version and I like it that when I charge the edit file, was leaving a photo of the last upload albums. I tried with the following code but doesn't turn out that I want.
<?php
include "./cpmfetch.php";
$objCpm = new cpm("./cpmfetch_config.php");
$objCpm->cpm_viewLastAddedMedia(4,2);
$objCpm->cpm_viewRandomMedia (1,4);
$objCpm->cpm_viewLastAddedMediaFromCategory (4,2,array("tablestyle" => "test1","imagestyle" => "test1"));
$objCpm->cpm_close();
I want that apeared a photo of the last upload album
You want an image from the last added album? So you mean if you added on an album today, you want a photo from that, even if other photos were added elsewhere?
What I want is that each image is of a different album, but of the last ones raised. Bony, if I put so that 8 images are seen, that they are seen of 8 of last the album raised but of different album
Nobody knows to say to me like doing it? What I want to do is, of last the 8 albums of photos, 1 photo of each album. As it leaves in the gallery, but in mod this.
Quote from: Piceo2k on March 21, 2007, 01:34:03 PM
Nobody knows to say to me like doing it? What I want to do is, of last the 8 albums of photos, 1 photo of each album. As it leaves in the gallery, but in mod this.
maybe the cpm_viewLastUpdatedAlbumsFrom( ) function would do it.
Search the releasenotes for it. May or may not work.