De elektronische Werkplaats/A. Handleidingen/LocalSettings

Uit Werkplaats
< De elektronische Werkplaats‎ | A. Handleidingen
(wijz) ← Oudere versie | Huidige versie (wijz) | Nieuwere versie → (wijz)
Ga naar: navigatie, zoeken
De elektronische
Werkplaats

LocalSettings voor alle elektronische werkplaatsen

Besloten openheid

  • regels
    • geen zelf-registratie
    • loginnaam is volledige naam, want dient overal ter identificatie en communicatie
    • "Hanno Wupper" moet volledige naam zijn, zonder link naar gebruikerspagina
    • Zonder login zijn alleen pagina's te zien die uitdrukkelijk publiek gemaakt zijn
    • e-mail is verplicht
  • richtlijnen
    • Men kan met CategoryPermission, categorie public, pagina's leesbaar voor de wereld maken.
    • Dat mogen alleen bepaalde mensen doen, niet iedereen (categorieën scholar, assistant)
    • persoonlijk gepruts kan het beste als subpagina van je gebruikerspagina
    • default-setting per gebruiker zorgen voor watchlist per e-mail

<source lang="php"> $wgGroupPermissions['*']['createaccount'] = false; $wgGroupPermissions['*']['read'] = false; $wgGroupPermissions['*']['edit'] = false;

  1. Pages anonymous (not-logged-in) users may see
    1. THESE MUST BE CHANGED TO ENGLISH!!

$wgWhitelistRead = array ("Hoofdpagina", "Speciaal:Userlogin", "Speciaal:Gebruikerlijst", "Speciaal:RecenteWijzigingen", "Help:Inhoud", "HTMLescapes", "Inlogproblemen");

$wgEnableEmail = true; $wgEnableUserEmail = true;

$wgEmergencyContact = "Hanno.Wupper@cs.ru.nl"; $wgPasswordSender = "Hanno.Wupper@cs.ru.nl";

$wgDefaultUserOptions['fancysig'] = 1; $wgDefaultUserOptions['watchcreations'] = 1; $wgDefaultUserOptions['enotifwatchlistpages'] = 1; $wgDefaultUserOptions['watchdefault'] = 1;

/** Here, the login name IS the real name, so the "real name" fiel is deactivated to avoid confusion. */ $wgAllowRealName = false;

$wgAllowUserJs = true;

include("../../../settings/IIwerkplaats/LocalExtensions/CategoryPermissionsFnwi.php");

$wgCategoryExclusive=array("Scholar", "Public", "Open"); //add groups to category permissions by: $wgGroupPermissions['*']['Public_read']=true; $wgGroupPermissions['scholar']['Public_edit']=true; $wgGroupPermissions['scholar']['Public_move']=true; $wgGroupPermissions['scholar']['Public_create']=true; $wgGroupPermissions['assistant']['Public_edit']=true; $wgGroupPermissions['assistant']['Public_move']=true; $wgGroupPermissions['assistant']['Public_create']=true; $wgGroupPermissions['scholar']['Scholar_read']=true; $wgGroupPermissions['scholar']['Scholar_edit']=true; $wgGroupPermissions['scholar']['Scholar_move']=true; $wgGroupPermissions['scholar']['Scholar_create']=true;

</source>

Instellingen voor samenwerking

<source lang="php">

  1. Enable subpages in most namespaces

$wgNamespacesWithSubpages[NS_MAIN] = true; $wgNamespacesWithSubpages[NS_TEMPLATE] = true; $wgNamespacesWithSubpages[NS_HELP] = true; $wgNamespacesWithSubpages[NS_PROJECT] = true;

    1. To enable image uploads, make sure the 'images' directory
    2. is writable, then set this to true:

$wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = "/usr/bin/convert";

    1. If you want to use image uploads under safe mode,
    2. create the directories images/archive, images/thumb and
    3. images/temp, and make them all writable. Then uncomment
    4. this, if it's not already uncommented:
  1. $wgHashedUploadDirectory = false;

/**

* This is the list of preferred extensions for uploading files. Uploading files
* with extensions not in this list will trigger a warning.
*/

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'mp3', 'pdf', 'doc', 'ps' );

$wgAllowExternalImages = true;

$wgUrlProtocols[]='webcal://'; $wgUrlProtocols[]='feed://';

$wgUseAjax = true;

$sfg24HourTime = true;

$wgAllowCopyUploads = true;

$wgAllowCategorizedRecentChanges = true;

$wgUseFileCache = false; //Helpt dit? $wgCachePages = false;

</source>

Essential extensions

<source lang="php">

  1. Enable RenameUser extension

require_once("{$IP}/extensions/Renameuser/SpecialRenameuser.php");


  1. Enable ImportUsers extensions

require_once("{$IP}/extensions/SpecialImportUsers.php");

$wgUseAjax = true; require_once( 'extensions/CategoryTree/CategoryTree.php' );

require_once("$IP/extensions/DeleteBatch/DeleteBatch.php");


require_once($IP . "/extensions/SubpageListRU/SubpageListRU.php");


  1. Logical parser functions

require_once("$IP/extensions/ParserFunctions/ParserFunctions.php");


include_once("$IP/extensions/SemanticMediaWiki/includes/SMW_Settings.php");

  1. HOST NAME!!!

enableSemantics('lab.cs.ru.nl'); require_once("$IP/extensions/SemanticResultFormats/SRF_Settings.php"); include_once("$IP/extensions/SemanticForms/includes/SF_Settings.php");


</source>

Useful extensions

These extensions require something else to be installed. They are not absolutely essential, but can be useful.

<source lang="php">

    1. If you have the appropriate support software installed
    2. you can enable inline LaTeX equations:

$wgUseTeX = true; $wgMathPath = "{$wgUploadPath}/math"; $wgMathDirectory = "{$wgUploadDirectory}/math"; $wgTmpDirectory = "{$wgUploadDirectory}/tmp";


require_once( "{$IP}/extensions/Cite/Cite.php" );


include("extensions/Graphviz.php"); $wgGraphVizSettings->dotCommand = "/usr/bin/dot";

require_once( "{$IP}/extensions/ASHighlight/ashighlight.php" );



</source>