[Joomla] 安裝隨記

以下是安裝 Joomla 和相關擴充套件時隨手記錄的一些流水紀錄, 或許可以給想安裝 Joomla 的人做個參考.

Introduction to Joomla Installation

o 安裝主程式

1. Download package

form http://www.joomla.org/download.html or http://www.joomla.org.tw/downloads

wget http://joomlacode.org/gf/download/frsrelease/12610/53421/Joomla_1.5.20-Stable-Full_Package.zip
wget http://joomlacode.org/gf/download/frsrelease/324/50430/zh-TW.administrator.1.5.17v1.zip
wget http://joomlacode.org/gf/download/frsrelease/324/50429/zh-TW.site.1.5.17v1.zip

optional: (簡體中文翻譯)

get the http://www.joomla.org.tw/downloads/callelement/simplified-chinese-lang/file/download?format=raw&args[0]=6baf3260f2ec93f07ff2df2b67272c71
get the http://www.joomla.org.tw/downloads/callelement/simplified-chinese-site-lang/file/download?format=raw&args[0]=6fb6adc5c021783bea48914d28b951c0

2. Unzip


unzip Joomla_1.5.20-Stable-Full_Package.zip to Joomla/
unzip zh-TW.administrator.1.5.17v1.zip to Joomla/administrator/language/zh-TW
unzip zh-TW.site.1.5.17v1.zip to Joomla/language/zh-TW

optional: (簡體中文翻譯)
unzip zh-CN_1.5.18_admin_v6.zip to Joomla/administrator/language/zh-CN
unzip zh-CN_1.5.18_site_v3.zip to Joomla/language/zh-CN

