2007年4月27日 星期五

如何將WIKI搬家,或複製一份

提供異地備份或mirror site 的方法。根據官方說法,建議在同樣的平台與software的情況下運作。官方網站

步驟如下:
1.備份資料庫。

2.複製全部的wiki 資料。包括skin、 extensions、 LocalSettings.php

3.re-create the database
在新的一台機器建立資料庫名稱,與建立一個 wiki 的使用者,有權限存取wiki 的資料夾。
註:你可以在 LocalSettings.php 查到當初設定的使用者名稱與密碼。$wgDBuser and $wgDBpassword two parameters.

4.import database
可以用 dump的方法,或 phpmyadmin 將資料複製。

5.Import wiki file

6.check the configuration file
See
LocalSettings.php

$IP Needs to be correct for the paths on the new server
$wgScriptPath Needs to be correct for the path on the new server
$wgDBserver Check the database server name is correct
$wgDBname This might have changed in a shared hosting environment
$wgDBuser This might have changed in a shared hosting environment
$wgDBpassword Check this is correct for the new user


2007年4月25日 星期三

如何修改 navigation bar

要如何修改 navigation bar。
可以參考 http://www.mediawiki.org/wiki/Manual:Navigation_bar

但在1.9 已後的版本,並沒有 mediawiki:Sidebar 這個頁面。

我的作法是先去安裝,Inputbox,這extenions,就可以隨意建置一個新頁面。

再去修改 mediawiki:Sidebar 的屬性,即可修改屬性,

* navigation
** mainpagemainpage
** portal-urlportal
** e-info環境新聞
** currentevents-urlcurrentevents
** recentchanges-urlrecentchanges
** randompage-urlrandompage
** helppagehelp
** sitesupport-urlsitesupport

* 其他
**test測試

RSS extensions

安裝與用法

1. 下載 rss.php 檔案。
原網址:http://www.mediawiki.org/wiki/GISWiki/RSS

2. 下載magpierss。http://magpierss.sourceforge.net/

3. 修改rss.php 檔案內容

4. 使用參數

* charset= The charset used by the feed. iconv is used to convert this. (設定編碼)
* short Do not show the description text for each news item.(設定簡短描述)
* max=x Shows x most recent headlines. (設定筆數)
* highlight= term1 term2 The terms separated by a space are highlighted.
* filter= term1 term2 Show only rss items containing at least one of the terms. (設定篩選參數)
* reverse display the rss items in reverse order.
* title=x display an alternative title instead of chanel name.
* title = none dont display any title.
# * date display the date and time stamp below the title.