Live Writer确实不错,只是对于第三方插件仍有不兼容| Live Writer‘s good but having issue with plugins

上一篇文章的代码在Live Writer中无论如何编辑都会变作一行,一开始是因为忘了把代码的[ html]…[ /html]部分放入<p>…</p>之中,而后添加了<p></p>也没有反应,只好进Chrome登录WP发现添加的<p></p>都消失了,没办法,只好使用自带的编辑器加上之后发布,效果很好。 顺带一提,之前用的是wp-code插件,目前换为强大的syntax highlighter,确实不错,期待日后继续使用。 ----------------------------Lang Sep----------------------------- The last post was first edited and…

修改代码添加文章SNS分享链接| Code for adding bookmark links to popular SNS for each post

之前说到可以用WP Greeting Box来识别来客来源网站,这次则是截然相反的代码。作用便是鼓励读者将文章推荐到各大社交网站进行分享。起初我是用的”Simple Social Network Bookmark”这个插件的,结果在目前的主题上出现了错误,使得侧边栏被移动到了最下方。于是无奈只好自己动手修改代码。已有的这个插件颇有些借鉴价值,于是俺就将其中的分享链接部分提取了出来,却不知道该放在哪里。经过一番股沟搜查,发现主题目录下的single.php是关键,于是在tag之后添加了如下代码:

————————–Lang Sep————————-

The code below adds the ability of bookmarking the current post to popular Social Network Sites(SNS) to the blog. You can put it in to the single.php file in the directory of your theme. The code was originated in a plugin called ”Simple Social Network Bookmark”. However, this plugin had some collision with my theme so I rewrote it and the effect is shown after this article. The path of the images may vary for different image sources.