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="{exp:linklocker url='http://www.mysite.com/secret/path/{embed:file}'
expires='0' iplock='off' deny_hotlink='on' label='{embed:label}'}">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="{exp:linklocker url='http://www.mysite.com/secret/path/{embed:file}'
expires='0' iplock='off' deny_hotlink='on' label='{embed:label}'
restricted_groups='1|7' restricted_url='http://www.mysite.com/member/signup/'}">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?