歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 19, 2024, 11:08:27 上午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  開發  |  外掛程式  |  Fixed a snag in technorati plugin « 上篇主題 下篇主題 »
頁: [1]
作者 主題: Fixed a snag in technorati plugin  (閱讀 13028 次)
maomaode
一般會員
***
文章: 115


檢視個人資料
« 於: 一月 10, 2006, 10:37:10 下午 »

The following block in $LIFE_TYPE/plugins/technorati/plugintechnorati.class.php
引用
{if $technorati && $technnorati->isEnabled() }
{foreach name=tags from=$tagString item=tagLink}
   {assign var="tagString" value=$technorati->getTags($post)}
   {if $smarty.foreach.tags.first} technorati tags: {/if}
   {$tagLink}         
   {if !$smarty.foreach.tags.last}, {/if}
{/foreach}{/if}

should be changed to
引用
  {if $technorati && $technorati->isEnabled() }
  {assign var="tagString" value=$technorati->getTags($post)}
  {foreach name=tags from=$tagString item=tagLink}
  {if $smarty.foreach.tags.first} technorati tags: {/if}
  {$tagLink}         
  {if !$smarty.foreach.tags.last}, {/if}
  {/foreach}
  {/if}

Also attach the README and Simplified Chinese docs

Enjoy!
已記錄

我的blog:
               http://maomaode.bokeland.com
Blog搬家/同步
               http://banjia.bokeland.com
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #1 於: 一月 11, 2006, 10:26:23 上午 »

謝謝!我試過後會把他 check in 進 SVN。

Mark
已記錄

maomaode
一般會員
***
文章: 115


檢視個人資料
« 回覆文章 #2 於: 一月 11, 2006, 10:58:21 上午 »

这个文件admintechnoratipluginupdatesettingsaction.class.php也有问题, 主要问题,是如果取消启用外挂, 发表文章里的CustomField不会消失, 修改两个方法function _createFields(), 和 function _updateFields() 就可以。

谢谢!
已記錄

我的blog:
               http://maomaode.bokeland.com
Blog搬家/同步
               http://banjia.bokeland.com
catseyes
一般會員
***
文章: 189


是我啦是我啦!


檢視個人資料 個人網站
« 回覆文章 #3 於: 一月 11, 2006, 02:04:39 下午 »

恕我冒昧一問....technorati  這個 plugin 是幹麻的啊 @.@!?
已記錄

我的 B-LOG
http://blog.catseyes.com.tw/index.php?blogId=1

虛擬主機資訊
24cc.com 主機
主機系統  Linux
主機類型  i686
Apache 版本 1.3.34 (Unix)
PHP 版本 4.4.1
MySQL 版本 4.1.14-standard-log
=======================
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #4 於: 一月 11, 2006, 02:47:14 下午 »

恕我冒昧一問....technorati  這個 plugin 是幹麻的啊 @.@!?
一言難盡,請自己拜一下 google 大神,他會賜給你數不盡的答案。

lss
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
maomaode
一般會員
***
文章: 115


檢視個人資料
« 回覆文章 #5 於: 一月 12, 2006, 10:26:20 上午 »

technorati 是一个blog搜索引擎, 他的主要的一个feature是搜集tag, 你的blog如果有tag, 他就会收集你的blog, 这个plugin的作用就是在您发布文章的时候, 你可以为你的文章加上tag, 这样technorati 就会搜索到你的文章的tag。你在启用这个plugin的同时, 需要打开xmlrpc(管理员才可以), 并且把http://rpc.technorati.com/rpc/ping 加入到xmlrpc_ping_hosts(管理设置 » 常规设置), 这样当你发布文章时候,lifetype就会通知technorati, technorati就会过来收集你的文章。
大概应该就是这个样子了
已記錄

我的blog:
               http://maomaode.bokeland.com
Blog搬家/同步
               http://banjia.bokeland.com
Yukie
新手見習
*
文章: 14


檢視個人資料 個人網站
« 回覆文章 #6 於: 二月 10, 2006, 11:44:41 下午 »

The following block in $LIFE_TYPE/plugins/technorati/plugintechnorati.class.php
引用
{if $technorati && $technnorati->isEnabled() }
{foreach name=tags from=$tagString item=tagLink}
   {assign var="tagString" value=$technorati->getTags($post)}
   {if $smarty.foreach.tags.first} technorati tags: {/if}
   {$tagLink}         
   {if !$smarty.foreach.tags.last}, {/if}
{/foreach}{/if}

根據原 plugin 的說明,上述這段並不是在 plugintechnorati.class.php 中,
而是要手動加入 post.template 之中。
但是加入後會有錯誤……

引用自: maomaode
should be changed to
引用
  {if $technorati && $technorati->isEnabled() }
  {assign var="tagString" value=$technorati->getTags($post)}
  {foreach name=tags from=$tagString item=tagLink}
  {if $smarty.foreach.tags.first} technorati tags: {/if}
  {$tagLink}         
  {if !$smarty.foreach.tags.last}, {/if}
  {/foreach}
  {/if}

改在 post.template 加上您的這段程式就一切正常了!!
謝謝您!!:)
已記錄
頁: [1]
LifeType 中文開發論壇  |  開發  |  外掛程式  |  Fixed a snag in technorati plugin « 上篇主題 下篇主題 »
    前往: