Topic Gallery displays all images from a discussion on a dedicated page.
Use cases
Ideal for image-focused communities and/or categories in which users post many pictures.
It allows for a full picture experience without the regular topic interface and other contents getting in the way.
If you open the gallery from a post, the gallery is filtered and only shows images starting from this post. You can cancel this filter with a single click:
Gallery URLs
The gallery URL syntax is the same as a regular topic, but /t/ is replaced with /gallery/:
This is such a cool idea and implementation.
Will try this later but is there a way to add image description that would show on the image popup below image?
Ah, thereās an oversight from me. This pluginās photoswipe configuration seems to show the original filename instead of the custom title. Iāll fix this
Apparently, while I can use the built-in lightbox (thatās I was doing in the first versions of this plugin), I canāt configure and tweak it for my needs. Notably, I couldnāt have it interact with my methods for the infinite loading/swiping, so I had to ship my own.
I canāt fix this, unfortunately. Image titles are written in the postsā content and arenāt stored in any table.
For performance reason, my queries donāt return the postsā content, so I canāt parse it to retrieve the titles.
I guess Iāll leave the filenames then. Even tho this information is rarely valuableā¦
Non-modified filenames most of the time just reveal where the image comes from and nothing more.
For example in my test instance:
image.png ā āimageā filenames are images pasted directly in the composer
Should I consider it as a sensitive information? Image names are used by default for titles when we upload them on Discourse. If we edit the titles, the original information is unavailable for users. Yet, this plugin discloses it.
Edit: Yeah, I should probably not display the original filename.
Thank you! Would it also be possible to have a setting do disable the automatic āfrom post #123ā when a user clicks on the gallery button mid-topic please? So basically the full gallery available no matter what specific gallery button you click.
You can disable the post buttons in the pluginās setting. The remaining gallery buttons (timeline, and end of topic) open the gallery from the start.
My first instinct, especially on mobile, is to click the gallery icon next to the topic progression element. But this icon opens the gallery from the start.
If I want to open the gallery from the current post, I need to scroll down until I reach the bottom of the post, where the āopen gallery from current postā button is:
Iām not sure how to solve this. Should I change which buttons open the gallery from the beginning or from the current post? Should I move the button somewhere else?
But Iām not a programmer (I know the basics, though), and while I took the time and made the effort needed to fully review and understand the code AI provided for my plugin to ensure it was safe and reliable, Iām neither confident or motivated enough to review the current PR and ensure itās as safe as reliable as the existing code, and that it doesnāt clutter the existing codebase.
Iād be very happy if an experienced programmer could review this change. I cannot allocate my own resources for this, but having a sponsored review (+ fixes of refactor if needed) would allow me to implement the feature.
If someone can have a broad estimate of how much time (or money, but thatās the same thing right?) such a non-AI work would take, perhaps it can be posted on Marketplace?
If you previously had the group permission set as everyone, you need to change it for anonymous_users and logged_in_users for unregisterd users and registered members be able to see the galleries.
The demo link in the first post was broken because of this, and I repaired it.