coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Walkinman on February 13, 2006, 08:26:08 PM

Title: Download Lightbox for Logged in Users only
Post by: Walkinman on February 13, 2006, 08:26:08 PM
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
Title: Re: Download Lightbox for Logged in Users only
Post by: Walkinman on February 18, 2006, 10:34:35 PM
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
Title: Re: Download Lightbox for Logged in Users only
Post by: tibu on March 27, 2007, 07:49:30 PM
I'm searching for a way to do this too. If I find an answer I'll post it back here.
Title: Re: Download Lightbox for Logged in Users only
Post by: Walkinman on April 11, 2007, 10:52:13 PM
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
Title: Re: Download Lightbox for Logged in Users only
Post by: Nibbler on April 12, 2007, 12:40:23 AM
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) {
Title: Re: Download Lightbox for Logged in Users only
Post by: Walkinman on April 12, 2007, 04:34:04 PM
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