Display last additions only at the mainpage? Display last additions only at the mainpage?
 

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

Display last additions only at the mainpage?

Started by lighter, April 15, 2004, 09:40:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lighter

How do i display the last additions, random files only at the main page?

I did a search and this was the closest i get.  :cry:

Display last uploads only in category/album pages
http://forum.coppermine-gallery.net/index.php?topic=2487&highlight=mainpage

Joachim Müller

use the code posted there forcase 'random':as well (not tested, but should work).

GauGau

lighter

Tried the code on index.php and it didnt work.

Instead, the last addition didnt load at mainpage, but loaded 2 times at category/album page.

Quotecase 'random':
               if ($cat!=0) {
                display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                flush();
               }
                break;

lighter


Tarique Sani

Try this

Quote
            case 'lastup':
               if ($cat!=0) {
                display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                flush();
               }
                break;
SANIsoft PHP applications for E Biz