Display all Latest Uploads via page links (1, 2, 3, Next, Previous) Display all Latest Uploads via page links (1, 2, 3, Next, Previous)
 

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 all Latest Uploads via page links (1, 2, 3, Next, Previous)

Started by vegascoug, May 18, 2007, 09:01:27 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vegascoug

I have read the docs and posts on this board, but cannot find an answer to this.  I know where to configure the number of rows for lastup,2, etc.  If I change the 2 to a 3 I will see 3 rows of 4 thumbs vs. 2.  My questions is how do I add the ability to go to the next group of latest additions?  I don't use Coppermine all that often, this is for a customer of mine.  She said that version 1.4.3 used to have those links, so maybe it was a mod.  I didn't set this up for her, only helping her update it.

Is it a mod, or a setting within the config I cannot find to display all images.  I don't want them all on the home page, but let's say I can set the value to 1 so it displays the first 4 thumbs, but I want to scroll through the images and see what the 4 before that was.  On other pages there are links (numbers) in the nav bar so it seems that this should be possible.

Thank you!

Mike

Nibbler

Meta albums don't have pagination by default. You can edit index.php here


switch ($matches[1]) {
                    case 'breadcrumb':
                        // Added breadcrumb as a separate listable block from config
                        if (($breadcrumb != '' || count($cat_data) > 0) && $cat != 0) theme_display_breadcrumb($breadcrumb, $cat_data);
                        break;

                    case 'catlist':
                        if ($breadcrumb != '' || count($cat_data) > 0) theme_display_cat_list($breadcrumb, $cat_data, $statistics);
                        if (isset($cat) && $cat == USER_GAL_CAT) {
                            list_users();
                        }
                        flush();
                        break;

                    case 'alblist':
                        list_albums();
                        flush();
                        break;

                    case 'random':
                        display_thumbnails('random', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastup':
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastalb':
                        display_thumbnails('lastalb', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        break;

                    case 'topn':
                        display_thumbnails('topn', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'toprated':
                        display_thumbnails('toprated', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lastcom':
                        display_thumbnails('lastcom', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'lasthits':
                        display_thumbnails('lasthits', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

                    case 'anycontent':
                        if ($cat == 0) {
                            ob_start();
                            /**
                             * Any php code or HTML can be put in this file and will be displayed
                             */
                            include('anycontent.php');
                            $anycontent = CPGPluginAPI::filter('anycontent',ob_get_contents());
                            ob_end_clean();
                            echo ($anycontent);
                        }
                        flush();
                        break;
                }


And change false to true to enable tabs. I don't know how well that would work though.

DaBe

hello

thx nibbler.

i have change the false to true. there display:
"0 files on 0 sites              1"

but when I go the the archive(../thumbnails.php?album=lastup&cat=0), then they display:
"32 files on 2 site(s)       1 2"

is everywhere a mistake ?

cpg the newest version with modpack 1.4.16 and the page is www.54art.ch

Nibbler


DaBe


streetart

hello

I search the same but a bit modify.

On the Gallery frontpage I want display only 4 rows and 4 cols...with the paged links..when I clicked on page two, than it display the next 4 rows and 4 cols...but when I go on "thumbnails.php?album=lastup" page..than I want display all pictures...is this possible and who can me help?

Joachim Müller

You're looking for something completely different and therefor you shouldn't have hijacked this thread. Locking. Start a thread of your own.