環境:
OS::Windows XP Professional SP3
Web Server:Apache 2.2.14
DB:MySQL 5.1.40 Community Server
PHP:5.2.12 (※ 用PHP 5.3.x 版跑Mantis 1.1.6好像有點問題)

軟體:
1. Mantis 1.1.6
(下載)
2. JpGraph 3.0.7 (下載)
3. 字型檔:arialuni.ttf (請自行用Google搜尋下載)
(※ 如果你有裝Office的話,這個字型檔應該已經裝到windows\fonts)

設定步驟:

1. 搜尋windows\fonts下是否已經有arialuni.ttf 這個檔案了
如果沒有的話,將arialuni.ttf複製至windows\fonts

2.解開JpGraph的壓縮檔後,將裡面的「src」目錄,改名成「JpGraph」

3. 將上面步驟2的目錄「JpGraph」整個複製至Mantis安裝目錄下的「graphs」目錄

因為我的Mantis是裝在Mantis116下,所以整個目錄就成為:

Mantis: [Web Server Doc Root]\htdocs\mantis116
JpGraph: [Web Server Doc Root]\htdocs\mantis116\graphs\jpgraph

4. mantis116\config_inc.php:
加入下面兩行:

$g_use_jpgraph = ON;
$g_jpgraph_path = 'graphs/jpgraph/';

5. mantis116\core\graph_api.php:
在function graph_get_font()裡
將 return FF_FONT1; 改成 return FF_BIG5;

arrow
arrow
    全站熱搜

    ils34r 發表在 痞客邦 留言(0) 人氣()