Different number of columns on thumbnail page in different albums Different number of columns on thumbnail page in different albums
 

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

Different number of columns on thumbnail page in different albums

Started by pytheas, September 17, 2004, 10:48:49 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pytheas

I use the current default of 4 columns on my thumnail page which is fine up to now.  I have added an album of panoramic photos and therefore only want to display 1 column but only in that one album.

I have looked through all the posts here and cannot find anything.  Ditto with the FAQ and User Docs.

If I have missed a post that answers my questions could you point me in the right direction.

Help would be appreciated.

Stu

Joachim Müller

[not tested]: edit thumbnails.php, finddisplay_thumbnails($album, (isset($cat) ? $cat : 0), $page, $CONFIG['thumbcols'], $CONFIG['thumbrows'], true);and replace with
Quoteif ($album == '999') {
    display_thumbnails($album, (isset($cat) ? $cat : 0), $page, 1, $CONFIG['thumbrows'], true);
} else {
    display_thumbnails($album, (isset($cat) ? $cat : 0), $page, $CONFIG['thumbcols'], $CONFIG['thumbrows'], true);
}
(replacing '999' with the actual album ID that is supposed to have only one column).
However,, you will run into issues with meta albums not displaying 1 column only for thumbs from this album.

Joachim

pytheas

many thanks for the extremely prompt reply, i had a feeling it would be something in code just didn't have a clue where  :)

btw when you say i may have issues with meta albums, do you mean albums like last uploaded and most poular?

Any further info would be appreciated.

Coppermine is the best piece of software I have installed on my site.

Stu

Joachim Müller

Quote from: pytheas on September 17, 2004, 11:23:58 PM
btw when you say i may have issues with meta albums, do you mean albums like last uploaded and most poular?
yes

pytheas

GauGau

I have added and uploaded the new code.  I can see what it is trying to do but for some reason it displays 1 row and 3 columns.  When I use the original file I get 2 rows and 4 colums. I am stumped.  I have tried changing the numbers in your code mod but it doesn't work as I expect it to :(

Nibbler

Replace that block with

if ($album == '999') $CONFIG['thumbcols'] = 1;
display_thumbnails($album, (isset($cat) ? $cat : 0), $page, $CONFIG['thumbcols'], $CONFIG['thumbrows'], true);


Replace the 999 as before

pytheas

Works perfectly.  Thanks guys.  Problem solved in a very short period of time.  Post can be marked as solved  ;D