歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 19, 2024, 02:27:53 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  開發  |  核心補強  |  在摘要頁面顯示由網站管理員blog發佈的文章(最新消息) « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 在摘要頁面顯示由網站管理員blog發佈的文章(最新消息)  (閱讀 17918 次)
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 於: 十一月 09, 2005, 11:37:21 下午 »

延續「分享小技巧~summary摘要的最新消息」的討論。我已經開發出一個 hack 來實作這個功能,包括後台管理界面的設定都做好了。

我寫了一系列文章( 6 篇)來紀錄這個開發的歷程,希望對想瞭解 LifeType 程式的人能有所幫助。當然,難免有所疏漏錯誤,敬請不吝指正。這六篇文章發表在 lss實驗室

文章標題:在摘要頁面顯示的公告(最新消息) Part 1Part 2Part 3Part 4Part 5Part 6Part Final(新增!包括安裝及使用說明)

不過這比較像我的文章發表,所以另開一個新的主題。

看完 6 篇文章後,可能有人會問,有沒有改好的檔案可以用?步驟能不能寫簡單一點?
答案:當然有檔案可以用,省掉廢話只看安裝步驟當然可以。只是,現在凌晨 12:35 am,請先讓我睡一覺,明天有空再整理吧!寫這 6 篇花了我大半天的時間,真的很累了,拜託!拜託!

另外,我會到 mantis 開個 issue ,希望至少能把這個功能排進 1.1 裡面。我覺得真的蠻實用的。
mmm....要用我的破英文虐待 Oscar 了。  害羞
« 最後編輯時間: 十一月 10, 2005, 08:47:49 下午 由 lss » 已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #1 於: 十一月 10, 2005, 08:51:25 下午 »

這個 hack 我正式稱為「摘要頁面公告核心補強 v0.1」。

相關檔案下載及安裝步驟,請參考  在摘要頁面顯示的公告 Part final

好不好用,看大家的意見了。至於未來會不會加入正式版本也完全不知道。

就這樣!
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #2 於: 十一月 10, 2005, 09:46:06 下午 »

已經在 mantis 提出 feature request: http://bugs.lifetype.net/view.php?id=739

接下來就看 Oscar 和其他開發團隊成員怎麼想了。

真希望我的英文不會太爛 害羞
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #3 於: 十一月 11, 2005, 01:13:20 下午 »

宗欣兄在他學校的線上學習網站寫了一個很棒的教學

摘要頁面公告核心補強 v0.1使用教學

給大家參考。
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #4 於: 十一月 12, 2005, 10:37:29 下午 »

Oscar 有回覆了:
引用
This looks interesting. We can include as an optional feature in lifetype
1.1.

