Download Lightbox for Logged in Users only Download Lightbox for Logged in Users only
 

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]

Main Menu

Download Lightbox for Logged in Users only

Started by Walkinman, February 13, 2006, 08:26:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Walkinman

hey folks,

I was wondering if it's possible to tweak the theme so that only registered and logged in users can download the Lightbox/Favorites gallery as a Zip? I'd still like for the line "Download as Zip" to appear, but just have a message pop up saying this "feature is only available for registered/logged in users" (if they're not already logged in).

If this is possible, I'd really appreciate some help with how to go about setting this up.

Thanks, as always.

Cheers

Carl

Walkinman

Hey folks,

Is this something that's possible? I really don't want to encourage non-registered users to simply build a collection of their favorite of my images, and then downlaod the entire collection. I'd really appreciate it if someone could offer some advice here, thanks.

Cheers

Carl

tibu

I'm searching for a way to do this too. If I find an answer I'll post it back here.

Walkinman

hey Tibu

I just now saw this reply - thanks .. if you find a way to do this, pelase let me know.

Thank you.

Cheers

Carl

Nibbler

zipdownload.php

find

if ($CONFIG['enable_zipdownload'] != 1) {

change to


if (!USER_ID){
pageheader($lang_error);
starttable('-1', $lang_error);
print <<<EOT
<tr>
<td align="center" class="tableb">
Your message here
</td>
</tr>
EOT;
endtable();
pagefooter();
ob_end_flush();

} elseif ($CONFIG['enable_zipdownload'] != 1) {

Walkinman

Hey Nibbler

Thanks. I haven't been on this forum in nearly a year, I come back and ask for help and you're still the man. Thank you.

By the way, when I download the ZIP (with or without the mod you've shown here) on Safari (version 2.0.4) I get an error. The download manager says "Decompression failed", and when I try to open the downloaded folder (pictures.zip) I get a message that says:

Stop. Unable to unarchive "pictures.zip" into "Desktop". (Error 1 - Operation not permitted.)

It works fine using Forefox. Do you know what might be going on here?

Thank you.

Cheers

Carl