mv Joomla/ …/htdocs/
(假設 Joomla 不是安裝在網頁的根目錄, 所以存取時要類似這樣存取: http://example.com/Joomla/)
cd …/Joomla/
DON’T cp configuration.php-dist configuration.php
DON’T chmod 777 configuration.php
(不然你會在最後一步無法產生範例資料)

3. Create db and account for Joomla

CREATE DATABASE `joomla_db` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON `joomla_db` . * TO ‘joomla_acct’@’localhost’ WITH GRANT OPTION ;

4. Install by web page

Setting by web page:  http://example.com/Joomla/

  1. 選擇語系, Select zh-TW (tranditional Chinese), 下一步
  2. 授權規定, 下一步
  3. 資料庫設定
    • 資料庫類型:  mysql
    • 主機名稱: localhost
    • 帳號: joomla_acct
    • 密碼: ********
    • 資料庫名稱:  joomla_db
    • 刪除現有資料表
    • FTP設定: 否

    , 下一步

  4. 填寫網站資料
    • 網站名稱: 諸彼特網站目錄
    • 您的E-mail: zhupiter@gmail.com
    • 管理區密碼: ******
    • 確認管理區密碼: ******
    • 安裝範例資料 –> 範例資料安裝成功

    , 下一步

完成 恭喜您!Joomla已成功安裝。

5. 將設定檔存到 …/Joomla/configuration.php

Copy and paste the setting to …/Joomla/configuration.php  (Can not have empty line in EOF, or you will get session error message.) and paste to UTF-8 file!

6. 請記得務必完整地 移除安裝目錄 : rm -rf installation/

o 可以做的一些修改

o Show the page view counter

Edit …/Joomla/components/com_content/views/category/tmpl/blog_item.php
Around at line 102

<?php if ($this->item->params->get(‘show_create_date’)) : ?>
<tr>
<td valign=”top” colspan=”2″>
<?php echo JHTML::_(‘date’, $this->item->created, JText::_(‘DATE_FORMAT_LC2’)); ?>
</td>
</tr>
<?php endif; ?>

+<?php if ($this->item->params->get(‘show_hits’)) : ?>
+<tr>
+        <td valign=”top” colspan=”2″>
+                <?php JText::printf(‘hits’); echo $this->item->hits; ?>
+        </td>
+</tr>
+<?php endif; ?>

Edit …/Joomla/components/com_content/views/article/tmpl/default.php
Around at line 110

+<?php if ($this->params->get(‘show_hits’)) : ?>
+<tr>
+        <td valign=”top” colspan=”2″>
+                <?php JText::printf(‘hits’); echo $this->article->hits; ?>
+        </td>
+</tr>
+<?php endif; ?>

Edit …/Joomla/components/com_content/models/frontpage.php
Around at line 128

query = ‘ SELECT a.id, a.title, a.alias,
–>
query = ‘ SELECT a.hits, a.id, a.title, a.alias,

Edit …/Joomla/components/com_content/views/frontpage/tmpl/default_item.php
Around at line 104

<?php if ($this->item->params->get(‘show_create_date’)) : ?>
<tr>
<td valign=”top” colspan=”2″>
<?php echo JHTML::_(‘date’, $this->item->created, JText::_(‘DATE_FORMAT_LC2’)); ?>
</td>
</tr>
<?php endif; ?>

+<?php if ($this->item->params->get(‘show_hits’)) : ?>
+<tr>
+        <td valign=”top” colspan=”2″>
+                <?php JText::printf(‘hits’); echo $this->item->hits; ?>
+        </td>
+</tr>
+<?php endif; ?>

o Change the Copyright string in footer

Edit …/Joomla/language/zh-TW/zh-TW.mod_footer.ini
Change:
[cc lang=”php”]
FOOTER_LINE1=Copyright &#169; %date% Open Source Matters. 版權所有.<br />
FOOTER_LINE2=<a href=”http://www.joomla.org”>Joomla!</a>是基於GNU/GPL授權規定的自由軟體.
[/cc]

o Add Counter

擴充套件 / 模組管理 / Statistics
標題: 計數器

選單單元: 首頁

o Add a new module location

Edit …/Joomla/templates/rhunk_milkyway/index.php
Around at line 105

<jdoc:include type=”modules” name=”user1″ style=”xhtml” />
+<jdoc:include type=”modules” name=”user5″ style=”xhtml” />

Edit …/Joomla/templates/rhunk_milkyway/templateDetails.xml
Around at line 74

<position>user4</position>
+<position>user5</position>

Use http://www.zhupiter.com/Joomla/?tp=1 to show the result.
You will see the user1 followed by user5.

You can set this position for some modules, for example, Who’s Online module
擴充套件 / 模組管理 / Who’s Online
位置: user5

o Add and change the theme

擴充套件 / 安裝/移除
瀏覽: Select the ziped file
上傳檔案 & 安裝

擴充套件 / 佈景主題管理
選取 新佈景主題的 check box
按 [預設]

o Different page using different theme

擴充套件 / 佈景主題管理
選取 某佈景主題的 check box
按 [編輯]

選單指派, 選[從選單選擇]
例如點選 Joomala!Overview
按 [儲存]

o 安裝擴充套件

o Install CKEditor

chmod 777 tmp/ in Joomla directory.
chmod o+w …/Joomla/plugins/editors/
chmod o+w …/Joomla/administrator/language/
chmod o+w …/Joomla/administrator/language/en-GB/

Download http://of.openfoundry.org/download_path/joomla/Extensions/CKEditor.2.0.zip

擴充套件 / 安裝/移除
瀏覽: Select the ziped file
上傳檔案 & 安裝

安裝 外掛: 成功

chmod 755 tmp/ in Joomla directory.
chmod o-w …/Joomla/plugins/editors/
chmod o-w …/Joomla/administrator/language/
chmod o-w …/Joomla/administrator/language/en-GB/

o Install Attachments for content articles

from: http://joomlacode.org/gf/project/attachments/frs/
chmod o+w -R Joomla
download http://joomlacode.org/gf/download/frsrelease/12245/51356/attachments-2.0.2.zip

擴充套件 / 安裝/移除
瀏覽: Select the ziped file
上傳檔案 & 安裝

全站設定 / 系統
合法副檔名 (檔案類型) :zip,rar,ZIP,RAR

擴充套件 / 外掛管理
啟用 Content – Attachments
Editor Button – Add Attachment
Search – Attachments

chmod o-w -R Joomla

Usage: 1. 內容 / 文章管理 / 新增文章並發布
2. 元件 /Attachment (文章附件) / 新增
3. 文章 –> 發布
4. 參數 –> 決定哪個層級可看到

o Install Page Peel Banner (撕頁廣告)

…….

o Install Joom!Fish

Download Joom!Fish http://www.joomla.org.tw/downloads/callelement/joomfish/file/download?format=raw&args[0]=f4be9216a419075d9b12e359265d3a05
Joomfish2.0.4_fixed_v3.zip

Download Joom!Fish Translations https://www.joomfish.net/index.php?option=com_rokdownloads&view=folder&Itemid=70
http://joomlacode.org/gf/download/frsrelease/10215/45457/JoomFishSimplifiedChineseLanguage_2.0.3.zip

http://joomlacode.org/gf/download/frsrelease/10215/39456/JoomFishTraditionalChineseLanguage_203.zip

擴充套件 / 安裝/移除
瀏覽: Select above ziped files
上傳檔案 & 安裝

* 安裝 元件: 成功

Multilingual extention and translation manager for Joomla! 1.5.x

語言設定 : 元件 / Joom!Fish / 控制台
語言設定
啟動: 勾選要的語言
簡短碼: 正體中文 的 zh –> tw

o Install JComments

http://www.joomla.org.tw/downloads/callelement/jcomments/file/download?format=raw&args[0]=e7eda8c19714e17cbb5b89fd9d1aca29
unzip Unzip_First_jcomments.zip
擴充套件 / 安裝/移除
瀏覽: Select above ziped files
上傳檔案 & 安裝

o Unicode Slug

from:  http://www.joomla.org.tw/downloads/callelement/unicodeslug/file/download?format=raw&args[0]=8848206f94afa36f0e25da28f72a107d

* 安裝 外掛: 成功

小技巧:當複製網址時,瀏覽器的行為會相當不同. Firefox會複製unicode格式,而Opera會用原來的字體.

///
「擴充套件」→「外掛管理」中把名稱為”System – Unicode Slugs”的外掛啟用

o Free Joomla templates

http://www.joomlatemplatesdownload.com/

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.