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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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