DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:ifauth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:ifauth [2018-02-06 17:45] – [Plugin] Juergen_aus_Zuendorfplugin:ifauth [2022-01-08 13:08] (current) – [IfAuth Plugin] note highlighted Michaelsy
Line 1: Line 1:
-====== ifauth Plugin ======+====== IfAuth Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: Set portion of page to be displayed/hidden for authorized group+description: Set portion of page to be displayed/hidden for authorized group
 author     : Otto Vainio author     : Otto Vainio
 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, Anteater, Rincewind, Binky, Ponder Stibbons, Hrun+compatible : Frusterick Manners, 2009-12-25c, Anteater, Rincewind, Binky, Ponder Stibbons, Hrun, Greebo, !Hogfather
 depends    : depends    :
 conflicts  : conflicts  :
-similar    : nodisp,condition+similar    : showif, condition, isauth, nodisp, ifauthex
 tags       : acl, groups, hide, if, users tags       : acl, groups, hide, if, users
  
 downloadurl: http://koti.mbnet.fi/oiv/pubtest/ifauth.zip downloadurl: http://koti.mbnet.fi/oiv/pubtest/ifauth.zip
 ---- ----
 +
 +^ :!: There is a new plugin [[plugin:ifauthex|ifauthex]] which is actively updated. You may want to use it instead :!:\\  --- [[user>oiv|oiv]] //2019-01-11 23:22// ^
  
 ===== Description ===== ===== Description =====
Line 20: Line 22:
 With this plugin you can set portion of page to be displayed/hidden for authorized user or group.  With this plugin you can set portion of page to be displayed/hidden for authorized user or group. 
  
-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 ACLs.+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 ACLs.
  
 **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 93: Line 95:
 ===== Installation ===== ===== Installation =====
  
-Using Plugin Manager from [[http://koti.mbnet.fi/oiv/pubtest/ifauth.zip|here]]+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
-==== Plugin ====+==== Manually install ====
  
 Create a new folder ''lib/plugin/ifauth/'' and place the following file in it: ''syntax.php''. Create a new folder ''lib/plugin/ifauth/'' and place the following file in it: ''syntax.php''.
Line 269: Line 271:
  
 >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:outdent]] plugin can help with the indenting problem (but not the section edit button problem). I suspect the plugin needs to be written to run BEFORE the rest of the syntax on the page is parsed. >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:outdent]] plugin can help with the indenting problem (but not the section edit button problem). I suspect the plugin needs to be written to run BEFORE the rest of the syntax on the page is parsed.
 +
 +>>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>...}}%%. Then the section edit function can be used in the included page.
 +>> --- [[user>Juergen_aus_Zuendorf|Juergen_aus_Zuendorf]] //2018-10-30 13:13//
  
 >What's happen if someone show source of page ? do they see the hidden text ? >What's happen if someone show source of page ? do they see the hidden text ?
plugin/ifauth.1517935515.txt.gz · Last modified: 2018-02-06 17:45 by Juergen_aus_Zuendorf

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki