Archive

Posts Tagged ‘wordpress’

换了一个新的主题

May 24th, 2007 No comments

为了提高页面的速度,将主题换成了简洁明快的Almost Spring,感觉还不错。

最希望做的就是把blog坚持写下去,并尽快把Tag功能加上。

Categories: 随心所记 Tags:

Image Upload via Live Writer

April 13th, 2007 No comments

WordPress has been updated to version 2.1.2, and many friends found that they can’t upload images via Windows Live Writer if with PHP 5.2. When publishing a post with a image in it, you will receive an error: “Image Upload Not Surpport by Weblog”. And in the wp-content/upload folder, the images exist there but the file names is wrong.

But when it was WordPress version 2.0, it works well.

How do you get this to work?

The first solution is to degrade the PHP version to 4.2.x. If you host your webserivice on Dreamhost, it’s a good solution.

But sometime you can’t change your PHP version, and now, rockyzh post a solution here:

Modify from line 138 of wp-includes/class-IXR.php as below:

function parse() {
// first remove the XML declaration
$rx = ‘/<?xml.*encoding=[\'”](.*?)[\'”].*?>/m’;
if (preg_match($rx, $this->message, $m)) {
$encoding = strtoupper($m[1]);
} else {
$encoding = “UTF-8″;
}
// $this->message = preg_replace(‘/<\?xml(.*)?\?’.’>/’, ”, $this->message);
// if (trim($this->message) == ”) {
// return false;
// }
$this->_parser = xml_parser_create($encoding);

I have not tested the solution, some one reports it working but some others said no.

测试WLW在WordPress上贴图

January 7th, 2007 1 comment

传闻b总要做一个支持WordPress的离线编辑软件,和WLW的区别在于WLW不支持WordPress的贴图。自己不记得了。

故测试一下。

从今天开始使用新的Blog

January 2nd, 2007 No comments

已经想了很久了,MSN的space除了能够和msn朋友们交流方便之外几乎一无是处。速度慢还经常出错,所以在2007年就将这里作为blog的主阵地,在写blog的时候,同时发到msn上,反正都是很方便的。

在自己的服务器上就有充分的定制空间,而且WordPress也支持Windows Live Writer,希望可以有个不错的开始。

msn上的blog地址: http://msn.satwe.com (http://hamo2008.spaces.live.com)

新的blog的地址: http://satwe.com

Categories: 随心所记 Tags: , ,