Quote:
Originally Posted by Zowners
Ok I have the module working beautifully. At the moment the module is showing newest links. Is there a way to make it so that certain usergroups cant see links that are in restricted categories? As I have retricted access to 18+ category but the links show in the module to anyone.
|
This is handled automatically if you are using the forum-based protection for your categories. Do the following:
- select one of your forums which has the viewing permissions that you want to apply to the category and its entries
- edit the category, and find the box 'Parent Forum'. select the chosen forum and tick the box "Also make this the parent of..."
You can also set this up in two ways:
- If the LDM/admin/setting can_see_protected_links_on_portal is 'on', unauthorised people can see protected entries, but cannot visit them.
- If off, then unauthorised people never get to see the protected entries.
Quote:
Originally Posted by Zowners
Also Is it possible to show the latest links for a specified category?
I want to make several newest link modules example: Latest Manga, Latest Music, Latest AMV
Thanks
|
Needs a slight edit to the new module. Find the line
$filter = array("link.linkmoderate = 0");
and change it, e.g., as follows:
$filter = array("link.linkmoderate = 0", "ltoc.catid = 5");
to restrict the module to new entries in category with catid 5.
or
$filter = array("link.linkmoderate = 0", "ltoc.catid IN (5,6,7)");
to restrict to category ids 5,6,7