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
- Unzip the file
- Put the folder 'relatedtags' to /user/plugins and activate it
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.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
- 將下載了的 zip file 解壓
- 把 '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 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
下載連結(已經下載了 298 次)
来看一下所写,欢迎回访
(若能回访请留下博客地址,不胜感激)
听景777-属于个人的Blog
地址1 http://www.xsblog.com/u/natinne2/
地址2 takepul.googlepages.com/2.htm
tingjing777@gmail.com
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.
I'm afraid that does nothing but errors out. Seems that's not defined.
@paul, what's your problem? Any error message shown?