If anyone is interested in this sort of functionality, has solid EE skills, and has the time and willingness to put the new module & plugin through their paces, I could use an additional beta tester. PM me if you’re interested.
As far as features of the new Module & Plugin:
LinkLocker v2.0 Module Features:
Allow users to download files without giving away the download location. Present a web page to a user while obfuscating the website address in the web browser’s address bar. Debug parameters that are passed in to the {exp:linklocker} tag. Track how many times a link has been created for a file. Track the download count of a file. Group or identify files by passing in an optional “group” paraemeter. Group or identify files by passing in an optional “label” parameter. Ability to restrict files to members only, and send them to a different URL if they aren’t logged in. Track member and guest downloads. Update links generated for members. Lock generated links to a user’s IP address. Set expire time for generated links, or no expiration. Restrict maximum number of download attempts for a file. Administrative backend that shows documentation, download stats for each link, and download stats for members. Backend allows “reset” function, which will create a new download link for a member if the link they have is expired, reached max downloads, etc.
Linklocker_stats v1.0 Plugin Features:
Download Count - Displays the download count for a url/group/label combination, or a group (counts downloads of all files in this group), or a label (counts downloads of all files with this label), or a file (counts all downloads of this file (regardless of label).
Member Downloads - If a member is logged in, this tag will return the number of times the user has downloaded the file. File may be specified by url, label, group, or any combination thereof. If the user isn’t logged in, this will either return the text specified in the alt_text parametert, or nothing if alt_text parameter isn’t used.
Top Downloads - Displays and unordered list of download stats for a url or label, sorted in ascending or descending order, with an optional maximum number of results. Allows a CSS class to be specified for the list as well as for the list items.
Started a new thread for LinkLocker version 2.0 here. I’ll continue to support this version (1.4) via this thread until I can get a support website in place. This version will remain, of course, free. New version can be licensed for a site for just $30.
Anyone having problems with blank screens. Firstly set the err_page param to make sure it is actually working. Then secondly check to make sure your server / host has allow_url_fopen set to “On” in the php config. Was giving me a headache earlier.
Thanks for the great module Brad! 😊 I’m keen to give the commercial version a whirl too so expect a PM soon 😉.
Cheers, Tim
Brad…Awesome module!
Just thought I would post here in case others run into this. Mt link was getting returned with two question marks before the “act=” like this:
http://domain.com/??ACT=20&url=1&linklocker=MTIyNj5jQ1NTk3fSMA==AAZ7NzEuMT2ZU4LjIwFmNi4xMgEZ== AAMQez==AAaW6m1hZ2Vz5aJiM0Nzjct1cGxvUnYWRzJijLM0NztiKdb2FyZEO 3RvY3Mmy9IzQ3O2AVFkdWx0Fhc1N1cHPYBvcnRzEJLnBkZgZd==AAMAU9==AAAAJ0
The problem was that I developed most of this site locally on a Windows machine and then moved it to a LAMP server. I had “Force URL query strings” to “Yes”. I believe (but have not verified) that “Force URL query strings” set to yes adds a ? after the site domain name. This was resulting in two “??” instead of one. I turned off Force URL query strings and it works great.
Thanks again for the great module.
In response to Eric’s post, the module has been updated to version 1.4.1. The only change is a bug fix for those who may need “force URL query strings” set to yes. New version may be downloaded from the first post of this thread. If you’re already using the module and not experiencing any problems, there is no need to update. If you wish to update, simply replace /modules/linklocker/mod.linklocker.php with the same file in the 1.4.1 zip.
Can we also have an additional small feature which can actually make this module a great one? 😊
I want redirect URLs as encrypted URLs..so that if I want to display an affiliate URL on a blog post, and I dont want to show to the user the actualy affiliate URL..linklocker will encrypt it the same way, and checks on clicking that if its simply a URL, redirects.
For example _ I used this:
<a href=”{exp:linklocker url=" expires="0" iplock="off" target="_New" title="{title}”>
Then my URL is encrypted properly but when I click on it, it asks to save the file..where as it should simply go to that domain.
Is it possible?
I’m having problems using Linklocker v1.4.1 on EE v1.6.5.
Basically it doesn’t seem to work at all.
Here is what I get in the Apache logs:
[Thu Nov 13 10:22:44 2008] [error] [client XXXXX] PHP Notice: Undefined variable: PREFS in /var/www/vhosts/XXXXX/system/modules/linklocker/mod.linklocker.php on line 164
[Thu Nov 13 10:22:44 2008] [error] [client XXXXX] PHP Fatal error: Call to a member function ini() on a non-object in /var/www/vhosts/XXXXX/system/modules/linklocker/mod.linklocker.php on line 164
Any ideas?
Milan - Thanks for pointing out the bug. I’ve updated & reposted v. 1.4.1 on the first page of this thread.
Deep - I’ll look into your request, just have not had the time. As I’ve said before, I’m certain you can do this using the mode=”page” parameter for the linklocker tag - check the docs. It’s asking to save the file because that is the default mode of this module. Setting mode=”page” should simply stream the page to the browser. Let me know how that works for you.
First, thanks for this module. I’ve used it on other sites and it’s excellent.
I’m also having problems using Linklocker v1.4.1 on EE v1.6.5. It’s downloading an empty (4kb on disk) file with the correct filename. I’ve uninstalled and re-installed a couple of times and checked that allow_url_fopen is on (as recommended above).
Any ideas?
Not quite sure. One thing to check is that the module is getting the correct path to the file and the file exists. Type the url that is being passed to LinkLocker in a browser window and make sure the file downloads for you and works. If it does, if you are using the linklocker module between a weblog:entries tag pair, make sure that the weblog:entries has a parameter of parse=”inward” - this way, the weblog will parse, passing the url as it is supposed to, to the LinkLocker module. Let me if that helps.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.