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: Download Lightbox for Logged in Users only  (Read 2966 times)

0 Members and 1 Guest are viewing this topic.

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Download Lightbox for Logged in Users only
« 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
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Download Lightbox for Logged in Users only
« Reply #1 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
Logged

tibu

  • Contributor
  • Coppermine regular visitor
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 59
    • Creative Foto Solutions
Re: Download Lightbox for Logged in Users only
« Reply #2 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.
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Download Lightbox for Logged in Users only
« Reply #3 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
Logged

Nibbler

  • Guest
Re: Download Lightbox for Logged in Users only
« Reply #4 on: April 12, 2007, 12:40:23 am »

zipdownload.php

find

Code: [Select]
if ($CONFIG['enable_zipdownload'] != 1) {
change to

Code: [Select]
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) {
Logged

Walkinman

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 380
    • Skolai Images - Nature, Travel and Adventure stock photos
Re: Download Lightbox for Logged in Users only
« Reply #5 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
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 15 queries.