首先感謝markwu大跟lss大
1. 整合 bbs 的註冊與 blog 註冊。比較簡單的方式是, disable lifetype 本身的註冊功能。透過 bbs 的一個選項,來決定要不要啟用 blog 帳號,這時候再來註冊。
bbs有bbsid
我想這個利用mysql c api寫一個程式去讀.acct檔把他轉成blog id便可 

2. 修改 bbs,在個人的註冊欄位上加上 blogid 或是 blogusername,在 lifetype 中是不准使用中文名稱來註冊的,所以我建議紀錄 blog id
我想blog跟bbs的id同步會比較好,而且現在99.99%的bbs id都是英文 囧
3. 在 bbs 發表文章時,得要能選擇要不要發表到 blog,以及發表的 category。(這個可以透過 xmlrpc 來取得)
4. 才是把文章發表到 blog
我想目前只會先作bbs ---> blog的功能
blog --> bbs等第一個功能做出來再說 Orz
另外lss大的提醒我找到好像是LF insert article的sql query了不知道是不是 @_@
 /**
   * Adds a new article to the database
   *
   * @param newArticle An Article object with all the necessary information.
   * @return Returns true if article was added successfully or false otherwise.
      If successful, it will modify the parmeter
   * passed by reference and set its database id.
   */
function addArticle( &$newArticle )
{
 // first, we build up the query
 $query = "INSERT INTO ".$this->getPrefix()."articles(
                      user_id,blog_id,status,date,properties, slug )
                      VALUES ( ".$newArticle->getUser().",".
                      $newArticle->getBlog().",'".
                      $newArticle->getStatus()."','".
                      $newArticle->getDate()."','".
                      serialize($newArticle->getProperties())."','".
                      $newArticle->getPostSlug()."');";
            // and then we send it to the db
            //$this->_db->debug=true;
            $result = $this->Execute( $query );
            if( !$result ){
                return false;
            }