Διαφορά μεταξύ των αναθεωρήσεων του «Publicsandbox»
|  (→test) | |||
| Γραμμή 72: | Γραμμή 72: | ||
| [[Special:Statistics]] | [[Special:Statistics]] | ||
| {{NUMBERINGROUP:Wiki}} | {{NUMBERINGROUP:Wiki}} | ||
| <ref> fdsds</ref> | |||
| {{#tag:ref|Citation text goes here, and you can include parser functions like {{#expr: ... }} and magic words like {{PAGENAME}}.|name="multiple"}} | {{#tag:ref|Citation text goes here, and you can include parser functions like {{#expr: ... }} and magic words like {{PAGENAME}}.|name="multiple"}} | ||
Αναθεώρηση της 22:26, 3 Σεπτεμβρίου 2012
Μπορεί να γίνει επεξεργασία της σελίδας αυτής από όλους
https://teams.pirateparty.gr/issues/153#note-9
Μόνο ένα group
Επειδή το login γίνεται με τη βάση του phpbb (με αυτό το plugin http://www.mediawiki.org/wiki/Extension:PHPBB/Users_Integration), και υπάρχει μόνο ένα user group, όλα τα παρακάτω δεν μπορούν να γίνουν..
- Mπορείς να ορίσεις πολλά group!
:$wgAuth_Config['WikiGroupName'] = 'Wiki';     // Name of your PHPBB group
                                               // users need to be a member
                                               // of to use the wiki. (i.e. wiki)
                                               // This can also be set to an array 
                                               // of group names to use more then 
                                               // one. (ie. 
                                               // $wgAuth_Config['WikiGroupName'][] = 'Wiki';
                                               // $wgAuth_Config['WikiGroupName'][] = 'Wiki2';
                                               // or
                                               // $wgAuth_Config['WikiGroupName'] = array('Wiki', 'Wiki2');
                                               // )
Μετά βάζεις αυτό false
$wgAuth_Config['UseWikiGroup'] = false;          // This tells the Plugin to require
                                               // a user to be a member of the above
                                               // phpBB group. (ie. wiki) Setting
                                               // this to false will let any phpBB
                                               // user edit the wiki.
- και βάζεις τα μέλη των πειρατών στο phpbb group wiki με full δικαιώματα, και τους υπόλοιπους στο phpbb group wiki2 με δικαιώματα σε περιορισμένα namespaces.
What to do
http://www.mediawiki.org/wiki/Manual:User_rights
user rights depend on mediawiki version
also
http://www.mediawiki.org/wiki/Manual:$wgGroupPermissions
http://www.mediawiki.org/wiki/Manual:$wgNamespaceProtection
http://www.mediawiki.org/wiki/Extension:Lockdown
and finaly some practical examples
http://www.mediawiki.org/wiki/Manual:Preventing_access
Setting up custom namespaces with restricted write access
<source lang="php"> define("NS_OFFICIAL", 100); define("NS_OFFICIAL_TALK", 101);
$wgExtraNamespaces =
   array(100 => "Official",
         101 => "Official_talk",
   );
$wgNamespaceProtection[NS_OFFICIAL] = array( 'official-edit' ); $wgNamespaceProtection[NS_OFFICIAL_TALK] = array( 'official-talk-edit' );
$wgGroupPermissions['managers']['official-edit'] = true; //only managers can edit pages in the Official namespace $wgGroupPermissions['employees']['official-talk-edit'] = true; //employees can edit pages in the Official_talk namespace $wgGroupPermissions['managers']['official-talk-edit'] = true; //so can managers </source>
test
Πρότυπο:SECTIONID {{#switch: | = 15px | #default = [1]15px }} 0 Special:Statistics 0 <ref> fdsds</ref> <ref name="multiple">Citation text goes here, and you can include parser functions like {{#expr: ... }} and magic words like Publicsandbox.</ref>