Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Subalbums only shown on first album page
https://www.tinywebgallery.com/forum/viewtopic.php?f=3&t=183
Page 1 of 1

Author:  infirmus [ 21. Feb 2006, 09:38 ]
Post subject:  Subalbums only shown on first album page

It would be great if subalbums were only shown on the first page of an album.

This would mean that less pages would be needed for the album, as there would be room for more thumbnails on every album page but the first.

Author:  TinyWebGallery [ 21. Feb 2006, 10:10 ]
Post subject: 

Good idea - I'll putthis on my todo list ... ;).

/Michael

Author:  infirmus [ 21. Feb 2006, 10:21 ]
Post subject: 

OK, thanks.

I actually just did it myself...

I edited index.inc.php and edited the function show_folders()

I added the line
Code:
global $twg_offset;
underneath the other globals and changed line 66 from
Code:
    if ($nr > 0) {
to
Code:
    if ($nr > 0 && $twg_offset == 0) {
But of course you will probally want to put in the option to turn it on/off and want to check what i did is right (it seems to work fine).

Author:  TinyWebGallery [ 21. Feb 2006, 11:07 ]
Post subject: 

actually - no,

I don't want to have any more options and I
would have made it the same way ;).

Because why show the subfolder again and again ?

I'll include this in 1.4 and make some tests :).

Thanks,
Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/