Full Access rights and Lightbox Full Access rights and Lightbox
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Full Access rights and Lightbox

Started by danibo, November 13, 2006, 09:10:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

danibo

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


Nibbler

zipdownload.php


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


change to


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

danibo

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