Website Membership + protected file downloads

By Deborah - March 24, 2010

Hi. I saw a thread relating to something I'd like to do with Website Membership - that being to provide links to PDFs and other docs to logged-in members only. Reference this prevous post:

http://www.interactivetools.com/iforum/Products_C2/CMS_Builder%3A_Plugins_%26_Add-ons_F40/Website_Membership_Add-on_P76578/

There was mention of a small script that might do this. I downloaded v1.02, but do not see mention of that in the readme.txt. Is this still in the works, or by "special request", or custom programming?

Please advise. Thanks.
Deborah

Re: [Deborah] Website Membership + protected file downloads

By Dave - March 29, 2010

Hi Deborah,

Sorry for the delay. Basically the way this works is instead of linking to the file directly you link to a script that requires login and download the file for you. For added security you can even use a different upload dir for secure files.

I've attached a sample "downloadFile.php". It does the basics but may need more customization to do what you need. Basically you just hard code it with a table and field name and then instead of linking to a download you link to the download script and pass the record num like this: downloadFile.php?1

Hope that helps!
Dave Edis - Senior Developer
interactivetools.com
Attachments:

downloadfile.php 1K