We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Download Lock Module- members only download protection...

Development and Programming

kilbot's avatar
kilbot
2 posts
about 16 years ago
kilbot's avatar kilbot

This module has been perfect for a little site I developed, thanks Robyn.

I did have some problems with IE7 users getting corrupted files, not due Download Lock itself, but rather a messing up of MIME types and possibility some interplay with gzip compression. The resultant download would display a ‘corrupted’ message for IE7 users when trying to extract using the Windows built in extraction utility.

The solution was to change line 216 of the mod.download_lock.php file from: case “zip”: $ctype=”application/zip”;

to: case “zip”: $ctype=”application/octet-stream”;

       
bjsteiger's avatar
bjsteiger
87 posts
15 years ago
bjsteiger's avatar bjsteiger
Hi Robin, thank you for activating my account. I could download and install the file but i keep getting this error: Download error Incorrect download link Return to main page The settins in the module are as follows:
var $field_id = '13';
var $download_path = '/home/www/htdocs/www.mydomain/downloads/';
and this is my template code:
{exp:weblog:entries}
<h3>{title}</h3>
<a href="http://{exp:download_lock:link">Download</a>
{/exp:weblog:entries}

I’m getting the same error on this.

       
Devon Shaw's avatar
Devon Shaw
11 posts
15 years ago
Devon Shaw's avatar Devon Shaw

Does anyone have a valid copy of this posted somewhere? Robin’s site appears to be broken.

       
sherrills's avatar
sherrills
26 posts
15 years ago
sherrills's avatar sherrills

I’m looking for this as well. - does anyone have a copy of Download Lock that they could share?

       
studionigh's avatar
studionigh
15 posts
15 years ago
studionigh's avatar studionigh

Is this what you are looking for. I have used it on one project and it works good.

       
artlab's avatar
artlab
37 posts
15 years ago
artlab's avatar artlab

Does anyone have any instructions on how to use it?

I get Download

But how do you control which user group can have access?

       
Nate Iler's avatar
Nate Iler
29 posts
15 years ago
Nate Iler's avatar Nate Iler

@artlab - I believe you set a variable in the mod.download_lock.php file. It should be commented out by default.

       
Marco Angeli's avatar
Marco Angeli
34 posts
15 years ago
Marco Angeli's avatar Marco Angeli

hi everybody,

I’m getting this message:

“Download error Incorrect download link Return to main page”

Which is the right path for the download_path variable?

This doesn’t work: var $download_path = ‘http//www.mysite.com/downloads/’;

I’ve got the “downloads” folder on the site root…

Thanks

Marco

       
Marco Angeli's avatar
Marco Angeli
34 posts
15 years ago
Marco Angeli's avatar Marco Angeli

…and here is the solution:

CP Home › Admin › System Preferences › General Configuration

look at the item “Theme Folder Path”

grab the full path and change the last part with your default folder name…

Best regards

Marco

       
EWDC's avatar
EWDC
58 posts
12 years ago
EWDC's avatar EWDC

“And then I added a little htaccess file to the download folder….”

Can anyone share what needs to go in this htaccess file?

Cheers, Edd

       
First 2 3 4

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.