coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: streetart on August 07, 2008, 04:56:07 PM

Title: latest uploads meta
Post by: streetart on August 07, 2008, 04:56:07 PM
hello

On my Frontpage of the Gallery I want display 6 rows and 10 cols..but on the page: thumbnails.php?album=lastup I want display 100 rows and 10 cols.

Its no a problem.. but I want use this mod:http://forum.coppermine-gallery.net/index.php/topic,43878.0.html (http://forum.coppermine-gallery.net/index.php/topic,43878.0.html)

how I can make that?

I think I must modify this code:
                    case 'lastup':
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;


but how?

In the admin I can set on the metaalubms 6 rows, but when I than click on the page two, I have the 100 rows..=(

Title: Re: latest uploads meta
Post by: Joachim Müller on August 07, 2008, 06:00:48 PM
That will definitely overload the page and look silly. I doubt that your visitors will appreciate 1000 thumbnails on one page.
Title: Re: latest uploads meta
Post by: streetart on August 07, 2008, 06:09:36 PM
the number 100 is only a example..is that in the form possible and can you help me?
Title: Re: latest uploads meta
Post by: Αndré on August 08, 2008, 08:51:23 AM
Quote from: streetart on August 07, 2008, 04:56:07 PM
On my Frontpage of the Gallery I want display 6 rows and 10 cols..but on the page: thumbnails.php?album=lastup I want display 100 rows and 10 cols.

Is your "frontpage" the index.php file or a self written file? (like on my page: welcome.php)
Title: Re: latest uploads meta
Post by: streetart on August 08, 2008, 09:16:10 AM
the index.php, I know when I use another file, I can take the cpmfetch.
Title: Re: latest uploads meta
Post by: Αndré on August 08, 2008, 09:35:45 AM
After thinking about what you want, the solution is very simple.

Open the Config -> Album list view -> The content of the main page ->
There is something like "breadcrumb/catlist/alblist/random,2/lastup,2/lasthits,2". What you have to insert is "lastup,6", if you want to display 6 rows of the latest uploads on the main page.
The number of columns is set in "Thumbnail view -> Number of columns on thumbnail page" and can't be changed via config.
Title: Re: latest uploads meta
Post by: Αndré on August 08, 2008, 09:37:38 AM
If you want to change the number of columns on the main page, you have to open index.php, search
                    case 'lastup':
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

and change $CONFIG['thumbcols'] to a number of your choice.
Title: Re: latest uploads meta
Post by: streetart on August 08, 2008, 09:40:50 AM
yes I tryed that. but that I also can make in the admin settings. I write I use the meta album paged mod. and when I have 6 rows, and the lastup site I want display 100 rows and I click on the start page on page two..than I have a error.
Title: Re: latest uploads meta
Post by: Αndré on August 08, 2008, 09:42:18 AM
I can't imagine what you mean. Post a link to your gallery.