Announcement

  •  » Extensions
  •  » Is there an extension to create links for forums

#1 2016-01-01 06:56:22

Scanner
Member
2016-01-01
6

Is there an extension to create links for forums

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

 

#2 2016-01-08 04:43:27

Scanner
Member
2016-01-01
6

Re: Is there an extension to create links for forums

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

 

#3 2016-01-20 19:48:51

webmom
Member
2016-01-20
6

Re: Is there an extension to create links for forums

Does it work in Chrome?

Offline

 

#4 2016-01-21 08:07:22

Scanner
Member
2016-01-01
6

Re: Is there an extension to create links for forums

I don't use chrome but from what I've read it does not.

Offline

 

#5 2016-03-12 11:46:14

helmuc
Member
Maidstone, UK
2013-05-23
71

Re: Is there an extension to create links for forums

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


http://www.artforweb.co.uk - Royalty free public domain photos (CC0) for personal and business needs..

Offline

 

#6 2018-09-23 16:17:04

Sjonnie
Member
2018-09-23
3

Re: Is there an extension to create links for forums

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)

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 /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

 

#7 2018-09-24 15:18:27

Sjonnie
Member
2018-09-23
3

Re: Is there an extension to create links for forums

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:

Code:

*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

 
  •  » Extensions
  •  » Is there an extension to create links for forums

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact