• Jeremy Zawodny pointed out a method to ping Yahoo RSS crawler for Moveable Type blogs and he did a great job explaining it with pictures. I consequently hacked a little pinger for WordPress which does the same thing.
    Add this function to your my-hacks.php:

    // pings Yahoo.com RSS Crawler
    function pingYahoo($blog_ID = 1) {
    // original function by Dries Buytaert for Drupal
    global $blogname,$siteurl,$blogfilename;
    if ((!(($blogname=="my weblog") && ($siteurl=="https://example.com") && ($blogfilename=="wp.php"))) && (!preg_match("/localhost\//",$siteurl))) {
    $client = new xmlrpc_client("/RPC2", "api.my.yahoo.com", 80);
    $message = new xmlrpcmsg("weblogUpdates.ping", array(new xmlrpcval($blogname), new xmlrpcval($siteurl."/".$blogfilename)));
    $result = $client->send($message);
    if (!$result || $result->faultCode()) {
    return false;
    }
    return true;
    } else {
    return false;
    }
    }

    Find these lines in your post.php (inside wp-admin folder) :
    pingWeblogs($blog_ID);
    pingBlogs($blog_ID);
    And add this right after that:
    pingYahoo($blog_ID);
    All done and pingin!

Viewing 15 replies - 1 through 15 (of 18 total)
Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘Configure WP to ping Yahoo’ is closed to new replies.