plugin:nodisp
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:nodisp [2019-03-01 17:14] – [nodisp Plugin] turnermm | plugin:nodisp [2023-10-30 23:24] (current) – Klap-in | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : turnermm02@shaw.ca | email : turnermm02@shaw.ca | ||
type : syntax | type : syntax | ||
- | lastupdate : 2018-03-01 | + | lastupdate : 2022-09-14 |
- | compatible : 2009-02-14,lemming,anteater,rincewind,angua,adora belle,hrun,detritus | + | compatible : Lemming, Anteater, Rincewind, Angua, Adora Belle, Weatherwax, Binky, Ponder Stibbons, Hrun, Detritus, Elenor of Tsort, Frusterick Manners, Greebo, Hogfather, Igor |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
tags : hide, comment, acl, conceal | tags : hide, comment, acl, conceal | ||
Line 19: | Line 19: | ||
---- | ---- | ||
+ | |||
===== Installation ===== | ===== Installation ===== | ||
- | Download [[# | + | Install |
+ | |||
+ | To install | ||
- | Refer to [[: | ||
===== Examples/ | ===== Examples/ | ||
This plugin has two ways of concealing text from unauthorized users. | This plugin has two ways of concealing text from unauthorized users. | ||
- | - In the first case, it conceals text from all viewers except users who are logged in and belong to either the admin or manager group. | + | - In the first case, it conceals text from all viewers except users who are logged in and belong to either the admin or manager group. |
- | - In the second case, an acl level is set and if the viewer does not have an acl level equal to or greater than acl setting, the text is completely removed from the page. It is not output from the server to the browser. | + | - In the second case, an acl level is set and if the viewer does not have an acl level equal to or greater than the acl setting, the text is completely removed from the page. It is not output from the server to the browser. |
===== Syntax ===== | ===== Syntax ===== | ||
==== The syntax for the first case ==== | ==== The syntax for the first case ==== | ||
+ | |||
< | < | ||
- | | + | < |
- | | + | < |
- | your text here | + | your text here |
- | etc | + | etc |
- | </ | + | </ |
</ | </ | ||
+ | |||
==== The syntax for the second case ==== | ==== The syntax for the second case ==== | ||
+ | |||
< | < | ||
- | | + | <nodisp acl> your text here </ |
- | + | ||
- | <nodisp acl> | + | <nodisp acl> |
- | your text here | + | your text here |
- | etc | + | etc |
- | </ | + | </ |
</ | </ | ||
- | '' | + | |
+ | '' | ||
+ | |||
+ | It's possible to have several '' | ||
+ | The ACL levels are described in the [[: | ||
+ | |||
+ | ==== Newline syntax ==== | ||
+ | < | ||
+ | {nodisp} your text here {/nodisp} | ||
+ | |||
+ | {nodisp} | ||
+ | your text here | ||
+ | etc | ||
+ | {/nodisp} | ||
+ | |||
+ | {nodisp acl} your text here {/nodisp} | ||
+ | |||
+ | {nodisp acl} | ||
+ | your text here | ||
+ | etc | ||
+ | {/nodisp} | ||
+ | </ | ||
+ | The ''< | ||
+ | |||
+ | If you are upgrading from an earlier version of nodisp, which does not support the newline syntax, you will have to remove the file syntax.php from the root directory of the plugin. | ||
+ | |||
+ | ==== Group Syntax ==== | ||
+ | It is also possible to limit access to the hidden material by group. The syntax is the same as for the other cases, except that ACL numbers are replaced by a group names. | ||
+ | |||
+ | < | ||
+ | <nodisp group> | ||
+ | Restricted Data | ||
+ | </ | ||
+ | |||
+ | {nodisp group}Restricted Data{/ | ||
+ | </ | ||
+ | |||
+ | **Notice:** The group name does not use the at-sign; it is '' | ||
===== Development ===== | ===== Development ===== | ||
+ | |||
=== Change Log === | === Change Log === | ||
+ | |||
{{rss> | {{rss> | ||
+ | |||
* 2016-01-16 by [[user> | * 2016-01-16 by [[user> | ||
* Fix method signature compatibility for PHP 7.0 | * Fix method signature compatibility for PHP 7.0 | ||
Line 68: | Line 112: | ||
> This is true for all the plugins which " | > This is true for all the plugins which " | ||
+ | The above limitations are no longer true of [[plugin: | ||
+ | --- [[user> |
plugin/nodisp.1551456884.txt.gz · Last modified: 2019-03-01 17:14 by turnermm