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: ramdon of the lasted upload albums?  (Read 4972 times)

0 Members and 1 Guest are viewing this topic.

Piceo2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
ramdon of the lasted upload albums?
« 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.

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

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: ramdon of the lasted upload albums?
« Reply #1 on: March 19, 2007, 03:44:48 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.

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



Logged
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

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: ramdon of the lasted upload albums?
« Reply #2 on: March 19, 2007, 04:07:59 pm »

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
Logged

Piceo2k

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 28
Re: ramdon of the lasted upload albums?
« Reply #3 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.
Logged

vuud

  • Moderator
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1803
  • [cpmfetch.fistfullofcode.com]
    • Fist Full Of Code
Re: ramdon of the lasted upload albums?
« Reply #4 on: March 21, 2007, 02:48:49 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.
Logged
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
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.