Search…

X3 Photo Gallery Support Forums

Search…
 
vboa68
Experienced
Topic Author
Posts: 31
Joined: 10 Jan 2012, 08:58

Download available in only 1 page

30 Jun 2016, 03:53

Hi karl

quick question: how can I allow user to download photo or files posted in only one page?

I've a created a new page called "Limited Area" where only some users can enter with User/Pwd.
From here, they should be able to download photos or files..

But photos in all remaining folders must not be available to download..

thx
vincenzo
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Download available in only 1 page

30 Jun 2016, 07:45

There is no simple solution to this, if you have removed the download-button and also set "prevent right-click", which is a global javascript that we can't apply on a per-page basis.

There are some options, for example by creating a "download" button for images in specific folders. Unfortunately, there is a small issue with this currently, because there is no dynamic {path} variable. You can read this post, which has a complicated fix:
https://forum.photo.gallery/viewtopic.p ... 256#p40256

I will fix the above for next release, but that might be the only solution, unless we add new settings to NOT prevent download on certain folders. I certainly don't want to create a complex toolbar-configuration for each and every page ... That's just not practical for anybody.

Will add to my list and give it some thought for future updates ...
 
vboa68
Experienced
Topic Author
Posts: 31
Joined: 10 Jan 2012, 08:58

Re: Download available in only 1 page

30 Jun 2016, 08:46

thk karl

i 've read the post you have included..
I've put the function x3_load_page() into the settings -> custom -> custom javascript, but now, where have I to put the <a href="{image_path}" class="button small" target="_blank" download>Download</a>?

In the "Limited Area page"? in every photo? in which field?

thx
vincenzo
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Download available in only 1 page

30 Jun 2016, 10:14

You only need to do it once, since it is dynamic link with {image_path}. Go to page settings -> image, and paste into Default Image Description:
Image

You will need to make sure this page is also set to display descriptions in the gallery layout, if you want the button to display there also.
 
vboa68
Experienced
Topic Author
Posts: 31
Joined: 10 Jan 2012, 08:58

Re: Download available in only 1 page

30 Jun 2016, 11:23

hi karl

done.. but unfortunately I can't see the button..

I've included the description and date in the settings.. but nothing..

bye
vincenzo
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Download available in only 1 page

30 Jun 2016, 12:16

vboa68 wrote:done.. but unfortunately I can't see the button..

I've included the description and date in the settings.. but nothing..
No link? How am I supposed to check ... This method is tested successfully.

It works if you have enabled descriptions, as long as it's not a justified layout. If so, you can add DESCRIPTION to the CAPTION instead. In either case, it will display in the popup window if you are displaying descriptions.
 
vboa68
Experienced
Topic Author
Posts: 31
Joined: 10 Jan 2012, 08:58

Re: Download available in only 1 page

30 Jun 2016, 13:08

infact.. you're right! I forgot to send to you the link...!

However: found.. it was the layout .. I set the grid.. and now it works!!

Last question: Can I also upload a zip file with a collection of all photos so that user can downloaded it in 1 shot?
thx
vincenzo
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Download available in only 1 page

30 Jun 2016, 13:15

vboa68 wrote:Last question: Can I also upload a zip file with a collection of all photos so that user can downloaded it in 1 shot?
Yes. Just upload the ZIP file into the folder, and you can add a link into the page description, for example:
Code
<a href="{path}/filename.zip">Download All Images</a>
 
vboa68
Experienced
Topic Author
Posts: 31
Joined: 10 Jan 2012, 08:58

Re: Download available in only 1 page

01 Jul 2016, 03:16

hi karl

perfect! it works!
thx

bye
vincenzo