News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

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 2 Guests 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://coppermine-gallery.com/forum/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