Peter,
Glad to hear you identified & resolved the problem, and thanks for picking up the v2 module. If you don’t mind my asking, what exactly was the problem with your .htaccess file? My guess was that there was a redirect preventing access to the directory containing the files (which is why I suggested trying to download the file using just the link), but I’m sure the solution you found could help others in the future.
Thanks again!
Wow, this is indeed great, and just what I need. But one big issue, my host will not change allow_url_fopen to on. What would be a good work around. I see some tips on using cURL, but am clueless about it.
Would love to get this commercial version if someone could help me out on how to get this to work.
Thanks.
The next update of the commercial version (2.4 - due out by end of week) will allow a url to be used (if allow_url_fopen is enabled), or alternatively, a path to be specified. This should certainly solve your problem, as well as allow you to track your downloads.
n addition, if your intent is to sell downloadable goods, you may want to check out the demo I’ve posted for Digital Commerce Beta - it integrates with the commercial version of LinkLocker (though I’m debating giving it its own implementation so you wouldn’t need to purchase LinkLocker) to allow you to create a store weblog and automatically send download links of digital products to customers.
I’ve looked at the possibility of using curl in the commercial module, but just haven’t had time to adequately test and play with it. Will slate that for an upcoming release of the module, but cannot yet provide a time frame for its implementation. For the time being, it sounds as though this free module would be a great fit if you could ask your host to enable allow_url_fopen for your site. Perhaps they would let you use your own php.ini to override this setting? Let me know how it goes.
Thanks, Brad
Hi I have a problem with link locker I am working on a project with a very strange domain name www.tlq.travel link locker just won’t recognize it as a proper domain.
If I use link locker and put in a regular domain it works fine
Here is an extract of my code:
link locker encripted link <a href="http://{exp:linklocker">link here</a>
link locker encripted link <a href="http://{exp:linklocker">error free link to ihussey.co.uk here</a>
The error I get is Invalid URI if the page divert is not on. The actual page this is all happening is:
http://tlq.travel/journal_articles/view/sample_journal_article_6/
It is not the first problem I have had with using such a strange domain name and probably not the last. If anyone can help I will not go mad.
Hi I believe the problem is with the .travel domain - as normal TLD’s are only three characters long and this is obviously five.
After discussions with my client I have decided to just not encrypt the links as the materials are not that sensitive. I also have bugs logged with foxee cart due to similar problems and I expect more.
The code on the page I emailed you has been set back to normal. Thanks for the help in investigating the problem if you get a fix I will be watching this thread otherwise I am taking the easy option - the project is already overrunning.
thanks Ian Hussey
Ian,
I received your code yesterday and it looks good, but I haven’t had a chance to dig into the issue. I agree that the problem is most likely with the domain of “.travel”. My module uses PHP to parse the URL, so this is likely a problem within that PHP function. I’m guessing it just doesn’t recognize the .travel as being a valid .tld. One thing you may try is to add the ‘www’ to the front of the href - I noticed your code was calling without it - perhaps having that in would better help PHP to decipher it?
Thanks, Brad
Managed to get this working after turning allow_url_fopen = On on my server. Now time to test it out for a future site although if it does as we hope we’ll definitely be using V2.
As I understand it, files need to be stored on our server which is fine. I just want to make sure that the files aren’t accessed/downloaded (e.g. bandwidth used) until the links are clicked on by the user?
We’ll potentially have 2-50 links on a page generated by LinkLocker and we don’t want to be going through bandwidth! If someone actually downloads the file that’s fine 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.