Habari - RN Related Tags Plugin

General

This plugin show the related tags in an unordered list. Related tags are found by getting the posts that match all of the tags of the current post; and listing any tags assigned to those posts that aren't already assigned to the current post.

Installation

  1. Unzip the file
  2. Put the folder 'relatedtags' to /user/plugins and activate it

Configuration Option

After activated it, click <configure> button next to <Deactivate> button to setup the plugin.

Usage

echo $related_tags;
An unordered list will be shown with the following structure.
<ul class="related-tag">
<li class="related-tag-odd">Tag 1</li>
<li class="related-tag-even">Tag 2</li>
<li class="related-tag-odd">Tag 3</li>
.
.
</ul>

You can use CSS to style the output.

Note

  • Version 1.3 modified to use new FormUI and comply to the new standard of configuration name, please make sure you are using Habari SVN r1948 or later and configure the plugin again.
  • Version 1.4 changed to use TextMulti in 'Tag(s) to be hidden', please configure this setting again if you previously have

Changelog

  • Version 0.5 - Initial release
  • Version 0.6 - Show the number of related posts with the tag
  • Version 0.6a - Fixed the error with the post with no tag, thanks Stanley for informing me
  • Version 0.7 - Only support svn r754 or later version, DR 2 is not supported. Changed to use new rewrite rule
  • Version 0.8 - Changed to use theme variable instead of function, better support MVC model of Habari
  • Version 0.9 - Fixed a error when no post with the same tag set of current post is found
  • Version 1.0 - Added "Hide Tag(s)" option to hide the specific tag(s)
  • Version 1.1 - Added SQLite support
  • Version 1.2 - Added PostgreSQL and i18n support
  • Version 1.3 - Modified to support new FormUI, some code cleanups and setup default configuration option during activation
  • Version 1.4 - Fixed the duplicated tags problem that caused by plugin hook 'action_add_template_vars()' called several times and output is appended to template variable '$related_tags' several times due to no initialization is done and changed to use TextMulti for 'tag(s) to be hidden' in plugin configuration

Download here (Downloaded 401 times)

簡介

這個 plugin 是用作顯示 related tags。Related tag 是其他擁有相同 tags 的文章內額外的 tags。

安裝

  1. 將下載了的 zip file 解壓
  2. 把 'relatedtags' folder 放在 /user/plugins 中,然後啟動 plugin

設定選項

啟動 plugin 後,click 在 <Deactivate> 按鈕旁的 <configure> button 來設定選項。

使用方法

echo $related_tags;

以下結構的 unordered list 將會顯示出來。

<ul class="related-tag">
<li class="related-tag-odd">Tag 1</li>
<li class="related-tag-even">Tag 2</li>
<li class="related-tag-odd">Tag 3</li>
.
.
</ul>

大家可使用 CSS 來修飾顯示效果。

注意事項

  • Version 1.3 轉用了新的 FormUI 加上跟隨了新的 configuration name 命名,請使用 Habari SVN r1948 或以後的版本,及重新設定 plugin
  • Version 1.4 plugin 設定中 'Tag(s) to be hidden' 轉用了 TextMulti,如之前曾經設定這選項,請重新設定一次

版本資料

  • Version 0.5 - 最先公開版本
  • Version 0.6 - 顯示 related tag 有關的文章數目
  • Version 0.6a - 修正了沒有 tag 文章時的錯誤,謝謝 Stanley 的提醒
  • Version 0.7 - 只支援 svn r754 或以後版本,DR 2 不作支援,修改使用新的 rewrite rule。
  • Version 0.8 - 由 function call 改為 theme variable,這樣可更切合 Habari 的 MVC model
  • Version 0.9 - 修正了找不到擁有和閱讀中文章相同 tag set 文章時的錯誤
  • Version 1.0 - 新增 "Hide tag(s)" 選項,用來隱藏指定的 tag(s)
  • Version 1.1 - 支援 SQLite
  • Version 1.2 - 支援 PostgreSQL、i18n
  • Version 1.3 - 使用了新的 FormUI、code cleanups 和在啟動 plugin 時自動設定 plugin 的預設選項
  • Version 1.4 - 修正了因 plugin hook 'action_add_template_vars()' call 了數次而忘記 initialize template variable '$related_tags' 引致的重覆 tags 問題,及 plugin 選項 'Tag(s) to be hidden' 轉用了 TextMulti

下載連結(已經下載了 401 次)

11 Responses to “Habari - RN Related Tags Plugin”

  1. 3206

    来看一下所写,欢迎回访
    (若能回访请留下博客地址,不胜感激)
    听景777-属于个人的Blog
    地址1 http://www.xsblog.com/u/natinne2/
    地址2 takepul.googlepages.com/2.htm
    tingjing777@gmail.com

  2. 3289

    This one failed on me as well, see it at a new one just created h719. It caused a 500 server error, I had to delete that plugin folder to get the site up again.

  3. 18388

    I'm afraid that does nothing but errors out. Seems that's not defined.

  4. 18480

    @paul, what's your problem? Any error message shown?

  1. 3237 iHao Press
  2. 3313 iHao Press » 在DreamHost上安装Habari
  3. 3294 Habari 0.2 Developer Review : 博客湾
  4. 5848 RN Related Tags Plugin 0.8 @ 天佑的自由天地
  5. 22462 RN Related Tags Plugin 1.2 @ 天佑的自由天地
  6. 25200 RN Related Tags Plugin 1.3 @ 天佑的自由天地
  7. 29026 RN Related Tags Plugin 1.4 @ 天佑的自由天地

Leave a Reply