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