Announcement

  •  » Extensions
  •  » GDThumb | Masonry style only on photos and not on albums?

#1 2021-11-08 17:46:19

Ducko
Member
2021-11-08
2

GDThumb | Masonry style only on photos and not on albums?

Aloha.

Is it possible to use the GDThumb plugin in such a way that it only applies the masonry style to photos but not to albums?

I have used GThumb+ so far, but unfortunately it is no longer maintained. In addition, it is not compatible with Piwigo 12.

Still, I don't want to lose the clean and symmetrical look of my album landing page.

CSS? Modifications directly in the source code of the plugin? Other possibilities?

Unless I am able to solve this problem, the plugin is unfortunately completely useless for me :-(

Other alternatives?

Thanks for reading ;-)

---

Piwigo             11.5.0
OS:                     Linux
PHP:             7.4.23
MySQL:             5.5.5-10.5.11-MariaDB-1:10.5.11+maria~focal-log
Graphic library: ImageMagick 6.9.10-23

Offline

 

#2 2021-11-08 18:10:11

erAck
Only trying to help
2015-09-06
1337

Re: GDThumb | Masonry style only on photos and not on albums?

GThumb+ works fine here, it just needs two modifications. See patches in [Forum, topic 31596] Patches for plugin compatibility in Piwigo 12.


Running Piwigo at https://erack.net/gallery/

Offline

 

#3 2021-11-09 14:54:03

Ducko
Member
2021-11-08
2

Re: GDThumb | Masonry style only on photos and not on albums?

Problem (at least partially) solved.

An update for GThumb + is available since today and seems now to be fully compatible to Piwigo 12.

But my question from the first post remains unanswered ... :-(

@erAck: Thanks for your help!

Offline

 

#4 2021-11-10 05:19:02

Serge D
Member
US
2014-07-15
372

Re: GDThumb | Masonry style only on photos and not on albums?

GDThumb uses unified style for both albums and pictures. there is icon indicating type of the tile and if you force overlay it would be visible without hover.
There are no plans to support different "box" styles for albums vs picture (or any other media type)
Sorry

Last edited by Serge D (2021-11-10 05:20:20)

Offline

 

#5 2021-11-11 22:56:05

tnovak
Member
2018-09-27
12

Re: GDThumb | Masonry style only on photos and not on albums?

Ducko wrote:

Is it possible to use the GDThumb plugin in such a way that it only applies the masonry style to photos but not to albums?

Hi!

If I correctly understand your goal, there's an easy (but crude) solution for your problem. (Surely there is some more elegant edit, but this is the first thing I tried.)

Just replace content of gdthumb_cat.tpl file (from plugin template folder) with content of mainpage_categories.tpl file (from Piwigo's  themes\default\template folder or from theme you are using)

Seems to work as intended at first try on my installation.

Hope it helps you. If not, sorry.


Edit:
Found more elegant solution, just comment (add "//" on beginning) line 45 in main.inc.php file from plugin folder:
//add_event_handler('loc_end_index_category_thumbnails', 'GDThumb_process_category', 50, 2);

Done :-)

Last edited by tnovak (2021-11-12 10:40:44)

Offline

 

#6 2021-11-18 07:48:40

Serge D
Member
US
2014-07-15
372

Re: GDThumb | Masonry style only on photos and not on albums?

crude, but a good hack :)
may be I'll surface it as an option

Last edited by Serge D (2021-11-18 07:49:13)

Offline

 
  •  » Extensions
  •  » GDThumb | Masonry style only on photos and not on albums?

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact