修改WordPress Sociable 插件,打造属于自己的个性书签

WordPress 最强的书签工具 Sociable 是国外的代码,里面的书签都是国外的,对我们中国博主来说基本没有用,但我们可以简单改一下这个插件的代码,加入我们中国常用的书签,打造自己个性的书签插件:

Sociable 插件官方地址:http://yoast.com/wordpress/sociable/

Download sociable

  1. 用记事本打开sociable.php,找到$sociable_known_sites = Array(,然后将如下代码加入到里面。

‘Yigg’ => Array(
‘favicon’ => ‘yiggit.png’,
‘url’ => ‘http://yigg.de/neu?exturl=PERMALINK&exttitle=TITLE’,
),

‘QQ书签’ => Array(
‘favicon’ => ‘qqbookmarks.gif’,
‘url’ => ‘http://shuqian.qq.com/post?uri=PERMALINK&title=TITLE’,
),

‘我挖网’ => Array(
‘favicon’ => ‘wowa.gif’,
‘url’ => ‘http://www.digbuzz.com/submit.php?url=PERMALINK&qs_title=TITLE’,
),

‘收客’=> Array(
‘favicon’ => ’shouke.gif’,
‘url’ => ‘http://www.shouker.com/mc/col/post2.aspx?surl=PERMALINK&title=TITLE’,
),

‘百度搜藏’ => Array(
‘favicon’ => ‘baidu.gif’,
‘url’ => ‘http://cang.baidu.com/do/add?iu=PERMALINK&it=TITLE&dc=&fr=ien#nw=1′,
),

‘饭否’ => Array(
‘favicon’ => ‘fanfou.gif’,
‘url’ => ‘http://fanfou.com/sharer?u=PERMALINK&t=TITLE’,
),

‘365Key网摘’ => Array(
‘favicon’ => ‘365key.gif’,
‘url’ => ‘http://www.365key.com/storeit.aspx?t=TITLE&amp,&u=PERMALINK’,
),

‘POCO网摘’ => Array(
‘favicon’ => ‘poco.gif’,
‘url’ => ‘http://my.poco.cn/fav/storeIt.php?u=PERMALINK&t=TITLE’,
),

‘新浪ViVi’ => Array(
‘favicon’ => ’sinavivi.gif’,
‘url’ => ‘http://vivi.sina.com.cn/collect/icollect.php?pid=28&url=PERMALINK&title=TITLE’,
),

‘DigLog’ => Array(
‘favicon’ => ‘diglog.gif’,
‘url’ => ‘http://www.diglog.com/submit.aspx?act=like&returnurl=true&PERMALINK&title=TITLE’,
),

2.将插件另存为sociable.php,主要要将编码选择为’uft-8′

3.然后按正常方法上传插件,最后在选择需要显示的分享网站即可。

修改WordPress Sociable 插件,打造属于自己的个性书签》有2个想法

发表评论

电子邮件地址不会被公开。 必填项已用*标注