Flickr Photo

Sleepy Polar Bear. Get yours at bighugelabs.com/flickr

Friday 20 July 2007

新版 Recent Comments 出爐

找了好久,Blogger 最不方便的地方真的是沒有 Recent Comments...
網路看了很多 Solution,以兩個最大宗:E-mail Notification 方式和、Feed 和 JSON 方式。

其中 E-mail Notification 就是讓 Blogger 寄信到該網站給妳的 E-mail 後弄成 RSS 去讀取。
很麻煩的地方是... 要是 Comments 被刪除,那妳就還要進到那個網站人工刪除該 Comments,非常麻煩(雪人還蠻懶的)

Feed 和 JSON 方式就是讀取 http://yourblog.blogspot.com/feeds/comments/default/ 然後去做處理。Feed 是最好弄的,但是有兩點很麻煩,就是最多只能五個,以及沒有 "Title"... 主題都是人家回應的內容,實在不知道人家到底回應哪篇文章。JSON 讀取方法可以解決第一個問題,但是大多都還是卡在後面 Title 的問題。

花了七個多小時終於 Solve 完這個問題... 超高興的 ^^

6 comments:

Snowmen said...

奇怪,這要怎麼貼 Code... @_@

Meatball said...

Hi Snowmen,


Wow, cool! Could u show me the code for recent comments?

Snowmen said...

well... I am doin' the widget right now so ppl can customized a little bit and don't need to worry about the code. I might get it done next week though, hopefully.

Snowmen said...

呵呵~非常抱歉~本來說這個禮拜要弄完的說... 結果食言...

不知道 meatball 兄有沒有私下連絡的方法呢?

Meatball said...

snowmen,

嘿嘿嘿~project delay, 軟體業的通病阿~~~~呵呵~

我一般都不留email耶, spam已經夠多了, 一放上網頁就不得了...

怎麼辦呢?

Snowmen said...

呵呵~恩~那我考完 Final 後寫吧... XD