今天把wordpress升级到了2.5beta1, 中文又是一片乱码, 唉,万恶的8-host, 万恶的GBK.
不得已,再去翻wp-db.php. 却发现代码改了,添加了对DB_CHARSET的支持,使用了:
$this->charset = DB_CHARSET;
...
$this->query("SET NAMES '$this->charset'");
来定义数据库连接的编码了
于是马上在我的wp-config.php中添加了一行:
define('DB_CHARSET','UTF8');
F5了一下, 果然好用, 哈哈.以后不需要改wp的core, 直接在config文件中定义就可以了. 方便,方便,相当地方便.
Long time no say… HOHO
I think I was to busy(lazy) to write something here. Until, yesterday I got this pretty program, Windows Live Writer, installed. Surprisingly it supports Wordpress. Cool. Now I don’t have to log onto my site panel and write anymore. So here I write the first post in this month.
Another interesting thing is JIRA. This fu*king cool stuff is almost what I wanted for quite a long time, and it provides more than I expected. But it made me crazy for 2 days because of the installation. I followed every step in the instruction but still failed to install it into my standalone Tomcat server. Finally I installed a standalone version of JIRA – with a internal Tomcat and database. F**k. The only thing I need now is a keygen for it – I have only one month left for the trial version.
The last thing is about offline diary software. Today blog software is popular that no one want to write a offline diary -except me. I need a diary software to write something which I don’t want to publish. I searched for quite a while but found nothing good. I need some thing with a good look – like Live Writer do. But the programs I found were all way too ugly. I will write one by myself – if I have time to.
It was a long time ago when there was a discussion in the wp-hackers list about intergrate OpenID into wordpress. There was suggestion to put it into wordpress core. But there seems to be a final decision from ticket #3616 that it won’t get into core.
That, i think, is partly because of the excellent plugin wp-openid.
Closing as WONTFIX for now. Multiple plugins exist for this functionality. You have also combined the two issues of consuming and serving.
I was waiting for the openid support in wp core until I saw this ticket today. So I installed WP-OpenID right away. It’s a good plugin, though no many option. Support OpenID in commenting is what I wanted for a long time, but I really want to turn off the openid login support – that adds an user in my blog!
Anyway, friends, you can use your openid url to comment on my articles now.
Enjoy!
I updated my local sandbox blog to the latest SVN version. Surprising! The admin panel have a new skin now!

Obviously it’s just launched. Only the upper header and footer are changed. I even got a error in the dashboard. Except this, I love this new style. It’s brighter and with better tab style.
As said in the wp-hackers list, the new design is contributed by happy cog.
I am sure there will be a fantastic design come with the upcoming wordpress 2.4.
PS: Why not happy cog design a template for wordpress? Am I greedy? Haha…
Multilingual posts - a plugin adds language tags to your posts pages – is updated to version 0.2 now.
Changes includes:
- Insert css styles which can place a background image in your post indicating your post language
- You can define language direction in “languages.php”. Once it’s defined, the direction will be added when you specify language tag
- Changed readme file for bettery display in wordpress plugin directory. Also fixed a problem in readme file.
Since this plugin is hosted in the offical wordpress plugin site, you can always download the latest verion at Plugins Directory.
Enjoy!