Hello/Hi/Greetings,
Has there been an extension developed that will allow users to generate links for their images or albums? I'd like to upload with Piwigo then use the image links on other websites.
Piwigo version: 2.7.4
PHP version:
MySQL version:
Piwigo URL: http://
Last edited by Scanner (2016-01-08 00:56:40)
Offline
Found my own answer... the Plugin piwishack http://piwigo.org/ext/extension_view.php?eid=324 does the job nicely! Just download it. Put the entire folder into your plugins directory. After uploading to your plugins you should see piwishack in your MANAGE PLUGINS menu.
When you're ready to use it pull up an album or image and click the piwishack icon on the right side of your header menu.
Offline
Does it work in Chrome?
Offline
I don't use chrome but from what I've read it does not.
Offline
Scanner wrote:
Found my own answer... the Plugin piwishack http://piwigo.org/ext/extension_view.php?eid=324 does the job nicely! Just download it. Put the entire folder into your plugins directory. After uploading to your plugins you should see piwishack in your MANAGE PLUGINS menu.
When you're ready to use it pull up an album or image and click the piwishack icon on the right side of your header menu.
hi
does PiwiShack work wih v2.8? tx
Offline
Well... it certainly does work with 2.9.4. I just installed it and ran my first test although I do see a error message at the top (does not impair the functionlity though)
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 /home/<<my_username>>/domains/<<my_domain>>/public_html/piwigo/plugins/piwishack/class.inc.php on line 21
Last edited by Sjonnie (2018-09-23 17:32:13)
Offline
Had some spare time on my hands so decided to try and fix the error. The problem is caused by the plugin being developed for a PHP version 4 or so and my site uses PHP 7.
I DDG'd (DuckDuckGo'd :)) the error and stumbled on this thread: https://stackoverflow.com/questions/399 … tructors-i
So I simply edited the script class.inc.php and changed it to this:
*snip* class PiwiShack { var $plugin_name, $plugin_path; var $opened, $to_close; var $config; var $list; /************************************************************************** * function: PiwiShack ************************************************************************** * Rôle: * Constructeur; charge la config et initialise les handlers *************************************************************************/ function __construct($plugin_name, $plugin_path) { // Args $this->plugin_name = $plugin_name; $this->plugin_path = $plugin_path; $this->load_config(); // handler $this->initialize_event_handler(); } *snip*
The error is now gone and the plugin still works as expected.
HTH
Offline