wyn_recent_comments 0.1 Release

一直觉得 Textpattern 自带的那个最新留言的tag比较弱, 只能显示作者和文章标题, 不过也凑合用了

昨天 dimlau提到 了这个问题, 于是…无聊之中又出现了一个新的插件

功能比自带的那个稍微强一点点, 可以显示评论内容, 支持字符串截取, 支持内容格式定制以及链接的title属性以及时间格式的定制, 当然数目限制和section限制也是必不可少的

直接下载点 这里

————华丽的分割线————

Description

Fine, textpattern has already provided a recent comments tag. But someone love it and someone hate it. And it indeed is not so powerful enough. So, this thing was born.

Usage

  1. class: css class, default is wyn_recent_comments
  2. wraptag: tag of wrap, default is ul
  3. break: tag of every item, default is li
  4. label: title label, default is nothing
  5. labeltag: tag of title, default is nothing
  6. limit: number of comments to show, default is 10
  7. wordcount: the length of each comment. The comment whose length is longer than this value, it will be cut off, with UTF-8 support. default is 10
  8. messagebreak: if a comment has been cut off, this value will be showed after it. default is ‘…’
  9. format: the things to show. you can customize it by using tags (%content% for comment content, %commenter% for commenter name, %time% for comment time and %title% for post title). default is %content%
  10. atitle: the title attribute of generated a links. tags can also be used here. default is %commenter% on %time%
  11. section: limit the comments into one section
  12. timeformat: the format of time. it uses standard PHP time format, you can refer PHP doc to know more. default is ‘%d %b %Y · %X’, a little difficult :D

Download HERE

« 关于东京的速递 wyn_email_publish 0.2 Release »

11 Responses to wyn_recent_comments 0.1 Release

gravatar 21sta at April 6, 2008 1:19pm

ie6里侧栏掉下去了

gravatar wayne at April 6, 2008 2:59pm

我恨ie….不过现在也没法改, 家里机器没有ie…

gravatar dimlau at April 6, 2008 3:01pm

IE6…不是说会强制升级到IE7么
怎么没动静了
PS.你速度可真是快啊!非常强

gravatar wayne at April 6, 2008 3:08pm

嘿嘿,反正在家待着也没事做…其实前天就差不多了,搞内容截取的麻烦了点,php的字符串截取函数是按byte来的,不适用utf8,只好自己再写一个
不过还是不理想, 按长度截取就会出现现在这种参差不齐的样子

gravatar voidman at April 6, 2008 5:57pm

@wayne:之前我还以为你是特意搞成“只显示作者和文章标题” :P

gravatar wayne at April 6, 2008 6:01pm

主要是我太懒了…

gravatar voidman at April 6, 2008 6:11pm

正文的letter-spacing 设置的大了些,英文不够美观,中文还凑合

gravatar wayne at April 6, 2008 6:13pm

@voidman: 的确. 已经改掉了. 做模板这种东西真是累阿…

gravatar dimlau at April 7, 2008 8:34am

@wayne 我在做新模板,4天了,完全没有动力了…..

gravatar wayne at April 7, 2008 9:04am

@dimlau: 太麻烦了, 还要在不同浏览器下调…不过你应该还好吧,专业的

Name (*)

Email Address (*)

Web Address

Other  Receive Email Notify

Comment