plugin:ifauth
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:ifauth [2017-06-08 22:13] – [ifauth Plugin] 45.33.114.120 | plugin:ifauth [2022-01-08 13:08] (current) – [IfAuth Plugin] note highlighted Michaelsy | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : otto@valjakko.net | email : otto@valjakko.net | ||
type : Syntax | type : Syntax | ||
lastupdate : 2005-09-23 | lastupdate : 2005-09-23 | ||
- | compatible : Frusterick Manners, 2009-12-25c, | + | compatible : Frusterick Manners, 2009-12-25c, |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
tags : acl, groups, hide, if, users | tags : acl, groups, hide, if, users | ||
downloadurl: | downloadurl: | ||
---- | ---- | ||
+ | |||
+ | ^ :!: There is a new plugin [[plugin: | ||
===== Description ===== | ===== Description ===== | ||
Line 20: | Line 22: | ||
With this plugin you can set portion of page to be displayed/ | With this plugin you can set portion of page to be displayed/ | ||
- | The text is still on the page, but not displayed. For true hiding, you would have to use the include plugin and set the appropritate | + | The text is still on the page, but not displayed. For true hiding, you would have to use the nodisp or include plugin and set the appropriate |
**Please note! The page is always set as not cached! So it will impact performance!** | **Please note! The page is always set as not cached! So it will impact performance!** | ||
Line 72: | Line 74: | ||
> And what about hide text from not authorized group? Like: //< | > And what about hide text from not authorized group? Like: //< | ||
> It will be useful... | > It will be useful... | ||
+ | |||
+ | > Removal of <p> tags Needs to be fixed. Fix: | ||
+ | > <code php> | ||
+ | // Remove ' | ||
+ | |||
+ | if (stristr(substr($r, | ||
+ | $r = substr($r, | ||
+ | } | ||
+ | |||
+ | if (stristr(substr($r, | ||
+ | $r = substr($r, | ||
+ | } | ||
+ | | ||
+ | if (stristr(substr($r, | ||
+ | $r = substr($r, | ||
+ | |||
+ | $renderer-> | ||
+ | </ | ||
===== Installation ===== | ===== Installation ===== | ||
- | Using Plugin Manager from [[http:// | + | Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[: |
- | ==== Plugin | + | ==== Manually install |
Create a new folder '' | Create a new folder '' | ||
Line 109: | Line 129: | ||
' | ' | ||
' | ' | ||
- | ' | + | ' |
' | ' | ||
' | ' | ||
- | ' | + | ' |
); | ); | ||
} | } | ||
Line 142: | Line 162: | ||
} | } | ||
function connectTo($mode) { | function connectTo($mode) { | ||
- | $this-> | + | $this-> |
} | } | ||
function postConnect() { | function postConnect() { | ||
Line 152: | Line 172: | ||
* Handle the match | * Handle the match | ||
*/ | */ | ||
- | function handle($match, | + | function handle($match, |
switch ($state) { | switch ($state) { | ||
case DOKU_LEXER_ENTER : | case DOKU_LEXER_ENTER : | ||
Line 171: | Line 191: | ||
* Create output | * Create output | ||
*/ | */ | ||
- | function render($mode, | + | function render($mode, |
// ifauth stoes wanted user/group array | // ifauth stoes wanted user/group array | ||
Line 244: | Line 264: | ||
</ | </ | ||
- | + | --- [[user> | |
- | + | -> Changes for compatibility to PHP7:\\ | |
+ | "& | ||
===== Discussion ===== | ===== Discussion ===== | ||
>This plugin messes up the Header levels causing them to nest/indent improperly. I've also come across situations where it caused the section edit buttons to be located improperly, and function improperly. Anyone know how to fix that? EDIT: the [[plugin: | >This plugin messes up the Header levels causing them to nest/indent improperly. I've also come across situations where it caused the section edit buttons to be located improperly, and function improperly. Anyone know how to fix that? EDIT: the [[plugin: | ||
+ | |||
+ | >>To avoid this I use the [[include]] plugin as workaround: | ||
+ | >>The part of the wiki page that should be hided has to be moved to another page and then be included by %%{{page> | ||
+ | >> --- [[user> | ||
> | > |
plugin/ifauth.1496952818.txt.gz · Last modified: 2017-06-08 22:13 by 45.33.114.120