Posts Tagged ‘插件’

关于Akismet的API Key

Sunday, March 4th, 2007

3月4日更新
今天才用Akismet,要wordpress.com的API Key,根本打不开,肯定被GFW掉了。google到了一米六二的不转载的解决方案,成功解决!版本Akismet 2.0。
一米六二的解决方案:
(more…)

Site Changes 07.03.03

Friday, March 2nd, 2007

昨天在Nicky的帮助下,换了他做的新主题。并修改了其他一些地方,插件也做了一些变动。在此对Nicky表示感谢!
现在看起来清爽了许多,不过还有一些细节的地方需要修改。具体修改如下
(more…)

New Plugins Added

Saturday, February 3rd, 2007

Wordpress
这两天抽空在对本站进行一些优化,为了更方便大家阅读,同时也为了了解大家对于本站的建议和意见,特意增加了一些插件。这些插件全部来自于lesterchan.net

做一个简单的列表,包括安装、升级、使用方法等的链接:

WP-PageNavi 2.10
» Readme/Changelog
» Demo
» Download
» Support Forum

WP-Polls 2.14
» Readme/Changelog
» Demo
» Download
» Support Forum

WP-PostRatings 1.10
» Readme/Changelog
» Demo
» Download
» Support Forum

WP-PostViews 1.10
» Readme/Changelog
» Demo
» Download
» Support Forum

投票和每个entry的评级都是不需要注册的,游客直接可以参加评选,路过的朋友如果有兴趣,希望您随手点一下,帮我更好认识自己的站点。
Thank you all.

Site Changes 07.01.13

Saturday, January 13th, 2007

前两天wordpress2.0.6刚出不久就有feedburner bug,现在又有hacker发现2.0.6的SQL注入漏洞。幸亏没升级,今天直接升到wordpress2.0.7RC1算了。

    WordPress2.0.7RC1 changes:

  • 1. worked around a PHP bug for PHP4 < 4.4.3 and PHP5 < 5.1.4 with register_globals ON that could lead to SQL injection or other security breaches
  • 2. Feeds should properly show 304 Not Modified headers (a.k.a. the FeedBurner bug) instead of mismatched 200/304 headers
  • 3. Backport of another 304 Not Modified fix from trunk (Etag mismatch on certain hosts would cause 200 OK and content to always be served, a waste of bandwidth)
  • 4. Deleting WP Pages no longer gives an “Are You Sure?” prompt
  • 5. After deleting a WP Page, you are properly redirected to the Edit Pages screen
  • 6. Sending an image at original size in IE no longer adds an incorrect “height” attribute

由于是周末,于是又换了个主题,个人比较喜欢这个由iqwolf做的主题unnamed1.0

site changes:

在空间enable了shell,虽然不太熟悉其命令,但是实用性实在诱人;
wordpress升级至2.0.7RC1,虽然据评价2.1的beta还是不错的,但是可能涉及到插件兼容的问题,暂时不升级,过些日子再说;

  • 更换了主题unnamed1.0
  • 增加了插件sidebar widgets
  • 重新定义了高亮代码插件coolcode,直接支持code标签。见andy的coolcode修正版
  • 去除了原来authimage插件,换成了anti-spam
  • 通过插件自定义了random post;
  • 进行了其它一些调整。

code测试

< ?php
//截取中文字符串
function mysubstr($str, $start, $len) {
$tmpstr = "";
$strlen = $start + $len;
for($i = 0; $i < $strlen; $i++) {
if(ord(substr($str, $i, 1)) > 0xa0) {
$tmpstr .= substr($str, $i, 2);
$i++;
} else
$tmpstr .= substr($str, $i, 1);
}
return $tmpstr;
}
?>