Announcement

  •  » Requests
  •  » PLUGIN Request - Share photos to Forums and Social media

#1 2020-03-19 08:25:49

landyvlad
Member
Brisbane, Australia
2017-08-01
32

PLUGIN Request - Share photos to Forums and Social media

I would like to request a plugin please which adds functionality to readily and easily share photos to forums and to social media.

Lychee has this implemented in core - see https://lychee.electerious.com/ scroll down and click on number 4.

As far as I'm concerned the direct link is the most important.
Even better if bbcode could be included - so that when clicked it copies the URL (with surrounding IMG tags) to teh clipboard for an easy 'paste' over on the forum.


Obviously social media sharing is also a big thing among the kids these days LOL


Ideally I'd like to see this in the piwigo core but until that occurs (if ever) a plugin to achieve this would be MOST WELCOME.


Thank you.


piwigo - because photobucket can suck my .....

Offline

 

#2 2020-03-19 21:25:11

executive
Member
2017-08-16
1099

Re: PLUGIN Request - Share photos to Forums and Social media

as one who avoid social media like the plague, I would prefer it wasn't in the core

Offline

 

#3 2020-03-20 02:02:47

landyvlad
Member
Brisbane, Australia
2017-08-01
32

Re: PLUGIN Request - Share photos to Forums and Social media

Yeah social media is the least of my concerns - I want to be able to share it in forums. This was in fact why I decided to go with piwigo in the first instance. Just can't seem to be able to do it anymore?


The way Lychee does it seems sensible, but even just having the permalink listed under a photo would be very helpful for me. (This is done very well by the SMF forum plugin 'SMF gallery' if anyone is familiar with that? I can screenshot if desired).

I really do think it's  something that ought to be in core but as long as I can get the function a plugin would be fine.


Is anyone able to 'whip up' such a plugin please?


piwigo - because photobucket can suck my .....

Offline

 

#4 2020-03-20 02:09:44

landyvlad
Member
Brisbane, Australia
2017-08-01
32

Re: PLUGIN Request - Share photos to Forums and Social media

For clarity this is how 'SMF gallery' does it


See the photo.

1: This is a field showing the BB code for a direct link to the photo
In the gallery settings its possible to have multiple fields here, including BBcode, HTML, etc


2: Clicking this icon to the right of the field, copies the contents of the field to the clipboard


It's then a simple matter to go to the forum post being created and simply click paste - job done.


In the case of a plugin for piwigo I'd also suggest that the code shown would be generated based on the currently displayed size (from that drop down menu)

Last edited by landyvlad (2020-03-20 02:15:57)


piwigo - because photobucket can suck my .....

Offline

 

#5 2020-03-20 08:26:33

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7056

Re: PLUGIN Request - Share photos to Forums and Social media


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2020-03-20 17:26:13

lesmond
Member
2020-03-20
3

Re: PLUGIN Request - Share photos to Forums and Social media

Just tried this on a new install unfortunately its no longer compatible..

Code:

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; PiwiShack has a 
deprecated constructor in /public_html/piwigo/plugins/piwishack/class.inc.php on line 21 
Warning: Cannot modify header information - headers already sent by 
(output started at /public_html/piwigo/plugins/piwishack/class.inc.php:21) 
in /public_html/piwigo/include/page_header.php on line 86

Looks like the above error was fixed, although it dont make it compatible

https://piwigo.org/forum/viewtopic.php? … 81#p171681

Find in /plugins/piwishack/class.inc.php

Code:

  function PiwiShack($plugin_name, $plugin_path)

change to

Code:

  function __construct($plugin_name, $plugin_path)

Last edited by lesmond (2020-03-20 18:33:56)

Offline

 

#7 2020-03-20 19:05:23

executive
Member
2017-08-16
1099

Re: PLUGIN Request - Share photos to Forums and Social media

If you read carefully you will see that there is no error, and that it is warning you about some future versions.
(If you search the forum for "deprecated" you will find out how to turn these off)

Does the plugin still do its job?

When you look at the plugin page, the author hasn't touched the plugin in 6 years, and likely won't again.

My advice is to do the manual fix. That will be as compatible as it gets.

Offline

 

#8 2020-03-20 19:49:27

lesmond
Member
2020-03-20
3

Re: PLUGIN Request - Share photos to Forums and Social media

Plugin works ok now after I made the edits, one or two other edits I made also.

I'm not clever enough to be able to make it compatible though :(

Last edited by lesmond (2020-03-20 19:50:06)

Offline

 

#9 2020-03-20 19:54:28

executive
Member
2017-08-16
1099

Re: PLUGIN Request - Share photos to Forums and Social media

compatible means it works :)

Offline

 

#10 2020-03-20 19:55:56

lesmond
Member
2020-03-20
3

Re: PLUGIN Request - Share photos to Forums and Social media

executive wrote:

compatible means it works :)

Then it works ?

Last edited by lesmond (2020-03-20 19:56:59)

Offline

 

#11 2020-12-17 04:34:29

landyvlad
Member
Brisbane, Australia
2017-08-01
32

Re: PLUGIN Request - Share photos to Forums and Social media

I couldn't get that working, so it'd be great if someone could write an updated 'lite' mod fro sharing.  As far as I'm concerned I ONLY need BBcode.

Sure I can right click on the image and click copy url BUT that only works in some browsers not others, and I don't always have access to the appropriate ones. 

This is really one of the few frustrations I have with piwigo, it's good otherwise.


piwigo - because photobucket can suck my .....

Offline

 
  •  » Requests
  •  » PLUGIN Request - Share photos to Forums and Social media

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact