User:
Pass:
Keep:   
Xoops Cube Project
XOOPS Cube Project Site
Powered by Google


Powered by XOOPS Cube Legacy 2.1.8
PukiWikiMod 1.5.1
WordPress Module 0.6.0 Alpha
Mr 投稿者: StormCrow 投稿日:2005/05/09(Mon) 19:24 No.1498  
Hello
Then I submit a blog from Email so will the category not be defind.
What are I doing wrong??
Is there any one how can help me??
/StormCrow


Re: Mr 投稿者: NobuNobu 投稿日:2005/05/10(Tue) 03:53 No.1501  

Hi StormCrow!
引用:

Then I submit a blog from Email so will the category not be defind.
What are I doing wrong??
Is there any one how can help me??

I'd like to know which version of WordPress you are using now, if it is trouble.
But at first, I will guide how to specify category for post by Email

You can specify default category for post by Email at
WordPress [Options]-[Blog-by-Email settings] screen.
Option's name is [default_category].
You should specify category as Category Id Number not Category name.

And, if you want specify special category about your post, you can use following tag in your post content.

<category>3</category>

In this case, categoy of your post is set to some category whose ID(not Name) is 3.


Re[2]: Mailproblem 0.5.0RC 投稿者: StormCrow 投稿日:2005/05/10(Tue) 04:47 No.1504  

引用:

NobuNobuさんは書きました:
Hi StormCrow!
引用:

Then I submit a blog from Email so will the category not be defind.
What are I doing wrong??
Is there any one how can help me??

I'd like to know which version of WordPress you are using now, if it is trouble.
But at first, I will guide how to specify category for post by Email

You can specify default category for post by Email at
WordPress [Options]-[Blog-by-Email settings] screen.
Option's name is [default_category].
You should specify category as Category Id Number not Category name.

And, if you want specify special category about your post, you can use following tag in your post content.

<category>3</category>

In this case, categoy of your post is set to some category whose ID(not Name) is 3.




Hello again

Im using the latest WordPress 0.5.0RC3b,
itwas the same with 0.5.0RC3a.
and Xoops 2.0.10
and if yoy need information about my web host, you can go to:
https://www.b-one.net/

The category have I not change so cat=1 (General) is the one I want the mail go to.

Here is s link to an exampel:
http://web.hilltun.se/modules/wordpress/index.php?p=12

And here is the answer I got then I run "wp-mail.php" manual:

====================================================
1

Subject: blog:test6

Content-type: , boundary:

alt_boundary: , emb_boundary:

charset:ISO-8859-1, BLOG charset:iso-8859-1

Use Phone Mail: No

Login: admin, Pass: *********

Subject : test6
Category : 1
Post ID = 12

Posted title: test6
Posted content:


test6
Mission complete, message 1 deleted.

0.233
==================================================


and then I insert <category>3</category> in the content it was displayed like this:
http://web.hilltun.se/modules/wordpress/index.php?p=13


andthe answer I got then I run "wp-mail.php" manual:

===================================================
1

Subject: blog:test7

Content-type: , boundary:

alt_boundary: , emb_boundary:

charset:ISO-8859-1, BLOG charset:iso-8859-1

Use Phone Mail: No

Login: admin, Pass: *********

Subject : test7
Category : 1
Post ID = 13

Posted title: test7
Posted content:


3
Mission complete, message 1 deleted.

0.119
====================================================



Thanks
/Johan


Re[3]: Mailproblem 0.5.0RC 投稿者: NobuNobu 投稿日:2005/05/10(Tue) 06:08 No.1506  

Hi StormCrow!
Thanks for your brief reporting.

I found some my mistakes in wp-mail.php.
Please apply patches to wp-mail.php following way.
wp-mail.php Line:295

                if (preg_match('/<category>(.+?)<\/category>/is', $content, $matchcat)) {
                    $post_category = xmlrpc_getpostcategory($content);
                } 

to

                if (preg_match('/<category>(.+?)<\/category>/is', $content, $matchcat)) {
                    $post_category = xmlrpc_getpostcategory($content);
                    $content = xmlrpc_removepostdata($content);
                } 


wp-mail.php Line:354

                    $postObject->assignCategories($post_category);

to

                    $postObject->assignCategories($post_category,true);


With thease patches, may be default category posting will OK.
But, I Can't find when you specified

<category>3</category>

in your post, why wp-mail.php didn't detect this.
On my test environment, wp-mail.php detect this phrase and set category ID 3.
If you fail to specify spcial category again, please send me your mail that is for blog posting.
(You may omit your ID & passwd)
My Mail Addr in [email protected]

Regards


Re[4]: Mailproblem 0.5.0RC 投稿者: StormCrow 投稿日:2005/05/10(Tue) 19:16 No.1516  

引用:

NobuNobuさんは書きました:
Hi StormCrow!
Thanks for your brief reporting.

I found some my mistakes in wp-mail.php.
Please apply patches to wp-mail.php following way.
wp-mail.php Line:295

                if (preg_match('/<category>(.+?)<\/category>/is', $content, $matchcat)) {
                    $post_category = xmlrpc_getpostcategory($content);
                } 

to

                if (preg_match('/<category>(.+?)<\/category>/is', $content, $matchcat)) {
                    $post_category = xmlrpc_getpostcategory($content);
                    $content = xmlrpc_removepostdata($content);
                } 


wp-mail.php Line:354

                    $postObject->assignCategories($post_category);

to

                    $postObject->assignCategories($post_category,true);


With thease patches, may be default category posting will OK.
But, I Can't find when you specified

<category>3</category>

in your post, why wp-mail.php didn't detect this.
On my test environment, wp-mail.php detect this phrase and set category ID 3.
If you fail to specify spcial category again, please send me your mail that is for blog posting.
(You may omit your ID & passwd)
My Mail Addr in [email protected]

Regards



Hi again!

Now everything works!
Both emailing and the category thing!

Thanks for a grat module.

/StormCrow


NO: PASS:

このプログラムは KENT 氏の yybbs を xoops(PHP) に移植したものです
- KENT -