Just a short notice: This blog now also pings blo.gs when updated. How? Using Phil Ringnalda's Multi-ping in Movable Type-hack.
Maybe I'm an idiot, but neither of those options listed on Phil's page seem applicable to me. I don't have those exact lines of code on either of the files listed. There are some close ones, but I'd hate to drop in code that didn't work.
Which one did you use? Would you mind terribly if I asked you to send me the snippet of code you did insert, along with the line preceding it?
I'm on 2.21, so I can only assume something has changed in those files.
Namaste,
Evo
Posted by: Evo on August 22, 2002 09:15 PMEvo; I followed the instructions given a bit further down in his post (where it says updates for 2.2): the file is {your MT install dir}/lib/MT.pm and the final result looks like this (to find the insert point search the code for for example "WeblogsPingURL"):
if ($blog->ping_weblogs) {
require MT::XMLRPC;
if (MT::XMLRPC->weblogs_ping($blog)) {
push @res, { good => 1, url => $mt->{cfg}->WeblogsPingURL,
type => "update" };
} else {
push @res, { good => 0, url => $mt->{cfg}->WeblogsPingURL,
type => "update", error => MT::XMLRPC->errstr };
}
if (MT::XMLRPC->ping_update('weblogUpdates.ping', $blog, 'http://ping.blo.gs/')) {
push @res, { good => 1, url => 'http://ping.blo.gs/',
type => "update" };
} else {
push @res, { good => 0, url => 'http://ping.blo.gs/',
type => "update", error => MT::XMLRPC->errstr };
}
}
Worked like a charm for me. Let me know how it works for you!
Anders,
You da human! I suppose had I taken the time to read a bit further I might have discoverd that on my own. But thanks for the gentle nudge!
Namaste,
Evo
Posted by: Evo Terra on August 23, 2002 05:25 AMVeri nice site!
Posted by: Brone on September 2, 2005 04:55 PM
©
Anders Jacobsen [extrospection.com photography] |