Publicise your Umbraco blog with XMLRPC ping

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/

Comments

Leave a comment