tag-powered 桑林志

October 21st, 2005 in 因特网, 站记 | 22 留言

每天修改一点点,这样子鼓捣了好几天,现在桑林志可以说是 tag-powered。呵呵。比如:你点击帖子下一个 tag,不仅会显示桑林志该 tag 下的帖子,同时会显示该 tag下 technorati的文章, flickr的图片, 还有del.icio.us的链接。你也可以在首页右上角的文字框里输入一个关键字,来获取相关的信息,即使桑林志并没有这个 tag 也没有关系。有时候会因为某些网络原因出错,但一般重新刷新一次就可以了。

实现的方法很简单。首先,安装上 Jerome’s Keywords。可能还有别的WordPress Tagging 插件,但是我觉得这个已经很不错。然后,建立一个 tags.php 模板,来定制 tag 搜索结果页面。接着在这个tags.php 里加上几句来使用 magpiersstechnorati, flickr, 还有del.icio.us,读取相关 tag 的 rss。这样子,就可以了。你甚至不需要安装magpierss,因为 WordPress 实际上已经内置了,就是 wp-include/rss-functions.php,只要 require_once 就可以了。当然,你得注意设置 cache,不然被这些服务 blacklisted 可不是好玩的。至于右上角那个tag框,只是一个form而已,可以查看网页源文件。

关键词: , , , , , ,

Lilina, 一个简单的新闻聚合器

November 9th, 2004 in 闲话 | 2 留言

lilina:

lilina is a simple but powerful news aggregator written in PHP. No database is needed, RSS/ATOM parsing is done by the excelent MagpieRSS library (it is included, no additional installation needed). It features feed auto-discovery and an easy-to-use interface.

Installation is quite simple, just untar and edit conf.php. Make sure that cache/ and .myfeeds.data is writeble by your webserver.

不知道不需要数据库还算不算优点,但这个lilina确实非常简单易用,很容易稍加修改个人化。缺省的界面也很简洁漂亮。特别的,通过javascript和cookie,完成了类似书签的功能

我用它做了个网页,聚合flickr上我感兴趣的tag下的图片。

关键词: ,