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
GThumb+ works fine here, it just needs two modifications. See patches in [Forum, topic 31596] Patches for plugin compatibility in Piwigo 12.
Offline
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
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
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
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