Peter's Blog

Redefining the Impossible

Added Technorati ping to Drupal


Added the following to the function ping_ping in ping.module to get blog pinging technorati.

// PCW $client = new xmlrpc_client("/rpc/ping", "rpc.technorati.com", 80); $message = new xmlrpcmsg("weblogUpdates.ping", array(new xmlrpcval($name), new xmlrpcval($url))); $result = $client->send($message); if (!$result || $result->faultCode()) { watchdog("error", "failed to notify 'technorati.com' (site)"); } unset($client);

I'll test whether it works by seeing if this posting is pinged.

Update: no errors in the log files, looks ok.


Filed under: blog drupal technorati

Peter Says:

Can't you ask somebody to add this to the next Drupal release?

Miguel

Webmaster of: Lisbon Guide & Love Poems

Have Your Say

I welcome constructive comments or questions but I reserve the right to delete any comments that displease me.

Who are you?

(Optional) If you enter an email address here I might email you back. Your email address will not be sold to spammers or shown anywhere

What do you have to say?