Tuesday, December 22, 2009

教學:Recent Comments widget

Recent comments widget,不用我多說,寫Blog的人知道是什麽。

由於阿飯的comment是要經過她approve的<---她怕有人寫色情的東西/爆料她的秘密所以要先approve避免秘密公開 所以阿飯不需要這個widget。Gy.不懂有沒有面臨這樣的問題,不看教學的後果哇咔咔。 咳咳。昨天廷玥說要在阿飯的blog leave comment太麻煩了<---我也覺得


1) 沒有embed comment below post的功能<---這是讓我厭煩的,所以我只留在chatbox
2)留了comment還要等她approve <---comment沒有被publish出來有種沒有留到comment的感覺

咳咳。阿飯你自己好好反省。
其實Google一下便能找到了recent comment的widget. 這裡隨便介紹一下在我的blog的。


1) 點擊到這個網站
--由於這個網站只要你的blog address就萬事ok所以很方便(不用改layout)
--過後有些朋友幫忙補充了這個widget。不過我覺得沒有什麽大差別啦。


最新回應(拿掉時間,縮短回應字句)

for (var i=0, post; post = sortentry[i]; i++) {

if(i>=postshow) break;

var title=post.content.$t.substr(0,5);

var link=post.link[0].href;

var authorname=post.author[0].name.$t;

temp += '
  • '+ title +'-'+'-'+authorname+'
  • ';

    }

    成果:



    成果:
    **只是我不喜歡這個Italic

    3) 還有一個方式:

    Hackosphere has developed a widget that lets you display the last comments made on your blog. This widget was made quite a few days back, but I came across this widget yesterday while readingPriya’s Blog. You can specify how many comments need to be show (default is 10) and also the number of letters to be displayed in each comment (defaults to 100). This was developed soon after Bloggerannounced that they support blog feeds in JSON format also.

    I have made my recent comments block on the right hand side of this blog. If you have not used this widget and interested in using this one,Click here to get the code developed by Hackosphere.

    Technorati tags: ,



    不過就是要修改layout太麻煩了。哎。不知道要不要弄。因為這個沒有Italic
    吼吼吼~ (學安西教練)<---最近XC連夜趕看slam dunk看到瘋掉了,要體諒一下

    0 Comments:

    Post a Comment

    『卻說不出在什麽場合我曾讓你分心。
    你離開我,這是旅行的意義』

    Loading...