Quote:
Originally Posted by dawn100
Hi Andrew!
Hate to ask another question, but this one is driving me crazy. I want the unregistered users to see LDM on the navbar, but not be able to access the files. I have tried setting "can_access_link" as no, but visitors can still get in. Is my problem that I am trying to restirct access to a download? (I know I can take the link off the navbar, but I really want guests to be able to see it, since it is a major selling point for joining my site).
thanks!
|
Yes, this really should be available directly within LDM. It requires a small plugin.
Go to vbulletin/admincp/products and plugins/add plugin
Create a new plugin called (e.g.) Block Unregistered Users, select the Links and Downloads Manager product, and the ldm_start hook
Enter the following code:
Code:
if ($vbulletin->userinfo['usergroupid'] <= 1) {
print_no_permission();
exit;
}
Make sure you tick the 'is active' box.
See also
http://www.eirma.org/wikis/index.php/LDM_Permissions