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