ramdon of the lasted upload albums? ramdon of the lasted upload albums?
 

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

ramdon of the lasted upload albums?

Started by Piceo2k, March 19, 2007, 03:37:24 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Piceo2k

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

vuud

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?



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

Piceo2k

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

Piceo2k

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.

vuud

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.
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