coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: lighter on April 15, 2004, 09:40:35 AM

Title: Display last additions only at the mainpage?
Post by: lighter on April 15, 2004, 09:40:35 AM
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
Title: Display last additions only at the mainpage?
Post by: Joachim Müller on April 15, 2004, 09:45:26 AM
use the code posted there forcase 'random':as well (not tested, but should work).

GauGau
Title: Display last additions only at the mainpage?
Post by: lighter on April 15, 2004, 09:57:22 AM
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;
Title: Re: Display last additions only at the mainpage?
Post by: lighter on April 27, 2004, 09:11:40 AM
*bump* anyone else?
Title: Re: Display last additions only at the mainpage?
Post by: Tarique Sani on April 27, 2004, 09:47:47 AM
Try this

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