latest uploads meta latest uploads meta
 

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]

Main Menu

latest uploads meta

Started by streetart, August 07, 2008, 04:56:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

streetart

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

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..=(


Joachim Müller

That will definitely overload the page and look silly. I doubt that your visitors will appreciate 1000 thumbnails on one page.

streetart

the number 100 is only a example..is that in the form possible and can you help me?

Αndré

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)

streetart

the index.php, I know when I use another file, I can take the cpmfetch.

Αndré

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.

Αndré

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.

streetart

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.

Αndré

I can't imagine what you mean. Post a link to your gallery.