Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: Full Access rights and Lightbox  (Read 3533 times)

0 Members and 1 Guest are viewing this topic.

danibo

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • boschungfoto
Full Access rights and Lightbox
« on: November 13, 2006, 09:10:54 pm »

Hallo
I installed the plugins "Full Size Access" and Light-Box.

With the Full Size Access I controll that only Registered Users can see and download the full size pictures. Guest are alowed to see only the previews.(medium size 400x600pix)
This tool for itself works fine.
But in combination with the wonderful Lightboxtool guests have the possibillity to put the pictures to the Lightbox/MyFavorites and download the Full-Size Image(s) as a zip.

Can you configure cpg, that the guest only can donwload the medium-size pix as a zip and not the full-size one.

Thanks
Daniel

 
Logged

Nibbler

  • Guest
Re: Full Access rights and Lightbox
« Reply #1 on: November 13, 2006, 10:15:13 pm »

zipdownload.php

Code: [Select]
$filelist[] = $rowset[$key]['filepath'].$rowset[$key]['filename'];

change to

Code: [Select]
if (USER_ID){
$filelist[] = $rowset[$key]['filepath'].$rowset[$key]['filename'];
} else {
$filelist[] = $rowset[$key]['filepath']. $CONFIG['normal_pfx'].$rowset[$key]['filename'];
}
Logged

danibo

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 24
    • boschungfoto
Re: Full Access rights and Lightbox
« Reply #2 on: November 14, 2006, 08:46:20 am »

Thanks. Great job.
It works wonderful as long as your albums are public.

But I have some albums where everybody has to login.
There are to main users.
The ones, which  are only allowed to see the previews(normal_) and the others which are allowed to download/see the full-size image.

I organized it as follows.

The users with the fullsizedowload right have the following configuration:
Groups:
In the dropdownmenu they belong to Registered
and the group  they have access ist marked.

The users with only-preview(normal_)-rights have the following configuration:
Groups:
In the dropdownmenu they belong to Guests
and the group  they have access ist marked.

When you do not install a download-link and disable zipdownlaod this configuration works well to separate the rights to this two kind of users.

But as soon as you enable zipdownload the "only-preview-users" have the possibility to download the fullsize-image.

If needed I give you access to my configuration.

Thanks
Daniel



Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 19 queries.