The npm team tries quite hard to come up with a system to deliver packages efficiently and reliably, so while I have my grievances, I can't deny we'd be lost without them!
My hope is the client code continues to improve as well 😄
This NodeBB plugin feeds all posted images into a lightbox gallery.
npm install nodebb-plugin-gallery
Get the source on Github
This is top on my list of features I'll need.
Question: As the gallery is viewed, does it reload or refresh the page or is it via AJAX? And is that configurable?
This is the lib I used: http://fancybox.net/
Maybe you could play around with the settings in
https://github.com/psychobunny/nodebb-plugin-gallery/blob/master/public/lib/main.js to potentially get it the way you want. If not, I think it should be pretty straightforward to use this plugin as a base to create a new plugin that uses whatever gallery script that you prefer
Sounds good. Thanks.
Works fine on mobile?
just FYI this plugin has a bug when installed from npm, baris has a pull request pending but here's the crash when I run this in production:
fs.js:427 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ Error: ENOENT, no such file or directory '/NodeBB/node_modules/nodebb-plugin-gallery/public/venor/fancybox/helpers/jquery.fancybox-buttons.js'
Thanks for the reminder @bdharrington7 merged and published 0.0.2
@psychobunny in v0.5-4 it makes composer in mobile show behind the keyboard and not scaling. Users can't see the composer so they can't see what they typed in.
That's odd, I don't think this plugin even affects the composer
@psychobunny oh, my fault. It's not this plugin. It's custom header plugin. I will report him
P/s: finally I don't no what's wrong with the composer scaling. It's ok now when I restart the nodeBB. That's really weird.
Seems related where you can not scroll or see what you are typing because of the keyboard.
From a Samsung S5:
Holy eff that was a big screen shot. Sorry I didn't realize it would be that massive.
Updated plugin to work with latest (0.9.2), and fixed some random bugs as well
You can use the mousewheel or keyboard to scroll through images now
Hi @psychobunny any chance to have this updated to work with nodeBB 1.1.x ? It's a killer feature for my photography forum