关于wordpress中文版
Apr 16th, 2008 at 19:54 Posted in 部落格//Be Blogger, Tagged: Blog,Wordpress | 3 Comments »要在公司内网搭建一个wordpress用作信息发布。首先安装一个WAMP满足wordpress的运行环境,然后就是找一个wordpress的中文版来安装。
先后下载了两个版本的中文wordpress(非官方),第一个主题被汉化,后台还是英文。第二个主题和后台都被汉化了,但是有一个问题: 更改permalinks的格式就会出现除首页外的其他页面(如分类界面、单篇文章界面、日期归档界面)“NOT FOUND”错误,反正暂时不需要搜索引擎收录,只能用默认的。
这样看来,这两家还是不要指责wordpress2.5是如何还没完善就带着bug放出了。除了2.5后台人性化稍稍差了点,我还真没碰到什么bug影响正常使用。
WordPress升级测试工具
Mar 30th, 2008 at 11:56 Posted in 部落格//Be Blogger, Tagged: plugins,Wordpress | No Comments »我一怪癖就是喜欢保持各常用软件“先进性”以及“先尽兴”,硬件条件落后或者新版本无破解的情况下除外。这肯定和性格有关系。
刚在wp-tester的maillist里看到一个工具,对仍在使用低版本wordpress同时对升级稍有畏惧的blog可能会有一些用处。由于升级失败会给时间和情感带来一定损失,所以这只是无责任推荐:P WordPress Upgrade Preflight Check
什么时候开始喜欢怂恿别人升级了?
…
WordPress 2.5 Released
Mar 29th, 2008 at 23:20 Posted in 部落格//Be Blogger, Tagged: Wordpress | No Comments »晕菜,只是刷新了一下WP主页,赫然发现已经改版,Wordpress2.5正式版已经放出。可怜Blue-box主题对Visual Editor有影响,大好的心情被破坏了。
where is the admin color scheme option
Mar 22nd, 2008 at 18:04 Posted in 部落格//Be Blogger, Tagged: Wordpress | No Comments »自从升级之后,我就一直苦苦寻找WP2.5的切换后台管理界面主题(Admin Color Scheme)功能。几乎点遍了后台所有能点的链接,睁大了眼睛也没发现到底在哪里切换Classic和Fresh这两种颜色搭配方案。“\wp-admin\css\”里的两个文件又确切地告诉我RC1版本并没有丢掉这个功能,最后还是在WordPress Support Forum里找到了答案,被藏在了“Users>Your Profile”里。之前寻找的时候恰恰只点到了Users,因为觉得最不可能把这个功能放在Your Profile下!
Users-Your Profile-the scheme-Update, you have to click four times to apply the new admin color scheme. Inconvenient.
WP升级至2.5RC1及若干
Mar 20th, 2008 at 23:48 Posted in 部落格//Be Blogger, Tagged: codes,Wordpress | No Comments »在Wordpress Blog上看到这句“The software is basically done and stable, and could be released today, but…”的时候,我决心等到WP2.5正式版放出再升级的坚定想法彻底消失,已经顾不上后面的but…, 鼠标直奔下载链接而去。
升级之前分别用”WordPress Database Backup“插件和自带的”Export“功能做了两个备份,2.5的改动似乎较大,保险起见没有覆盖上传,而是把2.3的文件直接挪到了一个临时文件夹中(为升级失败做准备,没有直接删除)。上传完毕后,页面正常打开,升级出乎意料地顺利,主题和插件也没有找麻烦。除后台界面面目基本全非外(居然没有找到Admin Color Scheme功能),还新增了”Add media“以及Simple Tag中已有的Tag Slug功能,好坏只能见仁见智。
早上偶然寻到一个很有才的wp theme作者,然后整个晚上就沉在眼花的代码中。成果颇丰,搞定random header image的同时还顺带找到如何用php表达css表单:
[ ?php echo(rand(1,5)); ?]
上面的代码很简单(google结果的第一条就是这个方法),随机在1~5之间生成一个数字。实现random header image效果只需要将图片放在同一路径下,命名采用数字区分,随机出哪个数字就显示对应的图片。不过遇到显示图片的代码写在css表单中的情况,除了将上段代码放进能够编译php的文件中执行来解决,只能想办法用.php文件格式来表达css表单,否则.css文件无法编译php代码。本来前一种方法很容易就搞定,但是之前用过的MK主题就是采用style.php的方式实现自定义主题颜色和宽度,这次又开始钻牛角尖。有示例做参考,几番折腾终于搞定:
在functions.php中加如下一段,
[ ?php function mytheme_wp_head() { ?]
[link href="[?php bloginfo('template_directory'); ?]/style.php” rel=”stylesheet” type=”text/css” /] [ ?php } add_action('wp_head', 'mytheme_wp_head'); ?][/link]
再将style.css改名为style.php,并在文件顶部加这么一条:
[ ?php require_once(dirname(__FILE__).'../../../../wp-config.php');
require_once(dirname(__FILE__).'/functions.php');
header("Content-type: text/css"); ?]
[和]分别替换为< 和>… 大功告成。
上次花费N个晚上修改前一个主题时,真没想到今天更换时会放弃得这么义无反顾。
update: 放弃了随机head image功能,因为发现会导致Visual Editor无法使用。具体原因不明,使用另一个同样以php格式定义css样式的主题却不会出现此问题。 更新了绿色部分,搞定…
WP2.5 has been delayed
Mar 11th, 2008 at 18:16 Posted in 部落格//Be Blogger, Tagged: Wordpress | No Comments »This is the NOTE in wordpress planet:
*Note* WordPress 2.5 was TENTATIVELY scheduled to be release on March 10th, 2008. However, it looks like it’s not ready for production treatment and thus, has not been released.
so the waiting continues…
update: for one week or even more.
Reupload wordpress files to solve live writer connection problem
Dec 9th, 2007 at 15:08 Posted in 部落格//Be Blogger, Tagged: WLW,Wordpress | 1 Comment »When WLW(2008version) connecting to wordpress 2.3.1, it returned this error:
尝试连接到日志时出错:
服务器响应无效-从日志服务器接收的对blogger.getUsersBlogs方法的响应无效():
Invalid response documnet returned from XmlRpc server
必须先纠正此错误才能继续操作
the English version is:
Error connecting to weblog
An error occurred while attempting to connect to your weblog;
invalid server resonse -the response to the bloger.getuserblogs method received form weblog server was invalid;
Invalid response document returned from xmlrpc server
You must correct this error before proceeding
I spent 2 days to looking for the solution. modify the .htaccess file, remove the blank near closing tag, use the default theme and deactivate all plugins, all those action did not work at all. Before contacting with my blog’s host, I delated all the wordpress files on the ftp but didnot clear the database and reuploaded, and then succeed! of course backup before that.
btw: before solving the problem, I have used fiddler to see what happened, and it returned a mismatch error:
Content-Length mismatch: Response Header claimed 531 bytes, but server sent 2938 bytes.
I don’t know why.


