Hi all, just curious if this can be used to make a gallery page of sorts?
Fancybox wrapper
[deleted]
trever-s Potentially, yes, but not without further development. In it's current form, it's designed to act as a simple wrapper so won't support galleries off the bat. Having said that, there is already support for clicking one image in a topic, and then the ability to cycle through all images in the topic.
Will this work with images that are uploaded via fof/upload? Coz those don't have [img] tag
I have something like that for fof/upload. It only requires to add one line and 2 files.
[deleted]
@User24 @Anonymous43 it works directly without any need for modifications - fof/upload
is fully supported. I use it all the time on my own site, and it works without issue.
[deleted] I have no idea how or what your extension covers. All images or some images. All at once or single with no arrows.
All I'm saying is that if it didn't, there is a way. Simple alternative, that's all.
- Edited
A minimal no non-sense flarum extension which enables all images to be wrapped in Fancybox by adding a data-fancybox attribute to all img tags
It is said img tags in the extiverse description so wanted to ask, i installed it today in my forum and saw only img tags in wrapper but not the images that were uploaded via fof/upload... am i missing anything ?
EDIT:
Yes it is working for images uploaded via fof/upload
too
[deleted]
User24 Yes it is working for images uploaded via fof/upload too
Yes, there is logic that looks for image extensions, and not just <img> tags
[deleted]
Hari There is, yes. I can add that fairly easily.
[deleted]
Hari The extension is a simple wrapper and has no settings. I have no intention of adding any settings either. Easy to exclude GIF images, but this will be across the board with no option to change (unless you fork and change it).
Is there a way to hide the bar below the photos which becomes green after mouse hover over the picture?
Great Extension! Absolutely appreciated!
[deleted]
- Edited
wassup can you provide a screenshot ? I think we can do this with CSS but I want to be sure what you are referring to is the same as what I think.
Here's the link to it. I'm referring to this bar. Thanks!!
[deleted]
- Edited
wassup Thought as much ! @MikeJones reported something similar - it's not in fact caused by Fancybox directly, but a style applied in Flarum that creates a bottom-border
when you hover over images and links.
See this for a fix - https://discuss.flarum.org/d/26103-fancybox-wrapper/26 - it's some way up the list and easy to miss
[deleted]
wassup Pleasure. I take it this worked as expected ?