2 of 14
2
Linklocker Free (encrypt download links)
Posted: 14 May 2008 04:49 PM   [ Ignore ]   [ # 19 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

EDIT - Works great Brad, well done!! wink
Now that’s what I call fast service wink

Excellent Brad!! grin

I can see how this could be very handy now!

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 14 May 2008 05:58 PM   [ Ignore ]   [ # 20 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Thanks, Mark. John - yes, the link at the start of this thread has been updated to v1.2 of the script. Enjoy!

Profile
 
 
Posted: 14 May 2008 06:45 PM   [ Ignore ]   [ # 21 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

John - just wanted to offer another thank you for your generosity. Didn’t write this script to make money, but a donation here and there sure does encourage development wink

Profile
 
 
Posted: 15 May 2008 12:49 AM   [ Ignore ]   [ # 22 ]  
Summer Student
Total Posts:  28
Joined  05-15-2004

Thanks Brad! Just what I needed.

Profile
 
 
Posted: 17 May 2008 02:58 AM   [ Ignore ]   [ # 23 ]  
Summer Student
Avatar
Total Posts:  3
Joined  06-30-2006

Hi Brad

Thank you so much for the module.
Exactly what i’ve been looking for.

I am having a slight issue with it though.
The module will work perfectly if i use a full domain

ie - http://something.com.au/directory/file.zip

If i try to use a custom field storing the url it fails
I get an error “Requested file does not exist”

This is the code i am using

{exp:weblog:entries weblog="store"}
     {exp
:scm_entry_access entry_id="{entry_id}"
          
<a href="{exp:linklocker url="{download_url}" expires="10" iplock="off"}">Download</a>
     
{/exp:scm_entry_access}
{
/exp:weblog:entries} 

If i remove “{download_url}” and replace it will the full url to the file it works.
I have tested the custom field without using the linklocker module at it works.

Any ideas?

Profile
 
 
Posted: 17 May 2008 03:36 AM   [ Ignore ]   [ # 24 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Hope you don’t mind me coming in on this one Brad but Yuri what exactly do you have stored in the {download_url} variable. If you are only storing the name of the file (plus its extension of course) then LinkLocker is in fact showing the correct response as it would have no way of knowing where the file is located rather just what the file is called. You would need to then hard-code back in the path to that file in front of your {download_url} variable.

Don’t know if that helps at all.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 17 May 2008 03:55 AM   [ Ignore ]   [ # 25 ]  
Summer Student
Avatar
Total Posts:  3
Joined  06-30-2006

Hi Mark.

Thanks for your reply.
Currently i have the full url in the {downloads_url} variable.
I will try just using the filename and hard coding the rest of the url before the {download_url} a go.

Thanks

Profile
 
 
Posted: 17 May 2008 06:08 AM   [ Ignore ]   [ # 26 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Hi Yuri,

Also something to try if that doesn’t work is to just code the link like this :

Here’s the link

without using the http and domain part. I think (could be wrong though) that Brad updated the module to work with paths instead of domains so that might be worth having a try with also if the full domain doesn’t work. Also don’t forget about the {site_url} variable that will fill in the first part of your domain for you.

Hope that helps.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 17 May 2008 08:41 AM   [ Ignore ]   [ # 27 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Thanks for the assist, Mark. Almost 100% correct - but I did not update this module to require path only (that was the List Contents plugin).

@Yuri,
My only guess would be to make sure that the field storing the url is Text Only, and not XHTML, as it could be adding tags to the URL. Otherwise, I can’t imagine why it may not work for you if you have the full URL to the file. You could try calling the {url} before the link just to make sure it contains the value you expect it to.

Am performing today and tonight, but will try to look at this tomorrow if it is still a problem. Let me know what you find out.

Thanks,
Brad

Profile
 
 
Posted: 17 May 2008 08:50 AM   [ Ignore ]   [ # 28 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006
Brad Street - 17 May 2008 12:41 PM

Thanks for the assist, Mark. Almost 100% correct - but I did not update this module to require path only (that was the List Contents plugin).

Oops very good point! It was the List Contents plugin wasn’t it!! wink Sorry!!

Brad Street - 17 May 2008 12:41 PM

@Yuri,
My only guess would be to make sure that the field storing the url is Text Only, and not XHTML, as it could be adding tags to the URL. Otherwise, I can’t imagine why it may not work for you if you have the full URL to the file. You could try calling the {url} before the link just to make sure it contains the value you expect it to.

Very good point and would have been my next port of call had I not mixed up your two plugins like that!! wink

Brad Street - 17 May 2008 12:41 PM

Am performing today and tonight, but will try to look at this tomorrow if it is still a problem. Let me know what you find out.

Thanks,
Brad

What performing is that then Brad?

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 17 May 2008 04:08 PM   [ Ignore ]   [ # 29 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Hey Mark,
When not building cool modules like this for EE, or programming at work, I play guitar & sing, both solo & in a band. My website is at http://www.bradstreetband.com Perfo.rmed solo at a festival this afternoon, and am playing a local bar tonight.

Profile
 
 
Posted: 18 May 2008 08:25 AM   [ Ignore ]   [ # 30 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Hi Brad,

Aha another muso like myself!! Which of the many pictures on that site are you then? wink

Good luck with the gig tonight.

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 20 May 2008 07:10 AM   [ Ignore ]   [ # 31 ]  
Summer Student
Avatar
Total Posts:  3
Joined  06-30-2006
Brad Street - 17 May 2008 12:41 PM

@Yuri,
My only guess would be to make sure that the field storing the url is Text Only, and not XHTML, as it could be adding tags to the URL. Otherwise, I can’t imagine why it may not work for you if you have the full URL to the file. You could try calling the {url} before the link just to make sure it contains the value you expect it to.

Yeah that would help wouldn’t it
Turns out after going over everything i had xhtml turned on.
After turning it off my original code is working.
Too much wine i think wink

Thanks for your help guys.

The site i am using your wonderful code is for my label - Alt Records
Another muso here

Profile
 
 
Posted: 20 May 2008 08:16 AM   [ Ignore ]   [ # 32 ]  
Lab Assistant
Avatar
RankRank
Total Posts:  282
Joined  02-27-2008

Glad to hear it is working for you, Yuri! Wow - so the EE community appears to be largely composed of a ragtag group of musicians/web designers. Rick Ellis started a trend - go figure!  wink

Profile
 
 
Posted: 20 May 2008 08:22 AM   [ Ignore ]   [ # 33 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Well I’m not sure how long Rick has been a muso for but I have been one ever since I was around 4 years old so 30 years for me. Web design for about as long as I care to remember. Pretty much ever since the internet took off really.

We can’t really blame Rick for everything now, can we? wink

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 20 June 2008 04:13 AM   [ Ignore ]   [ # 34 ]  
Grad Student
Avatar
Rank
Total Posts:  80
Joined  09-05-2007

Hi there,

@ Brad, thanks a lot for sharing this module.
@ Mark, you tutorial is great so thanks for that and the plugin.
@ Both, please let me know how can I send you a donation.

Now, quick question… do you know if there might be a problem when using .htaccess to hide index.php? I’m trying this on EE 1.6.3 with MSM but when I click on the links instead of the download all I can see is a blank page…

Rgds

 Signature 

Motor de Expresiones. The first website dedicated to ExpressionEngine & Codeigniter for Spanish speakers.
Motor de Expresiones. La primera web en español dedicada a ExpressionEngine y Codeigniter.

Profile
 
 
Posted: 20 June 2008 04:55 AM   [ Ignore ]   [ # 35 ]  
Professor
Avatar
RankRankRankRankRankRankRank
Total Posts:  13771
Joined  04-15-2006

Hiya,

Thanks for the very kind words grin There’s no need for a donation unless you really want to wink
I wrote up that document and released the plugin as free to the ExpressionEngine community so grateful for the kind words I get back on it. Just nice to be able to help other people out whenever I can. All I really want to do in life!

Best wishes,

Mark

 Signature 

Shopping Cart Plugin | Full List Of Add-Ons | About Me
——————————————————————————————
2.x Bug Tracker | Upgrade Errors

Profile
 
 
Posted: 20 June 2008 05:07 AM   [ Ignore ]   [ # 36 ]  
Grad Student
Avatar
Rank
Total Posts:  80
Joined  09-05-2007

Well, it’s not like I’m gonna give you a thousand pounds (I wish I could) but at least something to have a few beers…

 Signature 

Motor de Expresiones. The first website dedicated to ExpressionEngine & Codeigniter for Spanish speakers.
Motor de Expresiones. La primera web en español dedicada a ExpressionEngine y Codeigniter.

Profile
 
 
   
2 of 14
2