Loading...
 

Mod author

This wikiplugin mod allows different content to be displayed depending on whether the user visiting the page is the creator of the page, a contributor or other user. (See Mods User for how to install a mod.)

Usage

Use the following syntax:

{AUTHOR(contributor=y|n)}some text{ELSE}other text{AUTHOR}
Parameter Accepted values Effect Since
contributor y or n (default: n) If set to y, only a contributor to the page will see the content (or the content before {ELSE}), if n, only the creator.


A couple of tips on usage:

  • The use of {ELSE} is optional
  • Contributors cannot be specified if the history for the page has been deleted

Example

With this code,

{AUTHOR(contributor=y)}''This note is for contributors to this page.''{ELSE} ''This note is for users who have not yet contributed to this page.'' {AUTHOR}


Contributors would see: This note is for contributors to this page.

Other visitors would see: This note is for users who have not yet contributed to this page.

Related pages

Created by: Last Modification: Wednesday 07 August, 2019 09:34:37 GMT-0000 by Yves Kipondo
List Slides
Show PHP error messages