Viewing 15 replies - 1 through 15 (of 16 total)
  • That’s correct. Post-by-mail, and post-by-XMLRPC, do not trigger the publish_post plugin hook, which is what handles pinging.

    This is a known issue, and a ticket exists in the bug tracker for it.

    I followed the link and there is a download attached that gives the following code to add:

    Index: xmlrpc.php
    ===================================================================
    — xmlrpc.php (revision 2371)
    +++ xmlrpc.php (working copy)
    @@ -535,7 +535,7 @@
    $postdata = compact(‘post_author’, ‘post_date’, ‘post_date_gmt’, ‘post_content’, ‘post_title’, ‘post_category’, ‘post_status’, ‘post_excerpt’, ‘comment_status’, ‘ping_status’);

    $post_ID = wp_insert_post($postdata);

    +
    if (!$post_ID) {
    return new IXR_Error(500, ‘Sorry, your entry could not be posted. Something wrong happened.’);
    }
    @@ -543,8 +543,15 @@
    logIO(‘O’, “Posted ! ID: $post_ID”);

    // FIXME: do we pingback always? pingback($content, $post_ID);
    – trackback_url_list($content_struct[‘mt_tb_ping_urls’],$post_ID);
    + //trackback_url_list($content_struct[‘mt_tb_ping_urls’],$post_ID);

    + if (‘publish’ == $post_status) {
    + if ($post_pingback) pingback($content, $post_ID);
    + do_enclose( $content, $post_ID );
    + do_trackbacks($post_ID);
    + do_action(‘publish_post’, $post_ID);
    + }
    +
    return strval($post_ID);
    }

    @@ -620,8 +627,15 @@
    logIO(‘O’,”(MW) Edited ! ID: $post_ID”);

    // FIXME: do we pingback always? pingback($content, $post_ID);
    – trackback_url_list($content_struct[‘mt_tb_ping_urls’], $post_ID);

    + //trackback_url_list($content_struct[‘mt_tb_ping_urls’], $post_ID);
    + if (‘publish’ == $post_status) {
    + if ($post_pingback) pingback($content, $post_ID);
    + do_enclose( $content, $post_ID );
    + do_trackbacks($post_ID);
    + do_action(‘publish_post’, $post_ID);
    + }
    + do_action(‘edit_post’, $post_ID);
    +
    return true;
    }

    However, it doesnt seem to say which file to add it to or to which part of which file.

    Any help would be great.

    I am thinking it may be the: xmlrpc.php that you put it in, but do you replace the old code with this? or just add this on top of the existing code?

    ANd is there anyway of seeing your recent trackbacks/pings ?

    1. Don’t post code here! – especially if it’s available by clicking a link posted.
    2. Read carefully the first 2 lines in the code regarding “which file”.

    Sorry moshu,

    I didnt know we couldnt post code, my apologies.

    Do you know if i replace the current xmlrpc.php file? or just add in the code?

    The file you found is a patch, which contains bits from the original file, and bits from a modified version of that file. The lines prefaced with + are the new bits, you would add to to the original file. Better would be to use the patch tool on a UNIX-like system, which handles these files automatically.

    But don’t bother fooling around with any of this. If you’d read the whole ticket in the link above, you’d see that this problem has been fixed in WordPress 1.5.2, so just upgrade to that version.

    Changeset 2780 should document that the appropriate changes were made to xmlrpc.php.

    Skippy,

    Are you saying that if i am using 1.52 then it pings automatically from e-mail posts?

    Thats great news if true.

    I’m saying that it should.

    I don’t use Blog_By_Email, nor do I use any of the XMLRPC posting clients, so I can’t confirm the functionality. But the changes were committed to WordPress 1.5.2, so it should work.

    many thanks,

    hopefully someone can confirm this.

    Cheers Skippy.

    I’ve tried blog by mail and it does work. However, there are issues with apostrophes and quotes. This is why I tried WP-CRON and POSTIE plugins. They seem to work but have a different issue with UTF-8 character set transation. I would be curious if anyone has blogging by mail working completely and how they’ve done it.

    Give this plugin a try. Let us know if it works.

    Jwurster,

    I am trying the Postie plugin now, and i think i may have fixed the UTF-8 problems, its far from working perfectly, but lets see what posite and the link that Skippy recommended brings.

    If you fancy a chat via messenger then let me know and i will send you my user.

    I have the 2 plugin files. However, I have a question – should I disable the WP-CRON and POSTIE plugins before trying skippy’s plugins? You can send me your user id to jwurster at comcast dot net. Thanks for your help.

    For clarity sake, I am the author of WP-Cron (and wp-cron-mail). I am not the author of the gmail plugin I linked above.

    skippy: I think you helped me out with one problem I had but not with the UTF handling. That’s why I looked for another plugin and tried Postie. Maybe what I need to do is to go back to step 1 and just try the WP-Cron plugins again. Then, if that doesn’t meet my needs, I’ll move on to the next step (probably Postie).

    What I would like to do is to use my blog for some classes I’m teaching. I’d like to give my students a forum for posting questions and getting answers and discussing things. I thought allowing them to post their questions directly would be a good idea. I am still hopeful at this point.
    Thank you.

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘Posting by email does not ping’ is closed to new replies.