August 21, 2002
Pinging blo.gs

Just a short notice: This blog now also pings blo.gs when updated. How? Using Phil Ringnalda's Multi-ping in Movable Type-hack.

Sponsored links
Related Entries
Comments

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 PM

Evo; 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!

Posted by: andersja on August 22, 2002 10:21 PM

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 AM

Veri nice site!

Posted by: Brone on September 2, 2005 04:55 PM
Post a comment
Name:


Email:
(Will not be displayed if you enter a website below. Otherwise, it will be displayed "spam protected")


Website:
(if you have one)


What do you want to say?
(please don't bother posting "spam" (pornography, viagra-sales etc - I will delete such comments anyway))


Remember info?



Referrers to this page
TrackBack URL for this entry:
http://www.jacobsen.no/cgi-sys/cgiwrap/anders/MT/mt-tb.cgi/223
MaximumAardvark.com: I Ping blo.gs (September 3, 2002 03:30 PM)
"I randomly discovered blo.gs yesterday and decided to set this weblog up to ping it when it's updated. Done."
scriptygoddess.com: Pings for Everyone! (September 8, 2002 05:18 AM)
"While this isn't new, it's new to me - so I wanted post it here so everyone could use it."
Neurotic Fishbowl: Pinging blo.gs With MT (September 8, 2002 09:28 AM)
"I had read how to ping blo.gs at the same time that you ping Weblogs.com with MT quite some time"
Neurotic Fishbowl: Pinging blo.gs With MT (September 8, 2002 09:28 AM)
"I had read how to ping blo.gs at the same time that you ping Weblogs.com with MT quite some time"

18505 visits (1 today, 9 this week)

© Anders Jacobsen
[weblog / photography]