Announcement

  •  » Extensions
  •  » Panoramas plugin code modification

#1 2013-05-06 21:19:41

actinidia
Member
2013-05-06
2

Panoramas plugin code modification

I am using Panoramas Plugin and I suggest two modification:
#1 - plugin usage is based on the photo title. I suggest to use the filename for detection. Append "_180" or "_360" to the title is not very kind. When exporting foto for piwigo with a programa like Lightroom, appending requested chars to the filename is very simple.
This is my modification to the code:
    if ( !stristr($image['file'], $asp['in_mode_360']) and !stristr($image['file'], $asp['in_mode_180']) ) return $content;

#2 - plugin code use the original image stored in the upload folder. Is it possible to use an image size like XL or XXL?

I found also a bug: using Panoramas, with this site config, doesn't show nothing.
Config:
   $conf['question_mark_in_urls'] = true;
   $conf['php_extension_in_urls'] = true;
   $conf['category_url_style'] = 'id-name';
   $conf['picture_url_style'] = 'file';

I'm using Panoramas version 2.5.a

Very good plugin.

Thanks
Alessandro

Last edited by actinidia (2013-05-06 21:20:45)

Offline

 

#2 2013-05-08 12:47:34

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

Re: Panoramas plugin code modification

Hi :-)

It's difficult use name file with upload web name is change ?


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

 

#3 2013-05-13 10:38:01

actinidia
Member
2013-05-06
2

Re: Panoramas plugin code modification

I refer to the original file name stored in the database.
In my test file name stored in DB it's not modified during web upload.
Only real system file name, used for store image, is new.

Thanks
Alessandro

Offline

 
  •  » Extensions
  •  » Panoramas plugin code modification

Board footer

Powered by FluxBB

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