wordpress plugin - search engine related posts

Table of content

Description
Usage
Download
History
Link

Description
中文说明
当用户从google搜索到你的博客上,这个wordpress 插件会根据用户搜索的关键词显示你的博客上更多的相关内容。目前也只对google生效,下一个版本将对baidu生效。
这个插件完全使用javascript加上google的api完成,不需要占用服务器端的资源,环保且安全。
English version
When someone is referred from a search engine like Google, the plugin show your blog content matched the terms they search for.
Usage
中文说明:

解压
在wordpress模板中添加一个id为search_content的html标签,比如
PLAIN TEXT
CODE:

<div id="search_content" style="display:none;">

<h1>相关搜索结果</h1>

</div>

复制search_related_posts.php到wp-contents/plugin目录,并激活插件.
done! 现在你可以试着从google搜索上先搜到自己的博客,然后点击进去看看插件的效果。

English version:

unzip it
Put <div style="display:none" id="search_content"></div> at the place in your template where you want the list of related posts
Copy search_related_posts.php to direcotry wp-contents/plugin and [...]

评论 (2)

在wordpress.org上提交了inline-js

前几天在wordpress.org的plugin list里提交了inline-js,这是我写的第一个wordpress插件,估计实用价值和使用者都不是太多:)但是我想如果有更多的使用者对这个plugin提一些意见的话,可能会更加完善,很希望能看到这个插件能持续发展,如果我能挤出更多的时间来维护的话。

评论 (1)

inline-js 0.4 —— wordpress plugin

Inline-js plugin minor update. It now work fine with exec-php plugin.
Download
Inline-js 0.4
详细信息
inline-js wordpress plugin

评论 (2)

用vim来写wordpress

用vim习惯了之后,用别的编辑器写长一点的文本都没法适应,写wordpress更是如此。为此我郁闷了很长一段时间,直到前不久找到了一个新的宝贝 ---- vimpress。这个东东可不是什么新的软件,它只不过是vim的一个plugin罢了。
只要装好vimpress,你就可以用它来列出或者发布blog。
目前这个插件有如下功能

获得文章列表
写新文章
编辑文章
现场保存 (yeah, no kidding)
支持分类
支持标签

vim命令清单

“:BlogList”
列出blog里的文章

“:BlogNew”
写新文章
“:BlogOpen id”
打开一篇现有的文章进行编辑
“:BlogSend”
保存并发布文章

安装过程

将解压之后plugin和syntax目录复制到vimfiles目录下
修改plugin下的blog.vim进行配置,需要配置username,password以及xmlrpc.php的url
如果需要支持tag,可以设置enable_tags=1。
如果需要支持UTW tags,需要另外下载一个vim插件utw-rpc-autotag

vimpress的主页
BTW:现在这篇blog就是我使用vimpress完成的:)

评论 (11)

马甲切换插件 — CookieSwap

前些天在cnBeta上看到一个firefox插件,可以方便的切换cookie,可用于论坛灌水。上addons.mozilla.org上查了一遍,已经有个类似功能的插件——CookieSwap。

CookieSwap is an extension that enables you to maintain numerous sets or "profiles" of cookies that you can quickly swap between while browsing.

如此一来,我就可以在多个帐号间自如的切换而不用重新登录,有空完全可以在论坛上一个人轻松完成十几个人自娱自乐的火爆讨论现场。
下载CookieSwap

评论 (7)

更新wordpress插件出现错误

今天更新了wordpress的tag插件为Ultimate tag warrior,不久所有的页面都出现了下面的错误信息:
Warning: preg_match(): Compilation failed: nothing to repeat at offset 1 in /***/wp-includes/classes.php on line 95
以上面的错误信息为关键词进行搜索,得到的可能性有两个:

安装的plugin版本过于陈旧,比如smileys之类的
由于ultimate tag warrior插件使用不当,使得rewrite规则混乱,出现以上错误

前者的可能性很小,我根本没安装过任何表情插件,后者的嫌疑比较大。短暂的头脑风暴ing,往事如电影片段一般在脑海中一一闪过,最后终于回忆起顺手勾选了tag插件的下面选项:
Use url rewriting for local tag urls (/tag/tag instead of index.php?tag=tag)
卡嚓了这个选项后,可恶的错误Warning消失不见。

评论 (1)