九月 07, 2006

新增功能

修正公告系統,把原本的宣告改成公告系統!

以下整理出所有修改過的檔案和安裝使用步驟:

摘要頁面公告核心補強 v0.1


!!!注意!!!

安裝這個核心補強程式時,可能因為檔案複製錯誤而造成 LifeType 系統無法操作,強烈建議,在繼續下面步驟時,先備份你的 LifeType 系統

安裝過程並沒有更動任何資料庫的內容。

概念

網站管理員若要發佈公告給 blog 用戶時,可以在自己的網誌寫公告文章,並且只要將文章指定為特定文章分類時,文章便同步出現在網站的摘要頁面首頁,讓整個網站的用戶都可以隨時在摘要頁面看到管理員發佈的最新消息。

安裝

請先下載我所製作的 lifetype-summary-announces-hack-0.1.tar.gz 解壓縮後共有 7 個檔案:

  • readme-tw.txt :
    說明檔。
  • summarydefaultacitoon.class.php :
    修改的摘要頁面首頁核心程式碼。
  • announces.templates 和 index.template :
    摘要頁面首頁的相關樣版檔。
  • globalsettings_summary.class.php :
    管理介面中摘要設定頁的樣版檔。
  • locale_zh_TW.php 和 locale_en_UK.php :
    繁體中文和英文的語系檔。

接下來將檔案複製到相對位置:

檔案位置
summarydefaultaction.class.phpclass/summary/action/

announces.template(*)
index.template(*)
(*)這兩個檔案為摘要頁面的樣版檔,可以依自己的需要修改,不一定要複製。

templates/summary/
locale_zh_TW.php
locale_en_UK.php
locale/
globalsettings_summary.templatetemplates/admin/

這樣安裝就算完成了。

使用

  1. 在網站管理員的 blog 新增一個文章分類,未來任何公告在摘要頁面的文章都要指定這個文章分類
  2. 全域設定的 default_blog_id 設定網站管理員的 blogId
  3. 摘要設定的 summary_announce_posts_category_id 指定步驟 1 裡公告文章分類的 categoryId
  4. 此時摘要頁面應該可以看到最新消息/公告了。如果沒有,請刪除 tmp/summary 目錄下的所有檔案再重新整理網頁應該就可以了。


引用URL

http://mail.lnes.tp.edu.tw/lifetype/trackback.php?id=161
回應文章
 

文章逆向連結

  1. http://www.google.com (4)
  2. http://tw.search.yahoo.com/search?p=lifetype+summary+%E4%BF%AE%E6%94%B9&... (2)
  3. http://search.live.com/results.aspx?q=lifetype (2)
  4. http://tw.search.yahoo.com/search?ei=UTF-8&p=lifetype%E5%82%99%E4%BB%BD&... (1)
  5. http://www.google.com/search?q=lifetype+hack&hl=zh-CN&lr=&newwindow=1&st... (1)
  6. http://www.google.com.tw/search?q=lifetype+template&hl=zh-TW&cr=countryT... (1)
  7. http://www.google.com.tw/search?q=locale_zh_TW.php&sourceid=navclient-ff... (1)
  8. http://www.google.com.tw/search?q=%E6%91%98%E8%A6%81%E9%A0%81%E9%9D%A2%E... (1)
  9. http://www.google.com.tw/search?q=lifetype%E5%AE%89%E8%A3%9D%E7%AE%A1%E7... (1)
  10. http://tw.search.yahoo.com/search?p=utf+8+lifetype&ei=UTF-8&fr=yfp-ss&x=... (1)