We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LinkLocker Pro - Commercial Release

Development and Programming

susansan's avatar
susansan
75 posts
16 years ago
susansan's avatar susansan

OMG I’m SO excited to have found out about this module!! Can’t wait to try it. Sweeet!

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Coming January 2009 - version 2.4 of the LinkLocker Module. It has been coded and I’m finishing up testing. One of the most noticeable improvements is that LinkLocker will no longer require allow_url_fopen to be set in the php.ini file. Now, if it is not set, the module will attempt to use curl() functions to get the file.

I’ve also added a new parameter to the tag: path. With this, you may simply specify the path to the file (relative to the site root) instead of a url. This is now the recommended way of using the module if the files are maintained on the same server as the site, as it avoids any issues with allow_url_fopen, curl overhead, or .htaccess complications.

Thanks to all of you who have made great suggestions for improving this module.

Happy Holidays!

Brad

       
fanderson's avatar
fanderson
883 posts
16 years ago
fanderson's avatar fanderson

Brad,

I am looking forward to 2.4. In the meantime I am having some issues with 2.2. I had to move my client’s site to a new server and in the move have encountered a couple of issues. I ended up removing and reinstalling LinkLocker to restore the function. It now correctly hides the file location, but when I click on the file to download the browser opens another window and nothing further happens. The file does not download as expected.

Any assistance you can provide will be greatly appreciated.

thanks.

       
fanderson's avatar
fanderson
883 posts
16 years ago
fanderson's avatar fanderson

Brad,

False alarm. Another person actually changed the directory names on a few of the files. Having corrected that, everything is working fine now. Keep up the good work.

Forrest

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Forrest,

Glad to hear you got it sorted so quickly! Thanks for purchasing and using the module - and happy holidays!

Brad

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

I cannot get two parameters to work correctly: restricted_groups and restricted_url.

I’m embedding my link inside an exp:query tag, and passing it a couple parameters - which works perfectly fine as long as I’m not using those two parameters. Here is an example of how I’m using it (this is simplified and stripped-down for the example):

<table id="transactions" border="0" cellspacing="0" cellpadding="0">
<tr>
 <th>Item</th>
 <th>Purchase Date</th>
 <th>Download</th>
</tr>
{exp:query sql="SELECT fields FROM table WHERE condition"}
<tr {switch="|class='alt'"}>
 <td><a href="/path-to/docs/{q_url_title}/" title="Read Docs">{q_entry_title}</a></td>
 <td>{q_purchase_date format="%Y-%m-%d"}</td>
 <td>{embed="group/_file" file="{q_file}" label="{q_url_title}"}</td>
</tr>
{/exp:query}
</table>

Then in the embed I have this:

<a href="http://{exp:linklocker">Download</a>

That works perfectly fine. I’d prefer to have a little more protection, must to make sure that only members from the right groups have access, however, the following does not work:

<a href="http://{exp:linklocker">Download</a>

The minute I add those, the URLs always show as the restricted URLs, whether I’m logged in as a super admin, or logged in as a member of group 7. This isn’t a dealbreaker for how I’m using Linklocker right now, but I would like to know why those two parameters are not working when I try to use them.

Any thoughts? Am I missing something obvious?

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

At first glance it looks like a typo in the docs. Try restricted_level instead of restricted groups.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

I tried changing to restricted level, but that doesn’t seem to do anything. Now it seems that the restricted_url isn’t being seen - I can download the file no matter what user group is in the restricted_level parameter. I’m logged in as group 7 user for testing, and have changed restricted_level to ‘9’ as well as ‘1|7’ and ‘7’ and in every case I can still download the file.

Thanks for looking into this.

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Ok, wasn’t a typo - should be restricted_groups. Still troubleshooting.

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Found it - line 121 of mod.linklocker.php should read as follows:

if (count($this->restricted_level) AND !(in_array($SESS->userdata['group_id'],$this->restricted_level)))

instead of

if (count($this->restricted_level) AND !(in_array($SESS->userdata['group_id'],$restricted_level)))
       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Will correct this in newest version to be released in a couple of days. This module actually has lots of users - surprised nobody else noticed yet. Anyways, thanks for your patience & helping me make this a better module.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

Cool - thanks for tracking that down, Brad. I’ll tweak that line in my version of 2.2.

EDIT: Yep, working as I’d expect now.

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

LinkLocker version 2.4 has now been released. As of this version, allow_url_fopen is no longer required. If this setting is off, the module will attempt to use curl functions to send the file. Even better, a url is no longer required as the module will now accept a parameter of “path” - a path, relative to the root of the site, to the file you wish to allow access to. Also, I fixed the bug with “restricted_groups” that Ryan noted above. Thanks to everyone who has purchased this module.

If you’d like to purchase, PM me and I will send you my paypal address. License is $30 USD per site.

       
Ryan M.'s avatar
Ryan M.
1,511 posts
16 years ago
Ryan M.'s avatar Ryan M.

Brad, how does updating/upgrading work? I just bought 2.2 a couple days ago and would like to upgrade my install to 2.4 before fully deploying it on the site.

       
Brad Street's avatar
Brad Street
239 posts
16 years ago
Brad Street's avatar Brad Street

Ryan - will send you the updated version - simply replace your files with these, then click on LinkLocker in your “Modules” section - will upgrade automatically. I didn’t send this to you yet because you were testing Digital Commerce, and it is not compatible with this version. Will send you the updated module and the line that would need to change in Digital Commerce in order to make this work with it when I return home this evening - don’t have access to anything from here.

Thanks again!

       
1 2 3 4 5 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.