[WP Plugin] 修改 Sociable 加入台灣共享書籤
- 十一月 6th, 2008
- Posted in Blog 相關
- Write comment
使用Sociable發現它只有加入少數的台灣共享書籤網站,自己動手加了PChome、Google、Udn、funP、YouPush、Fiigo及Push-Reporter這幾個網站,至於Udn的部份因為網址的參數與Sociable內定義的參數相同,會造成抓到兩筆相同的標題,所以我也改了Sociable內定的參數。
update at 2008-11-06
更新為版本 Sociable 2.9.5 版本並加入台灣本地書籤,詳細更新訊息請參考WordPress Plugin
修改 sociable.php 469 行
$url = str_replace('TITLE', $title, $url)修改為
$url = str_replace('TITLENAME', $title, $url)這邊是修改參數避免造成Udn無法抓到文章標題,接著是加入台灣的共享書籤
sociable.php 33 行 加入
'Push-Reporter' => Array(
'favicon' => 'push.png',
'url' => 'http://www.push-reporter.com/submit.php?url=PERMALINK',
),
'YouPush' => Array(
'favicon' => 'yp.gif',
'url' => 'http://www.youpush.net/submit.php?url=PERMALINK',
),
'Udn' => Array(
'favicon' => 'udn.gif',
'url' => 'http://bookmark.udn.com/add?f_TITLE=TITLENAME&f_URL=PERMALINK',
),
'Fiigo' => Array(
'favicon' => 'fiigo.gif',
'url' => 'http://www.fiigo.com/bookmark/add.php?a=add_web&title=TITLENAME&url=PERMALINK',
),
'funP' => Array(
'favicon' => 'funP.gif',
'url' => 'http://funp.com/pages/submit/add.php?TITLE=TITLENAME&url=PERMALINK&via=tools',
),然後再把sociable.php內的「TITLE」取代為「TITLENAME」(取代時請勾選區別大小寫,不然會造成某些Link無法work) ,完成後如本站下方的圖示,如覺得太麻煩的話可下載我修改好的檔案,不過一些國外的網站我就沒測試了,如發現有問題的話請在通知小弟。
Download:TWSociable 2.9.5
在您下載的同時,也為了讓我有更多的作品,也請您抽空擊點一下本站的廣告圖示。






No comments yet.