歡迎光臨, 訪客. 請先 登入註冊一個帳號.
三月 28, 2024, 10:39:55 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
  列出文章
頁: [1]
1  開發 / 外掛程式 / atom plugin發佈文章不會在index顯示 於: 七月 22, 2005, 04:29:03 下午
sorry,我找到原因了。是因为我在生成的atom message中指定了issued的时间,但是由于我的主机在美国,比我desktop的时间晚,因此在首页上不显示。麻烦大家了。 害羞
2  開發 / 外掛程式 / atom plugin發佈文章不會在index顯示 於: 七月 22, 2005, 04:15:50 下午
我是自己用java生成的xml message直接发送到endpoint的。麻烦看一下,是否有什么错误?谢谢

send出去的xml message像这样:
程式碼:

<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://purl.org/atom/ns#">
  <title mode="escaped" type="text/plain">ce shi atom api a</title>
  <issued>2005-07-22T17:11:09Z</issued>
  <generator url="http://www.pighead.cn">pighead</generator>
  <content type="application/xhtml+xml">ce shi atom api a</content>
</entry>


response的message像这样:
程式碼:

<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://purl.org/atom/ns#">
  <id>tag:post:www.atombuddy.com,2005-07-22:21</id>
    <author>
   <name>changray</name>
   <url>http://www.atombuddy.com/pighead/index.php?blogId=1</url>
  </author>
  <link rel="alternate" type="text/html" href="http://www.atombuddy.com/pighead/index.php?op=ViewArticle&amp;articleId=21&amp;blogId=1" />
  <link rel="service.edit" href="http://www.atombuddy.com/pighead/atom.php/edit/1/21" title="ce shi atom api a" type="application/x.atom+xml" />
  <title>ce shi atom api a</title>
  <content mode="escaped" type="application/xhtm+xml">ce shi atom api a</content>
  <issued>2005-07-22T17:11:09Z</issued>
 <created>2005-07-22T17:11:09Z</created>
 <modified>2005-07-22T17:11:09Z</modified>  
</entry>
3  開發 / 外掛程式 / atom plugin發佈文章不會在index顯示 於: 七月 22, 2005, 03:39:04 下午
请问有人能回答这个问题吗?
4  開發 / 外掛程式 / atom plugin發佈文章不會在index顯示 於: 七月 20, 2005, 04:36:50 下午
檢查了一下數據庫裏的數據,發現properties字段有差別。
在index顯示的文章,properties字段的value是a:1:{s:16:"comments_enabled";s:1:"1";}

而透過atom發表的文章,不在index上顯示,它的properties字段的value會是:
a:1:{s:16:"comments_enabled";b:1;}

請教各位,這是如何控制的?
5  開發 / 外掛程式 / atom plugin發佈文章不會在index顯示 於: 七月 20, 2005, 04:11:18 下午
透過plog的atomapi publish文章,文章不會在index上面顯示。

比較http://www.atombuddy.com/pighead/index.php?op=ViewArticle&articleId=3&blogId=1

http://www.atombuddy.com/pighead/index.php?blogId=1

就可以看出。

不知道是否是client端的問題,請教一下是否在index顯示是如何控制的?
6  開發 / 外掛程式 / 請教,dev.plogworld.org.tw是否提供atom api的endpoint供測試? 於: 七月 17, 2005, 12:18:08 下午
我在管理中心裏面可以看到atom的plugin,然而不知是否提供了atom.php這個endpoint?或是使用了其他的名字作爲endpoint?

請教各位,多謝。
頁: [1]