Posts Tagged with plugin

Postmailer for Habari 0.2


habari的trunk最近改动挺多, FormUI变的我之前的插件配置界面也出不来了, 而且插件option存储方式貌似也有所修改, 之前的pluginname:property的pattern已经无效, 全部改成了pluginname__property的样子.

加之最近换到VPS, 又发现发出来的mail是乱码, 并且header也有问题, 检查了半天发现是header的换行我用了 rn, 众所周知这个是windows的换回, 而linux系统只要 r 就足够...真不晓得dreamhost上是怎么配的, 居然一直能跑. 把换行的地方用PHP_EOL代替, 加了点header信息, 再顺手把邮件body的部分也用base64编码了.

很简单的小修正, 下载请至原文

-------------------- 华丽的分割线 --------------------

Changes in 0.2:

  1. Compatible with SVN r2802
  2. Add a little of information in mail header
  3. Fix End-Of-Line in Linux environment
  4. Encode message body with Base64

Please download it in orginal post

Fckeditor Plugin for Habari


// Fckeditor Plugin for Habari, no more things need to say, just download it HERE

写这个东西主要是原以为现有的jWYSIWYG和NicEdit都不支持直接编辑html的source,写好之后发现原来NicEdit是支持的,并且现在也有现成的TinyMCE插件 @#$%^$%^&*&#。。。

不过既然写好了就发出来吧,下载点这里

---------------------------------

其它Habari的编辑器

jWYSIWYG: 一个简单到不能再简单的所见即所得编辑器 LINK

NicEdit: 功能比jWYSIWYG强,关于如何试用全面板请接着往下看,强烈推荐 LINK

TinyMCE: 老牌的编辑器了,功能超强, 不过太强就显得臃肿了 LINK

Fckeditor: 与TinyMCE齐名 LINK

其他标记语言:

Textile: 用过Textpattern的都晓得 LINK

Markdown:LINK

markItUp!: LINK

---------------------------------

打开NicEdit的全面板:

NicEdit插件还在开发中,目前的代码可以看出是准备加这些configure的,相信以后的版本可以直接配置而不需要修改代码,着急的同学可以暂时先用下面的方法凑合一下:

编辑NicEdit.plugin.php,找到

new nicEditor({$options}).panelInstance('content');



改成

new nicEditor({fullPanel : true}).panelInstance('content');

Habari Plugin: Post Mailer


老习惯了, 每换一次blog程序就先去找找能够同步email发布post的插件, wp有人做了, txp没有, 就自己写了一个, 换到habari貌似也没有类似的东西, 继续自己动手...

功能什么的都和以前的txp版本差不多, 下面是说明:

Lastest Version: 0.2

History:

Changes in 0.2:

  1. Compatible with SVN r2802
  2. Add a little of information in mail header
  3. Fix End-Of-Line in Linux environment
  4. Encode message body with Base64

Post Mailer  Version 0.1

Description:

  This plugin is used to mail a copy of post new published to indicated email addresses. So you can use it to publish posts on other BSPs (Live Space, Blogger and the ones which support email publish) at the same time when you publish a post on habari.

Usage:

  1. Install and active it, and of course, set up your email publish function of your BSPs
  2. Click 'Configure'
  3. Set the email addresses.
  4. Set the title and body of mail, you can use the tag %title%, %body%, %author% and %link% to replace the title, the content, the author name and the link of the article. NOTICE:
    the format is RAW html
    link and body are NOT allowed in mail title
  5. Go to write a new post to introduce this little thing :D

Download HERE

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


很久之前做了一个 版本 , 不过很简陋, 邮件地址和内容都要手工修改插件才行, 于是重新翻新的一遍, 加入了后台控制面板, 可以自定义多个邮件地址, 甚至可以定义邮件的标题和内容.

至于为什么有这么个插件, 无非就是为了发post的时候同时发到别的BSP上, 例如blogger, live space之类

直接下载点 这里

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

wyn_email_publish

Description

When you publish a new post, this plugin will mail it to everywhere (email address of course :D ) you want.

That means, you can publish the post onto other BSPs, which support email publish feature (like live space, or blogger), just as the same time you publish on textpattern.

History

  • 0.2: Add admin config panel, you can not only set the email addresses here, but also customize the content of mail
  • 0.1: Initialize Release, just has basal function, a little troublesome to use

Usage

  1. Install and active it, and of course, set up your email publish function of your BSPs
  2. Go to extenstion -> Email Publish
  3. Now you can set the mail address, use ‘;’ to separator if you have more than one address
  4. Set the title and body of mail, you can use the tag title, body, author and link to replace the title
    , the content, the author name and the link of the article. (NOTICE: link and body are NOT allowed in mail title)
  5. Go to write a new post to introduce this little thing :D

Download HERE