post-page

Post to WordPress or b2 from FeedDemon

9
responses
by
 
on
October 30th, 2003
in
WordPress Hack

I re-wrote a hack to post directly from FeedDemon to WordPress and or b2/cafelog. For this you would have to be logged into your blog admin portion (a previous login with the cookie set will do just fine).
Here is the hack.

Check out the other Blog Tools, Hacks and Cool scripts on this blog to make yours better and more fun!

heading
9
Responses

 

Comments

  1. Could you please update this hack to WordPress 1.2 Mingus? Please? ;-)

  2. Mark says:

    I will look into that this weekend.

  3. We are eagerly awaiting your statement, oh master! ;-) :D

  4. numele (1 comments.) says:

    acesta este un testa 2-a liniea 3-a liniavreau sa vad daca merge numai

  5. dario (2 comments.) says:

    Hi,
    I am using WordPress 1.0.1, but there is no b2edit.php
    Where am I supposed to apply the hack?

    Please let me know.

    Thanks a lot in advance.

    Dario

  6. Mark (14 comments.) says:

    Look for post.php inside your wp-admin folder. Also, I have heard that this hack does not work in FeedDemon 1.0. You could try it anyways.

  7. honfrek says:

    I tried this hack with wp 1.0.2, but it didn’t work right. i had the same problem as with wp-mail.php : the category couldn’t be updated in table wp_post2cat.

    i postet my solution regarding wp-mail.php here

    looking at your hack, i realized that the code-part for updating
    table wp_post2cat was missing in your new case ‘postbyfeeddemon’.

    solution: insert this part (or copy it from case ‘post’):

    if (!$post_categories) $post_categories[] = 1;
    foreach ($post_categories as $post_category) {
    // Double check it's not there already
    $exists = $wpdb->get_row("SELECT * FROM $tablepost2cat WHERE post_id = $post_ID AND category_id = $post_category");

    if (!$exists && $result) {
    $wpdb->query("
    INSERT INTO $tablepost2cat
    (post_id, category_id)
    VALUES
    ($post_ID, $post_category)
    ");
    }
    }

    between this line:

    $post_ID = $wpdb->get_var("SELECT ID FROM $tableposts ORDER BY ID DESC LIMIT 1");

    and this line:

    if (isset($sleep_after_edit) && $sleep_after_edit > 0) {

    and table wp_post2cat will be updatet on rss-posts.



Obviously Powered by WordPress. © 2003-2013

page counter
css.php