]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FModeratedPagePlugin
authentication
[SourceForge/phpwiki.git] / pgsrc / Help%2FModeratedPagePlugin
1 Date: Thu,  4 Jul 2013 18:41:29 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0)
3 Content-Type: application/x-phpwiki;
4   pagename=Help%2FModeratedPagePlugin;
5   flags=PAGE_LOCKED%2CEXTERNAL_PAGE;
6   charset=UTF-8
7 Content-Transfer-Encoding: binary
8
9 == What is a ModeratedPage? ==
10
11 A ModeratedPage is a page-internal setting, which restricts certain actions on certain pages.
12 The requested action and page is stored internally and an email is sent to the moderators
13 described in the linked and locked ModeratedPage action page.
14 Any moderator may approve or reject the action by simply clicking an URL.
15 When approving the action, the requested action (edit, rename, ...) is performed.
16
17 In both cases the author is notified, so it's recommended for the
18 moderator to click on either the approve or reject links in the moderation email.
19 In case of multiple moderators: first comes, first serves.
20
21 == How to enable ModeratedPage on a single page? ==
22
23 * Check the status of this action page, esp. the moderators in the
24   plugin line, if they had their emails stored in their
25   [[UserPreferences]], and if the action page is locked.
26 * Add a link to this action page in the page(s) in question.
27 * Save the page.
28 * Lock the page to actually change the moderation status. You may want to unlock it then.
29
30 == How to disable ModeratedPage on a single page? ==
31
32 * Remove the link to this action page in the page(s) in question.
33 * Save the page.
34 * Lock the page to actually change the moderation status. You may want to unlock it then.
35
36 == Usage ==
37 {{{
38 <<ModeratedPage arguments>>
39 }}}
40
41 == Arguments ==
42
43 {| class="bordered"
44 |-
45 ! Argument
46 ! Description
47 ! Default value
48 |-
49 | **moderators**
50 | comma-separated list of registered usernames or groups.
51 Each user should have his email defined in his prefs.
52 | "Administrators" or "<<SystemInfo ADMIN_USER>>"
53 |-
54 | **requirelevel**
55 | one of 0, 1, 2 or 10 on which moderation is used
56 | false (use requireaccess instead)
57 |-
58 | **requireaccess**
59 | comma-separated list of access perms, on which the moderation is used
60 "view,edit,create,list,remove,change"
61 | edit,remove,change
62 |}
63
64 == Example ==
65
66 {{{
67 <<ModeratedPage>>
68 }}}
69
70 == How does it work internally? ==
71
72 You need to lock the page additionally, so that the link parser performs
73 some magic whether the ModeratedPage link is present or not, for efficiency
74 reasons. It can be unlocked again, and even the ModeratedPage link may be removed.
75 The status will only be changed on the *lock* action, whether the ModeratedPage
76 link is present or not.
77
78 The moderation status is stored in each page in question.
79 Each moderated action is stored in the page also, together with a randomly
80 created permission key to allow Grant by a simple external unauthorized request.
81 There's no timeout on moderated actions, so the actions may stack up.
82 The delayed actions may be performed in any order, there's no strict ordering to
83 follow for the moderator.
84
85 == How to enable ModeratedPage on multiple/all pages? ==
86
87 If you enable the config option ENABLE_MODERATEDPAGE_ALL, the page moderation status on
88 every page is automatically set to check this action page ModeratedPage.
89
90 There may come another administrative plugin to change the moderation
91 status on selected pages.
92
93 == Author ==
94 * [[Help:Reini Urban|Reini Urban]]
95
96 <noinclude>
97 ----
98 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]
99 </noinclude>