Textpattern Comment SOFA (TXP沙发党) 03月 31st, 2008
嗯, 昨天晚上无聊, 花了三个小时实现了一个雏形, 实现了对留言者统计并输出, 支持生成列表或者cloud
今天又修修补补加了用来识别用户的keyword属性, 并支持skip列表, 称之为0.2版本
后来觉得没有准确的统计沙发, 有点和名字不符, 于是又新增了restricted模式, 用来精确计算沙发党, 当然还是同时支持cloud输出和list输出. 并同时修改到0.3版本
cloud的效果如下, 喜欢的就拿去用好了

点这里 下载
—————————————-华丽的分割线—————————————-
Comment Sofa plugin for Textpattern
It can generate a cloud or a list for commenters who commented the most. OR generate them for users who got the sofa (first comment to a post) most
History
- 0.3 : Add Restrict SOFA mode, which generator a cloud or a list for the users who got sofa (the first one who comment to a post) most.
- 0.2 : Add keyword attribute to identify user by name or email and get skip value accepted a list with ‘;’ delimited.
- 0.1 : Initialize Release
Usage
- wyn_comment_sofa_cloud
- wraptag: wrap your cloud with a tag
- keyword: The keyword to identify user, available values are name and email, default is name
- skip: skip the user by indicated thing, default is nothing (lots of blogs just have one admin user to do everything :D) You can set values more than one, just use a ‘;’ to separate.
- label: the label
- labeltag: tag of the label
- limit: the limit of commenters, default is 10
- class: the class of wrap
- maxsize / minsize: the max / min font size of the most / least commenter’s link. (Percent, default is 200 and 50)
- break: the break between links, default is a space
- showcount: whether to show the count of comments by each commenter, default is 1
- restricted: whether to get RESTRICTED SOFA MODE (Generate cloud by rank of first commented to posts), default is 0
- wyn_comment_sofa_list
- wraptag: wrap your list with a tag
- keyword: The keyword to identify user, available values are name and email and default is name
- skip: skip the user by indicated thing, default is nothing (lots of blogs just have one admin user to do everything :D)
- label: the label
- labeltag: tag of the label
- limit: the limit of commenters, default is 10
- class: the class of wrap
- break: the break between links, default is a space
- showcount: whether to show the count of comments by each commenter, default is 1
- restricted: whether to get RESTRICTED SOFA MODE (Generate list by rank of first commented to posts), default is 0
Download from HERE
Tags: plugin, textpattern
Posted in 学习札记 |
4 Responses to “Textpattern Comment SOFA (TXP沙发党)”
Leave a Reply
Recent Post
Recent Comments
- wayne:@Felix: 嗯...我倒是没什么要求, 就是拿来玩的,
- Felix Huang:@wayne en 始终是一分钱一分货 我对稳定性要求比较高
- wayne:@mattw: sandbox的自带style, 我还没空动
- wayne:@mattw: 反正留着也没用... @dimlau: 下
- Felix Huang:我还是一直用mediatemple的(gs)...... 呵
- dimlau:装的不像,没有我帅
- mattw:没到期你 cancel 个啥,留着做测试、做 tunnel
- westup:看你不断的折腾ING
- dimlau:哈哈,又换WP了
- wayne:@半瓶墨水: 不好意思, 从mt导入数据的时候换行被搞乱了
那个上标显示的是沙发次数么?
@voidman: 嗯,之前是留言cloud,现在改成沙发cloud了,那个数字就是沙发数目
比那个comment roll插件强悍多了!
@dimlau: 没用过那个comment roll。。。最初看到wp版的一个沙发党,觉得好玩就做了,不过觉得那个功能太简单,就稍微做复杂了点