coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 cpmFetch by vuud => Topic started by: BritneyFM on June 14, 2008, 12:34:38 PM

Title: Any Latest Photos Plugin?
Post by: BritneyFM on June 14, 2008, 12:34:38 PM
Hello,

I would like to display my 5 or 4 latest photos, on my index page of my website.
Is that possible somehow?
Title: Re: Any Latest Photos Plugin?
Post by: BritneyFM on June 14, 2008, 12:39:05 PM
Quote from: BritneyFM on June 14, 2008, 12:34:38 PM
Hello,

I would like to display my 5 or 4 latest photos, on my index page of my website.
Is that possible somehow?

In thumbnails btw
Title: Re: Any Latest Photos Plugin?
Post by: Nibbler on June 14, 2008, 12:41:35 PM
http://forum.coppermine-gallery.net/index.php/topic,35450.0.html
Title: Re: Any Latest Photos Plugin?
Post by: BritneyFM on June 14, 2008, 01:05:24 PM
Quote from: Nibbler on June 14, 2008, 12:41:35 PM
http://forum.coppermine-gallery.net/index.php/topic,35450.0.html

I installed...
Whats the include code for my index?
Title: Re: Any Latest Photos Plugin?
Post by: BritneyFM on June 14, 2008, 01:16:22 PM
Quote from: BritneyFM on June 14, 2008, 01:05:24 PM
I installed...
Whats the include code for my index?

Nevermind found it...

Now it displays my 4 latest images in a row, but i want "2 images <br> 2 images"
My sidebar table looks screwed up now :/
Title: Re: Any Latest Photos Plugin?
Post by: fangweile on June 14, 2008, 02:10:18 PM
$objCpm->cpm_viewLastAddedMedia(6,1);

The no. 6 is the number of rows per images to show.
The no. 1 is the no of columns per to show the images.

your code must be like this

$objCpm->cpm_viewLastAddedMedia(2,2);