Wordpress升级测试工具
March 30th, 2008 at 11:56 Posted in Blog Concerned, Tagged: plugins,Wordpress | No Comments »我一怪癖就是喜欢保持各常用软件“先进性”以及“先尽兴”,硬件条件落后或者新版本无破解的情况下除外。这肯定和性格有关系。
刚在wp-tester的maillist里看到一个工具,对仍在使用低版本wordpress同时对升级稍有畏惧的blog可能会有一些用处。由于升级失败会给时间和情感带来一定损失,所以这只是无责任推荐:P Wordpress Upgrade Preflight Check
什么时候开始喜欢怂恿别人升级了?
…
Wordpress 2.5 Released
March 29th, 2008 at 23:20 Posted in Blog Concerned, Tagged: Wordpress | No Comments »晕菜,只是刷新了一下WP主页,赫然发现已经改版,Wordpress2.5正式版已经放出。可怜Blue-box主题对Visual Editor有影响,大好的心情被破坏了。
where is the admin color scheme option
March 22nd, 2008 at 18:04 Posted in Blog Concerned, 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及若干
March 20th, 2008 at 23:48 Posted in Blog Concerned, 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
March 11th, 2008 at 18:16 Posted in Blog Concerned, 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
December 9th, 2007 at 15:08 Posted in Blog Concerned, 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.
正在使用的Wordpress插件
November 20th, 2007 at 23:37 Posted in Blog Concerned, Tagged: plugins,Wordpress | No Comments »- Akismet anti-spam插件
- Audio Player
- Brian’s Threaded Comments 为留言增加回复功能
- Clean Archives Reloaded
- Comment Timeout anti spam的另一种方式
- Dofollow 这个可有可无,据说下个版本就直接是Dofollow了
- Feed Statistics 这个就顾名思义了,不过不准,还有2个功能似乎不能用
- Google XML Sitemaps 生成sitemap,用google webmastertools的话这个一定要用
- Lighter Admin Drop Menus 修改WP后台管理菜单为下拉样式,我在此基础上又修改了一下css
- MyDashboard 自定义Dashboard的插件
- No Self Pings
- Simple Tags 针对2.5的更新还没有出,disabled.
- SRG Clean Archives 见details页面的效果
- WordPress Database Backup 备份WP数据库,安全必备
- WP-PageNavi 为WP增加翻页功能
修改Twitter gadget的java代码
November 8th, 2007 at 21:24 Posted in Blog Concerned, Tagged: codes,twitter | 1 Comment »twitter的html/javascript型gadget在后面总会带着相关发布时间的链接,在mk主题的侧栏中很不协调,一直没有找到解决办法。前阵子发现Ne’的twitter就去掉了链接,于是今天在MSN上碰到她的时候就请教了一下,热心的nephee再次耐心帮忙。经过她的提示,解决方法还是比较简单的。
在twitter提供的html/javascript的代码中有这么一行:
<script type=”text/javascript” src=”http://twitter.com/javascripts/blogger.js”></script>
之前总是把注意力放在修改css上,一直没注意到 “http://twitter.com/javascripts/blogger.js”这个链接,今天nephee发给我一些代码片断,我才发现那正式blogger.js中的内容,而且能够在浏览器中打开。其中
<a style=”font-size:85%” href=”http://twitter.com/’+username+’/statuses/’+twitters[i].id+’”> ‘+relative_time(twitters[i].created_at)+’</a>
就是生成那个恼人链接的祸首,最后只留下 ‘+relative_time(twitters[i].created_at)+’就去掉链接了。
最后面临一个儿科级难题,twitter.com上的源码肯定没法修改,放个js文件到riichiie.net上,然后依葫芦画瓢放到src后面也不行。最后还是受nephee那段代码的提示,直接在修改后的代码两端分别放上<script type=”text/javascript”>和</script>,然后放到sidebar文件中,替换掉原来那部分就可以了。
blog ideas via phone
November 1st, 2007 at 0:10 Posted in Blog Concerned, Think Aloud, Tagged: Blog,SMS,Telecom | No Comments »十月份的post数量创了新高,跟前几个月沉迷WOW时形成鲜明对比。主动改变状态是一方面原因,但专注游戏那会儿也没有完全放弃blog,只是想起一个能写下来的主题时总是不在电脑前面,等坐下来时又忘了之前闪现的小火花。就这样,无数个有可能获得诺贝尔BLOG奖的机会都溜走了。
其实不只是写BLOG的灵感,其他稍有些价值的想法都可能在大脑中只跟你打个照面就溜走,再以后就基本再没有机会一睹芳容。在这情况下,用纸笔记录,或者保存在几乎人手一部的手机中都是解决的办法,但是纸笔不是随时带在身边,手机如果没有记事本,放在短信中不知何时就被发送或者误删除掉,而且估计不少人都不喜欢在blog的时候还要东找找纸,西翻翻手机。一些微型blog已经开始支持通过短信进行发布的功能,但那毕竟不具有完全的私密性(还没试过能不能只发送不发布),不过改造起来想必非常简单,可能只需要改动一个参数,再公布一个接入号码就可以实现只记录在互联网上而不发布出来。
这也许也可以理解为以用户为中心的设计:随时随地通过手机汇总,最后通过互联网在一个页面上呈现(给自己)。Blog的出现远早于twitter、饭否之类应用,但是仅由于其“mini”的特征才想到利用短信功能。在技术上没有什么差异,然而对于用户来说,这完全是另一个需求——满足个人信息管理的需要。当然对于记忆力好的家伙,这只能是嘲笑别人的把柄。
fake files on wordpress.org
October 14th, 2007 at 14:23 Posted in Blog Concerned, Tagged: Internet,plugins,Wordpress | 2 Comments »The fake files is about my dashboard 0.3.1version, and this is the download page on wordpress.org. After I saw the notification on the plugins mgmt page, I downloaded the plugin installation files, unzipped and uploaded to ftp, when I reactive this plugin, the missing “includes” folder made it fail.
Fortunately, the plugin’s home page offers the right files.
update: It has been fixed, so enjoy!



