Announcement

#1 2014-01-07 23:08:52

Pelagis
Member
Estonia
2014-01-06
24

disable download for public albums

I reiterate my earlier question in a more simple way

Is it possible to config the system so that:
- icon "Download this file" is activated;
- downloading of hi-def files is possible in PRIVATE albums as normally, in accordance with permissions;
- downloading of high-def files is NOT possible in PUBLIC albums for ALL users.

The idea is that public albums should be only for viewing (of resized) images.

Toomas

Offline

 

#2 2014-01-09 09:31:40

Pelagis
Member
Estonia
2014-01-06
24

Re: disable download for public albums

Good day,

I would appreciate if anybody from the Piwigo Team could answer anything about my above question, like:
no, it is not possible by architecture of piwigo, or
yes, it is possible with a configuration change, or
yes it is possible by writing a plugin,
or...

then I have an idea how to proceed with this problem

Merci!
Toomas

Offline

 

#3 2014-01-09 10:59:30

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

Re: disable download for public albums

Hi :-)

Did you get my email ?


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.

Online

 

#4 2014-01-09 11:42:57

flop25
Piwigo Team
2006-07-06
7037

Re: disable download for public albums

Hello
if you don"t get answers, it might be because we don't have an easy solution. In fact the solution is to build a plugin. Well Now, knowing that, you can make it one using existing plugins and doc to help you.
with the $conf['original_url_protection'] set, action.php will be call for the download of the original picture (the hd) and check the permission: the file doesn't have trigger but if you need one (and you probably will) just test then tell us to implement it


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2014-01-12 15:48:39

Pelagis
Member
Estonia
2014-01-06
24

Re: disable download for public albums

flop25 wrote:

the file doesn't have trigger but if you need one (and you probably will) just test then tell us to implement it

Please add a trigger to action.php, so that we could check for different conditions on file download. Would be nice if it passed id as a parameter

Toomas

Offline

 

#6 2014-01-13 12:04:00

flop25
Piwigo Team
2006-07-06
7037

Re: disable download for public albums

Hi
you should concider giving technical exact details on what you need.
Change action.php, test, and if you've got what you want, comme back and tell us what you did and what we should do


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

Board footer

Powered by FluxBB

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