几个值得学习研究的插件

相关日志、最新评论、最新日志、随机日志可以说是每个WP博客都要用到的,相关插件也很多。下面这几个插件

来自All Things Seen and Unseen,有其独特之处。比如Similar Posts,就不同于最常用的基于TAG的WP 2.3 Related Posts,而是基于a post’s meaning,这个插件将displays a list of posts which are related or similar to the current post。这难道不是很有意思吗?

遗憾的是由于MySQL对中文的支持有所欠缺,这个插件在中文下恐怕结果难以预料。作者指出了这一点:

Language Issues

The underlying MySQL full-text indexing is obviously very locale-dependent — how words are divided or punctuation handled, what words are treated as noise, etc. all vary from language to language.

作者在说明中对此有所考虑:

Similar Posts has an option to handle multiple-byte strings more sensibly (see the options page) but it does impose a performance hit. Try it and see.

If the plugin doesn’t seem to be working in your chosen language even with this option set and you have MySQL version 4.1 or above, try changing the collation sequence of the post_title and post_content columns in the wp_posts table to utf8_general_ci (you will need to use phpMyAdmin or some similar tool). Be careful though: there are pitfalls which might require you to go via binary formats. Make sure you know what you are doing and make a complete backup before proceeeding.

This change seems to work well for languages like Hindi, Greek, Arabic, Russian, etc. but languages like Chinese, Japanese, and Korean, that don’t use spaces to separate words, may pose an insurmountable problem for the MySQL full-text parser. I’d like to hear from users of these languages whether Similar Posts works or not.

安装测试:对于全中文日志,不输出任何结果。看来只能是用于英文博客了。


5 Responses to “几个值得学习研究的插件”

  • |

    另外,博主能否推荐几个插件?我现在初步确定用以下几个:
    “akismet
    google-sitemap-generator.3.2.2
    wp-pagenavi.2.50
    auto-highslide。。。”其它不知道,也不会

    Reply to this comment
  • |

    你好博主,用Related posts插件有问题吗?(就是您本文所提到的问题,中文不显示)。我是新手,不懂请指点。“相关日志、最新评论、最新日志、随机日志”要达到这个功能最好用什么插件呀?谢谢

    Reply to this comment
  • |

    嗯,谢谢Denis。MySQL对中文的支持有所欠缺,这个Similar Posts采用的是全文搜索频率最高的20个词,而分词是MySQL支持中文全文搜索的前提。

    Reply to this comment
  • |

    Meaning 意味着要用全文检索,MySQL 不会中文分词,所以只适合英文博客

    Reply to this comment

Leave a Comment