Advanced search  

News:

cpg1.5.46 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.
[more]

Pages: 1 2 [3]   Go Down

Author Topic: Access to Full Size images for certain users  (Read 11759 times)

0 Members and 1 Guest are viewing this topic.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Access to Full Size images for certain users
« Reply #40 on: June 30, 2017, 03:00:04 pm »

Sorry for the late reply. Does the issue still exists? If so, please give me some more information of the current state, as I haven't re-read the whole thread. It seems you want to re-arrange links, that are inserted by different mods/plugins?
Logged

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 223
Re: Access to Full Size images for certain users
« Reply #41 on: July 02, 2017, 08:36:37 pm »

Hello André

Its all find. A late reply is better than non at all.

I will try to explain as brief as possable. You helped me with some code and mod for a certain usergroup/register user to download the full size image via a botton (link) once I granted permission to them.

The problem now is, once I compress the complete directory (e.g. with 2000 pics inside), by default coppermine anable registered members and other user groups I creaded ( 3 =  VIP ) and ( 4 = SUPER VIP).

1. How can I prevent normal visitors (guests) and normal registered users to download this zip file ?

2. Is there a short way to code that I can enable/disable cetrain galeries/albums for showing the "Download Full Resolution" photos ?

Thanx in advance, looking forward to your answer/help

Greetings ... Johann
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Access to Full Size images for certain users
« Reply #42 on: July 03, 2017, 10:23:45 am »

So we've 2 issues here:
1. You want to prevent certain user groups to download a zip file. Is this zip file created and provided by you, or is there a button which compresses the directory on the fly, each time a user hits the button?
2. If I remember correctly you use the fullsize_access plugin to allow access to the full-sized pictures, right? If so, we need to have a closer look at that plugin.
Logged

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 223
Re: Access to Full Size images for certain users
« Reply #43 on: July 03, 2017, 10:35:01 am »

André

Yes, the plugin used are the "fullsize_access" plugin.

The zip file I created I do within unix (to prevent me from uploading the complete zip from all over). I compress the zip, create a custom thumb. But like I said, even registered user can download the zip as it is coppermine's default. I just want e.g. Super Vip members to be able to download the zip.

Like with this plugin, if I make a member "Super VIP", a botton apears to "Download Full Size Image" ... I want to be able to have another butten e.g. "Download All Photos within this album as Zip".

Also, is there a way (small mod) to enable/disable downloads from a spesific album (e.g. a setting in album properties) like you have when settings can be changed who can "View / See" an album ?

Thanx yet again.  Wish 1.6 can come out now !

Regards

Johann
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Access to Full Size images for certain users
« Reply #44 on: July 03, 2017, 10:39:50 am »

The zip file I created I do within unix (to prevent me from uploading the complete zip from all over). I compress the zip, create a custom thumb. But like I said, even registered user can download the zip as it is coppermine's default. I just want e.g. Super Vip members to be able to download the zip.

So what exactly are you doing? Do you add a link to that file somewhere in the album, or do you actually add that file to Coppermine (e.g. via batch-add)?


Also, is there a way (small mod) to enable/disable downloads from a spesific album (e.g. a setting in album properties) like you have when settings can be changed who can "View / See" an album ?

Please start a new thread, we're already dealing with too much different issues in this thread.
Logged

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 223
Re: Access to Full Size images for certain users
« Reply #45 on: July 03, 2017, 01:03:15 pm »

I do not batch add the zip file. I simple compress the images withing a folder (which is connected to an album) with unix commands.

So, basicly, if there is a zip file present, to have the ability disbale or enable it for a spesific group, and if enabled for a spesific group to have a button / link that indicates .e.g. "Donwload full Album as Zip" just as you get a button "Download Full Size Image".

Hope this make sense.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Access to Full Size images for certain users
« Reply #46 on: July 03, 2017, 02:57:12 pm »

Sorry, but I don't get the status quo. Please post a link to your gallery where I can see the link to the zip file.
Logged

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 223
Re: Access to Full Size images for certain users
« Reply #47 on: July 03, 2017, 03:25:42 pm »

http://boy-idols.com/thumbnails.php?album=1

Even visitors / unregistered users can download the zip.

Point is I want to enable/disable downloads this zip file preferable with settings in album manager ... permissions to download zip according to usergroups.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Access to Full Size images for certain users
« Reply #48 on: July 03, 2017, 04:04:16 pm »

You actually add the zip file to your gallery. This is what I didn't know till now. There's a solution without any code modification or use of a plugin. Just create a new album and set the album permission "Album can be viewed by" to the group you want to allow to download the zip file. Then, move all zip files to that album and unique keywords to all zip files (e.g. "zip1", "zip2", etc.). Now you need to enter the corresponding keyword to all albums you initially moved the zip files from. While writing this you should probably assign the keyword to the zip files and albums before moving them to the restricted album ;D

Example: http://boy-idols.com/thumbnails.php?album=1
- Assign "zip1" as album keyword to the album
- Assign "zip1" as keyword to the zip file (http://boy-idols.com/displayimage.php?pid=12309)
- Create a new album "album zip files" (name it however you want, it doesn't care)
- Move the zip file to the new album "album zip files"
- Now, it works the same way as before
- Restrict the permissions of the new album "album zip files"
- Now, the zip file is only displayed in album 1 to users which have access to "album zip files"
Logged

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 223
Re: Access to Full Size images for certain users
« Reply #49 on: July 03, 2017, 04:13:57 pm »

André

It can work as you described.

My problem is that only user "Piet" is purchasing Album 1 for example. Then user "Gert" is purchasing Album 2 for example. Having all the zips in one album will cause "Piet" to be able to download both zip files, as where he only paid for Album 1.

Q: Where does the script / how does the script in fullsize_access know it is a jpg file and full size ? Can't one just add the extention "zip" to it ?

Kind of complicated for me.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15369
Re: Access to Full Size images for certain users
« Reply #50 on: July 03, 2017, 04:22:04 pm »

Q: Where does the script / how does the script in fullsize_access know it is a jpg file and full size ? Can't one just add the extention "zip" to it ?

I haven't checked the code or tested this yet in a vanilla gallery, but maybe a zip file don't need "full-size" access to enable the download.

Proposal: don't add the zip files to your gallery at all, but send the link to the zip file(s) to Piet, Gert, etc. after they purchased one or more albums. This way you don't need to mess around with code.
Logged
Pages: 1 2 [3]   Go Up
 

Page created in 0.018 seconds with 20 queries.