Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Display all Latest Uploads via page links (1, 2, 3, Next, Previous)  (Read 6671 times)

0 Members and 1 Guest are viewing this topic.

vegascoug

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 59

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
Logged

Nibbler

  • Guest

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

Code: [Select]
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.
Logged

DaBe

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 110
Re: Display all Latest Uploads via page links (1, 2, 3, Next, Previous)
« Reply #2 on: April 04, 2008, 11:34:38 pm »

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
Logged

Nibbler

  • Guest
Re: Display all Latest Uploads via page links (1, 2, 3, Next, Previous)
« Reply #3 on: April 04, 2008, 11:52:33 pm »

You can't paginate random files. That would make no sense.
Logged

DaBe

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 110
Re: Display all Latest Uploads via page links (1, 2, 3, Next, Previous)
« Reply #4 on: April 04, 2008, 11:54:27 pm »

ah yes..is my mistake..is tooo late.. ::)

thx very much!
Logged

streetart

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 48
Re: Display all Latest Uploads via page links (1, 2, 3, Next, Previous)
« Reply #5 on: August 07, 2008, 12:38:47 am »

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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Display all Latest Uploads via page links (1, 2, 3, Next, Previous)
« Reply #6 on: August 07, 2008, 07:24:03 am »

You're looking for something completely different and therefor you shouldn't have hijacked this thread. Locking. Start a thread of your own.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 19 queries.