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
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
I'm searching for a way to do this too. If I find an answer I'll post it back here.
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
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) {
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