Home » Jalbum forums » Skins, Plugins, and Tools » FotoPlayer

This question is answered.


Permlink Replies: 13 - Pages: 1 - Last Post: 07-Nov-2009 10:35 Last Post By: Takama Threads: [ Previous | Next ]
Takama

Posts: 12
Registered: 01/05/09
Protect FullSize download does not work
Posted: 02-Nov-2009 18:35
 
  Click to reply to this thread Reply
Hello,

I chose the option "Protect FullSize download" in JAlbum but it does not work.
My files are not found but they exist.

Test :
Test site

If you try to download the 1st picture (a.jpg, password : "pass"), you should have "file does not exist'.
If you copy and paste the link given in the address bar, you will see the fullsize picture.

Do you know why I have this error ?

Option "Force download" is ticked.

Thanks
dhina

Posts: 4,278
Registered: 12/11/04
Re: Protect FullSize download does not work
Posted: 02-Nov-2009 20:21   in response to: Takama in response to: Takama
Correct
  Click to reply to this thread Reply
Thanks for the test album link.
For the folder where you've the originals, you need to use file system path instead of URL in download php script.
Example: c:/inetpub/wwwroot/ or /home/folder/... Currently you've set it as a URL http: //26septembre2009.free.fr/Test/protected. This won't work. Check with your hosting support if you're not sure what the file system path for your site root directory is.
Takama

Posts: 12
Registered: 01/05/09
Re: Protect FullSize download does not work
Posted: 03-Nov-2009 00:35   in response to: dhina in response to: dhina
 
  Click to reply to this thread Reply
Thanks for your prompt answer. I can't check with my hosting support as I have a free access (so no support).
But I found following on Internet :

QUOTE
you should not use the path itself as it may change. You should use instead the variable :
$_SERVER("DOCUMENT_ROOT")

that points to the root of your website where the script is run
UNQUOTE

(I replaced the [ by ( or it does not appear in this message)

So I changed the path to :
$original_path = $_SERVER("DOCUMENT_ROOT")."/Test/protected/"
and
$protect_path = $_SERVER("DOCUMENT_ROOT")."/Test/protected/"

And I now have error message : Can't create shoppingcart/downloadlog_34061.txt
dhina

Posts: 4,278
Registered: 12/11/04
Re: Protect FullSize download does not work
Posted: 03-Nov-2009 08:38   in response to: Takama in response to: Takama
 
  Click to reply to this thread Reply
>>Can't create shoppingcart/downloadlog_34061.txt
Set full write access for shoppingcart folder. Script is trying to log the download attempts. if you don't want to log, disable the log feature (setting $log_download = "n"; in that same script)

Just FYI. Alternate way to find the file system path for the site root: upload findpath.php downloadable from step 6 in this user guide section to your site root and view this file via browser.
Takama

Posts: 12
Registered: 01/05/09
Re: Protect FullSize download does not work
Posted: 03-Nov-2009 18:13   in response to: dhina in response to: dhina
 
  Click to reply to this thread Reply
That works perfectly !
Thanks for your help !
Takama

Posts: 12
Registered: 01/05/09
Re: Protect FullSize download does not work
Posted: 04-Nov-2009 12:32   in response to: Takama in response to: Takama
 
  Click to reply to this thread Reply
I have 3 other questions :

1/ I'd like to protect completly my gallery, so I set a password for the complete site (via option "protect album"). I therefore removed the option "protect FullSize download" because the users are already logged. But with these options, when I want to download the fullsize pictures, the picture downloaded is the reduced one, not the fullsize one.

2/ I have several subfolders in 1 root folder. The root folder only contains subfolders. I want to protect the subfolders with a specific password (different fm the album login). So in Jalbum, I right click on the root folder and in the properties, "FP settings", I set a password. But it does not work : the subfolders are still accessible. If I set a specific password for each subfolder, it works but I don't want to be prompted for a password for each subfolder, I want to be prompted for a password when I chose the root folder.

3/ When we connect to the Album, thumbs of the 1st folder are displayed. Is it possible to not autoload thumbs at the connection ?

My test gallery is updated with following options :

  • Album login : pass / pass
  • Root folder "Test 1" is protected but we are not asked for any password to see subfolder "protected"
  • subfolder "protected2" is protected with login pass2/pass2. it works
  • no protection for fullsize download but the reduced pictures are downloaded, not the fullsize one.

Thanks
Takama

Posts: 12
Registered: 01/05/09
Re: Protect FullSize download does not work
Posted: 04-Nov-2009 13:40   in response to: Takama in response to: Takama
 
  Click to reply to this thread Reply
New questions
dhina

Posts: 4,278
Registered: 12/11/04
Re: Protect FullSize download does not work
Posted: 04-Nov-2009 22:52   in response to: Takama in response to: Takama
 
  Click to reply to this thread Reply
1. Use 'Link to Originals via scaled images' in Jalbum Settings 'Pages' tab.
2. >> the subfolders are still accessible.
Refer tip number 19 in the user guide tips section.

3. It's designed to open the album with the first non-empty folder.
Takama

Posts: 12
Registered: 01/05/09
Re: Protect FullSize download does not work
Posted: 05-Nov-2009 04:29   in response to: dhina in response to: dhina
 
  Click to reply to this thread Reply
1. I did it but the album is searching for the original files in the subfolders, instead of in the path I set in :
$original_path = $_SERVER("DOCUMENT_ROOT")."/Test/protected/"
Can't I copy my originals in a sole folder on my FTP ?

2. noted, I will find an other solution

3. ok
dhina

Posts: 4,278
Registered: 12/11/04
Re: Protect FullSize download does not work
Posted: 05-Nov-2009 08:00   in response to: Takama in response to: Takama
 
  Click to reply to this thread Reply
1. Source for thumbs and slides will always be from Jalbum.
2. If you use protected download feature, it'll be sourced from the path your set in download script $protect_path. Otherwise, Originals from Jalbum will be used.

Note: $original_path in download script is meant for automated download of images after paypal payment. It's not meant for download feature in the album.
Takama

Posts: 12
Registered: 01/05/09
Re: Protect FullSize download does not work
Posted: 05-Nov-2009 10:27   in response to: dhina in response to: dhina
 
  Click to reply to this thread Reply
All is clear, thanks !
Takama

Posts: 12
Registered: 01/05/09
Re: Protect FullSize download does not work
Posted: 07-Nov-2009 02:28   in response to: Takama in response to: Takama
 
  Click to reply to this thread Reply
New trouble :
The album does not appear to users using Internet Explorer.
They have the login page, but after entering the password, they have a blank screen, with just "Album was generated using Jalbum 8.5 skin: FotoPlayer v4.0".

It works perfectly using Firefox (I didn't try other browsers).

Do you know why ?
dhina

Posts: 4,278
Registered: 12/11/04
Re: Protect FullSize download does not work
Posted: 07-Nov-2009 07:39   in response to: Takama in response to: Takama
 
  Click to reply to this thread Reply
Check if you're seeing the same error at fotoplayer.com protected demo album.
http://www.fotoplayer.com/demo.html (12th link). If you're not seeing the error, provide your test album link where I can see the issue.
Takama

Posts: 12
Registered: 01/05/09
Re: Protect FullSize download does not work
Posted: 07-Nov-2009 10:35   in response to: dhina in response to: dhina
 
  Click to reply to this thread Reply
I found the problem.
I wanted to add a line in index.php and a wrong line in the header has been inserted.
I corrected it and now it works.

Thanks
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums