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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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