Darren Ferguson - Umbraco, Dev, PhoRSS

Thursday, September 28, 2006

Publicise your Umbraco blog with XMLRPC ping

Filed under: Umbraco - by Darren Ferguson @ 2:14 PM

As you may be aware many blog directories allow you to inform them of updates to your blog using an XMLRPC interface method.

If you have already installed the Umbraco blog package, you may not be aware that it uses this method to notify technorati.com. Go to the site and search for some of your blog content and it should be there.

This is a nice piece of functionality that potentially drives traffic to your site, however there are hundreds of blog directories out there and you can't tell Umbraco's blog package to ping additional URL's.

I created an Umbraco action handler. When a blog post is published - or re-published - it reads a comma delimited list of URL's from a key called fmBlogPingUrls. The pinging is done as a background thread so that the GUI doesn't have to wait for all of the ping requests to be processed.

If your Umbraco blog is a standard install, you can just drop the DLL into your bin directory and add the previously mentioned key into your web.config file to get started.

If you have changed document type names or property names then you will need to open up the source and modify a few constants before building. The action places quite a lot of debug information about the ping results in the Umbraco log. You may wish to disable this.

Finally, you'll need some URL's to ping:

http://elliottback.com/wp/archives/2004/11/21/a-list-of-rpc-and-rpc2-to-ping/

2 comment(s) for “Publicise your Umbraco blog with XMLRPC pingComments RSS

  1. Loan says:
    Loan
    vostorg, pefrect!
  2. Frantisek Malina says:
    Frantisek Malina
    I'd rather recommend to use CR/LF separated instead of comma separated list of URL's.

    In the backend user could add or delete URLs in a simple textarea and update services she wants to ping. It is implemented this way in the WordPress.

Leave a comment

Darren Ferguson - Umbraco, Dev, Pho is published with Umbraco 3.0.5