Difference between revisions of "Personalize MediaWiki"

From Ittichai Chammavanijakul's Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 +
== Move the installation directory ==
 +
The MediaWiki does not record the installation path in the database. If the directory is moved or changed, just simply update the $wgScriptPath in the LocalSettings.php file.
 +
 +
<pre>
 +
$wgScriptPath      = "/wiki";
 +
</pre>
 +
 
== Hide tabs ==
 
== Hide tabs ==
 
Reference: http://www.mediawiki.org/wiki/User:Subfader/Hide_page_tabs<br>
 
Reference: http://www.mediawiki.org/wiki/User:Subfader/Hide_page_tabs<br>

Revision as of 16:29, 6 March 2011

Move the installation directory

The MediaWiki does not record the installation path in the database. If the directory is moved or changed, just simply update the $wgScriptPath in the LocalSettings.php file.

$wgScriptPath       = "/wiki";

Hide tabs

Reference: http://www.mediawiki.org/wiki/User:Subfader/Hide_page_tabs
This is to hide a tab on all pages. Note that hiding tab does not prevent from accessing the page.

  • Update MediaWiki:Common.css.
/* Hide [Watch] tab */
#ca-watch { display: none !important; }

/* Hide [History] tab */
#ca-history { display: none !important; }

/* Hide [View Source] tab */
#ca-viewsource { display: none !important; }

/* Hide [Discussion] tab */
#ca-talk { display: none !important; }

Change Favicon

Reference: http://www.mediawiki.org/wiki/Manual:$wgFavicon
Use the free icon generator web site like http://www.favicon.cc/.