Restrict Content by Username Plugin 1.0.2

Submitted On: 11 Jan 2024
File Size: 10
Downloads: 53
File Version: 1.0.2
File Author: Martin Brampton
File HomePage: Click to visit site

The Black Sheep Research Plugin for selecting content by user groups in Joomla

This plugin enables the portions of text to be displayed on account of the current user being a member of specified group(s). This is achieved by surrounding the relevant text with, for example:

{user_group 5 || 7}...{/user_group}

or:

{user_group editor}...{/user_group}

or:

{user_group !8}...{/user_group}

You can specify as many groups as you wish, and they are separated by ||. By default the separator is interpreted as OR. The first group can be preceded by ! which means that the user must NOT be a member of any of the listed groups for the enclosed text to be displayed.

Note that if you want to show something to all logged in users apart from a specific group, you also need to exclude guest as in:

{user_group ! mygroup || guest}...{/user_group}

You can use group numbers or group names. If names are used, they must be the actual names in use on your site, which may vary according to the language in use.

The plugin will honour a request referring to public (group 1) but it has no point, since it permits (or refuses) everyone.

File Rating (0/0)
Log in to cast your vote
Be the first to comment! Please sign in or register.

RELATED DOCUMENTS

This report falls under the following categories. Click on a link below to explore similar documents.

ProductLines: Tools
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.