Cyberwizzard.nl

Welcome to my world

MoveableType Plugin Joomla! enhanced

Joomla can be used in a blog like manner using the XML-RPC interface. Unfortunately, Joomla only provides a Blogger API plugin which is rather limited.

Luckely, some Japanese people created a plugin which improved the supported XMLRPC API's. It's called MoveableType XML-RPC Plugin and can be found on the Joomla site.

Technically this is not only a MoveableType implementation as it supports all functions needed for MetaWeblog and Blogger as well as Google Docs (since version 2.1.0).

The only thing driving me nuts is the fact that some blog tools refuse to work because the plugin refuses to return a list of supported functions (most programs just assume everthing is supported, which is wrong as almost everything is optional).

Fortunately this is solved quickly by adding a few lines of PHP to the plugins/xmlrpc/movabletype.php file. Find the following section (around line 790):

function mt_supportedMethods()
   {
      return (new xmlrpcresp(new xmlrpcval(array(), "array")));
   }

Replace this with the following:

function mt_supportedMethods()
   {
      global $xmlrpcString, $xmlrpcArray;
      $functions = array();
      foreach(array_keys(plgXMLRPCMovableType::onGetWebServices()) as $function_name)
         $functions[] = new xmlrpcval($function_name, $xmlrpcString);
      $struct = new xmlrpcval($functions, $xmlrpcArray);
      return new xmlrpcresp($struct);
   }

And voila, there you have it, a fully working function listing enabling your favorite blog program to do its job properly...