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
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.
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.
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.
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.
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 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!! 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!!
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.
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.
@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
Thanks for your help guys.
The site i am using your wonderful code is for my label - Alt Records
Another muso here
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!
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?
@ 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…
Thanks for the very kind words There’s no need for a donation unless you really want to
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!