| Ligne 67 : | Ligne 67 : | ||
*Editer le fichier LocalSetting et ajouter: | *Editer le fichier LocalSetting et ajouter: | ||
:{{syntaxhighlight |lang= | *:{{syntaxhighlight |lang=php|code= | ||
$wgFavicon = "$wgScriptPath/path/to/your/favicon.ico"; | $wgFavicon = "$wgScriptPath/path/to/your/favicon.ico"; | ||
}} | }} | ||
== Nouvelle image pour la page d'accueil == | == Nouvelle image pour la page d'accueil == | ||
{{syntaxhighlight |lang=php|code= | |||
$wgLogo = "images/montagne.jpg"; | $wgLogo = "images/montagne.jpg"; | ||
}} | |||
| Ligne 83 : | Ligne 83 : | ||
Cette boîte est modifiable à partir de la page [[MediaWiki:Sidebar]] | Cette boîte est modifiable à partir de la page [[MediaWiki:Sidebar]] | ||
{{syntaxhighlight |lang=php|code={{#!: * navigation | |||
** [http://jltryoen.fr/joomla]| Accueil du site | ** [http://jltryoen.fr/joomla]| Accueil du site | ||
** mainpage|mainpage-description | ** mainpage|mainpage-description | ||
| Ligne 90 : | Ligne 89 : | ||
* SEARCH | * SEARCH | ||
* TOOLBOX | * TOOLBOX | ||
* LANGUAGES | * LANGUAGES | ||
}} | |||
}} | |||
== Gestion des accès == | == Gestion des accès == | ||
* interdire la création de compte | * interdire la création de compte | ||
: Modifier le fichier {{File|LocalSettings.php}} | *: Modifier le fichier {{File|LocalSettings.php}} | ||
: {{Syntaxhighlight|lang=php|code= | *: {{Syntaxhighlight|lang=php|code= | ||
$wgGroupPermissions['*']['createaccount'] = false; | $wgGroupPermissions['*']['createaccount'] = false; | ||
}} | }} | ||
<br/> | <br/> | ||
* interdire l'édition des pages sans login | * interdire l'édition des pages sans login | ||
: {{Syntaxhighlight|lang=php|code= | *: {{Syntaxhighlight|lang=php|code= | ||
$wgGroupPermissions['*']['edit'] = false; | $wgGroupPermissions['*']['edit'] = false; | ||
}} | }} | ||
<br/> | <br/> | ||
* masquage de l'IP dans la bannière | * masquage de l'IP dans la bannière | ||
: {{Syntaxhighlight|lang=php|code= | *: {{Syntaxhighlight|lang=php|code= | ||
$wgShowIPinHeader = false; | $wgShowIPinHeader = false; | ||
}} | }} | ||
<br/> | <br/> | ||
* Enlever la barre d'outils pour les utilisateurs sans login: | * Enlever la barre d'outils pour les utilisateurs sans login: | ||
:Remplacer dans le fichier {{File|MonoBook.php}} | *:Remplacer dans le fichier {{File|MonoBook.php}} | ||
: {{Syntaxhighlight|lang=php|code= | *: {{Syntaxhighlight|lang=php|code= | ||
<div class="portlet" id="p-tb"> | <div class="portlet" id="p-tb"> | ||
<h5><?php $this->msg('toolbox') ?></h5> | <h5><?php $this->msg('toolbox') ?></h5> | ||
}} | }} | ||
par | *: par | ||
: {{Syntaxhighlight|lang=php|code= | *: {{Syntaxhighlight|lang=php|code= | ||
<?php if($this->data['loggedin']) { ?> | <?php if($this->data['loggedin']) { ?> | ||
<h5><?php $this->msg('toolbox') ?></h5> | <h5><?php $this->msg('toolbox') ?></h5> | ||
| Ligne 126 : | Ligne 127 : | ||
* Mieux: modifier la barrer si l'utilisateur s'est connecté | * Mieux: modifier la barrer si l'utilisateur s'est connecté | ||
*: Pour que les utilisateurs aient leurs propre barre de menus modifier le fichier {{File|includes/Skin.php}} | |||
Pour que les utilisateurs aient leurs propre barre de menus modifier le fichier {{File|includes/Skin.php}} | *: {{Syntaxhighlight|lang=php|code= | ||
: {{Syntaxhighlight|lang=php|code= | |||
if ($wgUser->isLoggedIn()) { | if ($wgUser->isLoggedIn()) { | ||
$lines = explode( "\n", wfMsgForContent( 'sidebar' ) ); | $lines = explode( "\n", wfMsgForContent( 'sidebar' ) ); | ||
| Ligne 138 : | Ligne 138 : | ||
* comment puis-je enlever les items edit ... pour les utilisateurs anonymes ? | * comment puis-je enlever les items edit ... pour les utilisateurs anonymes ? | ||
Dans le fichier {{File|MonoBook.php}}, rechercher la ligne: | *: Dans le fichier {{File|MonoBook.php}}, rechercher la ligne: | ||
*: {{Syntaxhighlight|lang=php|code= | |||
: {{Syntaxhighlight|lang=php|code= | |||
foreach($this->data['content_actions'] as $key => $tab) { | foreach($this->data['content_actions'] as $key => $tab) { | ||
}} | }} | ||
*: et remplacer la par: | |||
et remplacer la par: | *: {{Syntaxhighlight|lang=php|code= | ||
: {{Syntaxhighlight|lang=php|code= | |||
foreach($this->data['content_actions'] as $key => $tab) if($this->data['loggedin']==1) { | foreach($this->data['content_actions'] as $key => $tab) if($this->data['loggedin']==1) { | ||
}} | }} | ||
| Ligne 152 : | Ligne 149 : | ||
== Ajout d'une extension pour modifier le menu principal == | == Ajout d'une extension pour modifier le menu principal == | ||
*J'ai opté pour l'extension GuMax : modifier le fichier '''LocalSettings.php''' | *J'ai opté pour l'extension GuMax : modifier le fichier '''LocalSettings.php''' | ||
:{{syntaxhighlight |lang=php|code=$wgDefaultSkin = 'gumax'}} | *: {{syntaxhighlight |lang=php|code=$wgDefaultSkin = 'gumax'}} | ||
*puis j'ai créé mon propre skin pour avoir un style du type "bootstrap" | *puis j'ai créé mon propre skin pour avoir un style du type "bootstrap" | ||
<br/> | <br/> | ||
<keywords content="Installation Mediawiki" />
Download - MediaWikiJ'ai installé la version 1.15.3.
Je l'ai mise à jour vers la 1.17. cfpuis vers la 1.19 (cf Modification pour la 1.19)
On pourra se référer aux tutoriaux présents sur
Pour installer mediawiki ne pas oublier d'ajouter
Pour la base de données chez Free (je suis ensuite passé chez OVH)
J'ai installé EasyPHP
RewriteRule ^wiki/?(.*)$ MediaWiki/index.php?title=$1 [L,QSA]
Alias "/wiki" "F:/sites free/site OVH JLT local/MediaWiki/index.php"
Alias "/MediaWiki" "F:/sites free/site OVH JLT local/MediaWiki"
<Directory "F:/sites free/site OVH JLT local/MediaWiki">
Options +FollowSymLinks +Indexes +ExecCGI
AllowOverride All
Order deny,allow
Allow from 127.0.0.1
Allow from all
</Directory>
# anything under /wiki is treated as an article title
RewriteRule ^wiki/(.+)$ MediaWiki/index.php?title=$1 [PT,L,QSA]
$wgFavicon = "$wgScriptPath/path/to/your/favicon.ico";
$wgLogo = "images/montagne.jpg";
Pour mettre à jour le lien vers la page d’accueil, éditer MediaWiki:MainPage .
Cette boîte est modifiable à partir de la page MediaWiki:Sidebar
* navigation
** [http://jltryoen.fr/joomla]| Accueil du site
** mainpage|mainpage-description
** helppage|help
* SEARCH
* TOOLBOX
* LANGUAGES
$wgGroupPermissions['*']['createaccount'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgShowIPinHeader = false;
<div class="portlet" id="p-tb">
<h5><?php $this->msg('toolbox') ?></h5>
<?php if($this->data['loggedin']) { ?>
<h5><?php $this->msg('toolbox') ?></h5>
On peut faire la même chose pour la boite de recherche
if ($wgUser->isLoggedIn()) {
$lines = explode( "\n", wfMsgForContent( 'sidebar' ) );
} else {
$lines = explode( "\n", wfMsgForContent( 'anon_sidebar' ) );
foreach($this->data['content_actions'] as $key => $tab) {
foreach($this->data['content_actions'] as $key => $tab) if($this->data['loggedin']==1) {
$wgDefaultSkin = 'gumax'
Installation
Astuces
Mes extensions