Piwigo / piwigo-bootstrap-darkroom

A mobile-ready and feature-rich theme for Piwigo photo gallery, based on Bootstrap 4
Apache License 2.0
85 stars 40 forks source link

ask/comment about a photo via email? #29

Closed pablopeu closed 7 years ago

pablopeu commented 7 years ago

Now that I'm starting to use the piwigo as my main gallery with the darkroom theme I find the social buttons a great option, since its already being used by customers to ask about a certain photo. What would be great is to be able to do the same via email, say for example, if you press the email button an email (mailto:) would be composed with a link to the photo.

www.peu.net

btw, just updated to your latest release, thanks for keeping it active!!!

tkuther commented 7 years ago

You can add custom share buttons quite easily without modifying any template files. See https://github.com/tkuther/piwigo-bootstrap-darkroom/wiki/Add-custom-share-buttons for an example.

It could cause a short moment of "mhm, what??", but if that's the case I can try to explain it a bit better :-)

pablopeu commented 7 years ago

I managed to add the plugin, the mailto and a subject, but what its missing is the link to the image from where the mailto was triggered, like what happens when you press the big 3 ones, thats the beauty of the other 3 icons, a FB user clicks and s/he can send me the link to the photo.

Regarding the search box, I see that you commited a change, will check how it works on the next update, thanks. in the meantime I hacked my solution, like using a cleaver to modify the code, but in the end it worked, edited search.tpl so the only search box are tags LOL, not the best but in the meantime should make things easier to users LOL

www.peu.net

Cheers!!

On Wed, Feb 15, 2017 at 7:27 PM, Thomas Kuther notifications@github.com wrote:

You can add custom share buttons quite easily without modifying any template files. See https://github.com/tkuther/piwigo-bootstrap-darkroom/ wiki/Add-custom-share-buttons for an example.

It could cause a short moment of "mhm, what??", but if that's the case I can try to explain it a bit better :-)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/tkuther/piwigo-bootstrap-darkroom/issues/29#issuecomment-280160729, or mute the thread https://github.com/notifications/unsubscribe-auth/AYlubJEvPlcUCI0d2FREIVQ6YThesbfeks5rc3vKgaJpZM4MBo-t .

tkuther commented 7 years ago

The link to the image can be inserted using javascript window.location, like

.apped('<a href="mailto:me@xy.com?subject=Your%20Photo%20at%20 ' + window.location + '" title=... ...');