Configuration NXP Wiki: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
== Wiki Configuration == |
== Wiki Configuration == |
||
<ul> |
|||
<li> Updated [[MediaWiki:Common.css]].</li> |
|||
* Support <tt>class="wikitable"</tt> (MediaWiki). |
|||
* Support for [[Template:Hidden]] |
|||
* Custom style for [[Mediawiki#SyntaxHighlight GeSHi|GeSHi]] |
|||
<li> Updated [[MediaWiki:Common.js]] </li> |
|||
** Support for [[Template:Hidden]] |
|||
* Support for [[Template:Hidden]] |
|||
* Support for [[Template:Hide]], [[Template:Hide all]],[[Template:Show all]], [[Template:Hide show all]], [[Template:Toggle]]. |
|||
<s> |
<s> |
||
<li> Added a few templates:</li> |
|||
* [[Template:Pl2]] |
|||
* [[Template:Hl2]] |
|||
* [[Template:Hidden]] (see [[Wikipedia:Wikipedia:NavFrame]] and [[http://en.wikipedia.org/wiki/Template:Hidden]]) |
|||
* [[Template:Hide]], [[Template:Hide all]], [[Template:Show all]], [[Template:Hide show all]], [[Template:Toggle]] (see [http://openwetware.org/wiki/OpenWetWare:Toggle]) |
|||
* Updated [[MediaWiki:Sidebar]] |
* Updated [[MediaWiki:Sidebar]] |
||
</s> |
</s> |
||
<li> File '''<tt>LocalSettings.inc.php</tt>''':</li> |
|||
* Enable '''file upload'''. |
|||
* Set logo (from NXP - resized to 135x160 max) |
|||
<source lang="php"> |
|||
$wgEnableUploads = true; |
|||
... |
|||
$wgLogo = "$wgStylePath/common/images/nxplogowiki.png"; |
|||
</source> |
|||
<li> File '''<tt>includes/DefaultSettings.php</tt>''':</li> |
|||
* Change supported upload file types (added 'pdf' and 'zip'). |
|||
* Restrict anonymous editing (edit requires user to login) |
|||
<source lang="php"> |
|||
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'zip' ); |
|||
... |
|||
$wgGroupPermissions['*' ]['edit'] = false; |
|||
</source> |
|||
<li> Add directory '''<tt>https://kiwi.noekeon.org/miki/upload</tt>''', to store big upload files.</li> |
|||
*<s> Create a fake <tt>index.html</tt> simulating listing of an empty upload directory.</s> |
|||
<li> Users:</li> |
|||
: user: '''mip''' |
|||
: pwd: '''********''' |
|||
: email: '''miki.mip@noekeon.org''' |
|||
: real name: '''Mike''' |
|||
<li> Setup '''favicon.ico'''. Edit file <tt>./includes/DefaultSettings.php</tt>:</li> |
|||
<source lang="php"> |
|||
$wgFavicon = '/nxpwiki/logoNXP.ico'; |
|||
</source> |
|||
</ul> |
|||
== Extensions == |
== Extensions == |
Latest revision as of 14:53, 7 July 2011
Reference
Consult the User's Guide for information on using the wiki software.
Wiki Configuration
- Updated MediaWiki:Common.css.
- Support class="wikitable" (MediaWiki).
- Support for Template:Hidden
- Custom style for GeSHi
- Updated MediaWiki:Common.js
- Support for Template:Hidden
- Support for Template:Hide, Template:Hide all,Template:Show all, Template:Hide show all, Template:Toggle.
- Added a few templates:
- File LocalSettings.inc.php:
- Enable file upload.
- Set logo (from NXP - resized to 135x160 max)
- File includes/DefaultSettings.php:
- Change supported upload file types (added 'pdf' and 'zip').
- Restrict anonymous editing (edit requires user to login)
- Add directory https://kiwi.noekeon.org/miki/upload, to store big upload files.
Create a fake index.html simulating listing of an empty upload directory.- Users:
- user: mip
- pwd: ********
- email: miki.mip@noekeon.org
- real name: Mike
- Setup favicon.ico. Edit file ./includes/DefaultSettings.php:
$wgEnableUploads = true;
...
$wgLogo = "$wgStylePath/common/images/nxplogowiki.png";
$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'pdf', 'zip' );
...
$wgGroupPermissions['*' ]['edit'] = false;
$wgFavicon = '/nxpwiki/logoNXP.ico';
Extensions
Here the list of extensions installed on the Wiki:
- Extension SyntaxHighlight_GeSHi.
- Version r60735 (Jan 6, 2010) / GeSHi version 1.0.8.6.
- Old: Version r24298 (July 21, 2007) / GeSHi version 1.0.8.
Patched to restore old GeSHi 1.0.7 formatting and to support enclose="valid".Using a custome style in MediaWiki:Common.css.
- Version r60735 (Jan 6, 2010) / GeSHi version 1.0.8.6.
- (2009-09-05) Extension RawFile
- (2011-06-28) Extension Cite
- Version r48711 for MediaWiki 15.x
Installation
- Version mediawiki 1.17.0.
- Untar archive in /var/www/nxpwiki
- Warning:
- no PHP accelerators (eaccelerator...)
- no Unicode normalisation accelerators (pecl...)
- Settings:
- Database host: localhost
- Database name: nxpwiki
- Database table prefix:nxp
- Database username: mikiadmin
- Database password: *********
- Storage engine: InnoDB
- Database character set: Binary
- Name of wiki: nxpwiki
- Project namespace: same as wiki name (Nxpwiki)
- Administrator account name: nxpwiki
- Administrator account password: *******
- Administrator account email: nxpwiki@localhost
- User rights profile: Accound creation required
- Copyrights and license: No license footer
- Enable file uploads
- No caching
- It's done!