But what happens when we've got more than administrator per site?
所以他應該會在 1.1 版成為一個可以選用的附加功能。(不是 1.0.2 版哦!所以 1.0.2 正式版出來後,要繼續用的人得再做一次 path。

不過,我的英文不好,請問一下第二句 Oscar 的意思是什麼?我英文不太好 :-$是不是說「如果網站有多過一個管理員時該怎麼辦?」
我想先確定我沒有誤會 Oscar 的意思再回覆。

BiBiCall 兄,你英文好,幫幫忙啊…or2
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
ajer001
LifeType 中文發展團隊
超級會員
*****
文章: 516


張阿駕


檢視個人資料 個人網站
« 回覆文章 #5 於: 十一月 13, 2005, 11:44:40 上午 »

我的英文也不好,不過應該是我看到的意思,哈哈。

他的觀點很不錯,意思應該是如果有很多個網管的時候,會怎麼樣?
就是如果你有兩三個blog的公告都要顯示的時候,會如何?

應該是這樣啦
老師,再下一城吧,可以同時多個blog都可以顯示的話,就太屌了。
已記錄

|| FreeBSD + Apache 2.x + PHP 5.x + MySQL 5.x ||
-- ajer001 AT twntwn.info --
bibicall
LifeType 中文發展團隊
超級會員
*****
文章: 640


我是豬老大


檢視個人資料 個人網站
« 回覆文章 #6 於: 十一月 13, 2005, 03:15:07 下午 »

Oscar 的意思應該就是lss老師看到的那個意思
可是,我好奇的是,會有超過一個以上的「總管」嗎?
我的意思是,即使大的網站,是會有分工
但總還是只有一位「總管」吧
所以我時在參不透Oscar這個問句背後意義
把那些要公告的事件全部交由同一「公告用總管帳號」
不就不會有這樣的疑問了嗎?

---反覆思考之後的另一種解釋---

Oscar 會不會誤解了lss老師的意思
以為是每個blog的administrator都能把公告發表在摘要頁面上?
所以有「如果有很多個blog的使用者都發表公告怎麼辦的疑問」了
如果是這樣,可能就要跟Oscar說明清楚
這個功能只有被指定為整個Blog社群的「總管」,才能發表公告
« 最後編輯時間: 十一月 13, 2005, 06:40:29 下午 由 bibicall » 已記錄

我的虛擬主機基本資料如下
Operating system: Linux
Apache version: 1.3.37
PHP version: 4.4.4
MySQL version: 4.1.21-standard
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #7 於: 十一月 13, 2005, 09:12:01 下午 »

謝謝阿駕和bibicall 開懷大笑,讓我確定我的英文沒那麼爛 吐舌頭,那我知道該怎麼回覆了。

其實一個 blog site 是可能有很多個「總管」的。不過,這個問題不必在程式層面解決。我想,每個「總管」都會希望自己的 blog 就只有自己的文章,網站公告/最新消息的處理,實務上應該開一個服務支援的blog,然後把公告/消息都由這個 blog 公告。由這個理念來看,要解決多個「總管」的問題很簡單,相信大家也都想到了……

把這些總管加入服務支援blog的作者群就可以了。我會這樣回覆給 Oscar  的。

bibicall兄說的也有道理,Oscar 也可能誤會我的意思了,所以,我把我 po 在 mantis 的內容貼在下面,大家看看會不會讓 Oscar 誤解我的意思,獻醜了 害羞
引用
Summary      0000739: add announce posts feature to summary page
Description:
we discuse a feature in chinese forum here:
http://forum.lifetype.org.tw/index.php?topic=1378.0 (chinese)
when site admin post articles in his blog, they will show in summary page. it's very convience for bloghosting site admin.
Additional Information:
I have done this feature. attach file for this hack.
1.Site admin may create/set a category in summary setting.
2.Site admin post any site announce post in his blog and tag to category above.
3.these announce posts will display in summary page as site announces.

there is a readme.txt in attach zip file writting in my poor English. 害羞
下面是附檔 readme.txt 的內容:
不情之請,勞煩 bibicall 兄順便幫忙一下,看看有無語意不清或文法錯誤 害羞
引用
annouonce posts in summary hack v0.1

!!!Attension!!!
It might go wrong when you copy files. I strongly suggest that
you should backup your LifeType before you continue.

There is no any change in database.

====Concept====
If site admin want post annouonce for all blogger, he can post article
in his blog, and tag it to a category (ex. site annouce), then these posts
will show in summary page.

It's convenience for site admin.

====Installation====
Please copy files to its location

=======files==========================|=======location===========
summarydefaultaction.class.php         class/summary/action/
announces.template(*)               templates/summary/
index.template(*)                  templates/summary/
locale_zh_TW.php and locale_en_UK.php   locale/
globalsettings_summary.template         templates/admin/

(*)These two files are template files for summary page. you may like
to modify these two instead of replace.

====Usage====
1.Site admin may create a category in his blog (ex. site announce).
  Every posts display in summary page must tag to thie category.
2.Fill in blogId of site admin's blog to default_blog_id in global settings.
3.Fill in categoryId for site announce to summary_announce_posts_category_id
  (new setting) in summary settings.
4.For now, you may see posts in site announce category of site admin's blog
  display in summary page. If not, delete all files in tmp/summary folder, then
  refresh your browser.

====Something else====
1.This hack may not be a feature for new version of LifeType.
2.New chagelog will post in my blog and chinese forum.
  (sorry, just chinese because of my poor English)
3.You **SHOULD** backup your LifeType before making any change.

auther:lss
my blog: http://blog.nlhs.tyc.edu.tw/2
my email: lsslss@gmail.com
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
Stud
初級會員
**
文章: 84


檢視個人資料 個人網站
« 回覆文章 #8 於: 十一月 13, 2005, 11:54:00 下午 »

意思到了,看得懂就好.不過,有一段 There is no any change in database
意思是不會動到資料庫嗎?如果是,改成 This hack won't do any changes in your database
會比較好理解.

Description:
we discuse a feature in chinese forum here:
http://forum.lifetype.org.tw/index.php?topic=1378.0 (chinese)
when site admin post articles in his blog,
最後一段,我覺得 when the site admin posts articles in a certain category of his blog,
或許比較清楚.

還有一個,
(*)These two files are template files for summary page. you may like
to modify these two instead of replace.
好像沒教大家怎麼手動修改?應該要看著你的 index.template 來比對修改嗎?
已記錄

大都會聯播網 http://www.metro.com.tw (WinXP SP3下載中+女童受虐醒思)
頁: [1]
LifeType 中文開發論壇  |  開發  |  核心補強  |  在摘要頁面顯示由網站管理員blog發佈的文章(最新消息) « 上篇主題 下篇主題 »
    前往: