Perhaps MT.pm instead

Trying the blo.gs ping stuffed into MT.pm, where MT does its calls to MT::XMLRPC, instead. Perhaps it will be better behaved there. I would have liked to redo the whole ping subroutine, since it currently dies on the first error (say, pinging weblogs.com returns an error: you don’t get to ping anything else, including the MT recently updated), but I’m not bright enough. Luckily, that’s supposed to be on the “to fix” list, and I see by the comments in MT.pm that pinging clouds other than weblogs.com is also on the list. The only thing I like better than hacking in a temporary solution is to see an official permanent solution instead.

<update>Works for me, but then it worked for me before. We’ll see whether it does the trick for Shannon.</update>

<update number=”2″>Takes care of the problems in Shannon’s blog, too.</update>

So, if hacking CMS.pm doesn’t work for you, try this:

  • Edit /mt/lib/MT.pm
  • Find the line in sub ping that reads MT::XMLRPC->weblogs_ping($blog) or return $mt->error(MT::XMLRPC->errstr); (displayed on two lines, but it’s one line of code)
  • Insert a new line immediately after that, that reads: MT::XMLRPC->ping_update('weblogUpdates.ping', $blog, 'http://ping.blo.gs/') or return $mt->error(MT::XMLRPC->errstr);

Save, reupload, publish a new post, and check blo.gs and weblogs.com.

8 Comments

Comment by Shannon #
2002-05-04 18:59:02

Installation #2? What am I, a fucking NUMBER?

 
Comment by Phil Ringnalda #
2002-05-04 19:04:33

Yeah, and you’re damn lucky just to be number two. None of yer lip, girl.

 
Comment by Anonymous #
2002-05-04 20:02:25

All right then. Give me back my underwear.

 
Comment by Phil Ringnalda #
2002-05-05 11:37:41

Okay, I’ll un-number you, then.

 
Comment by Phil's Bitch #
2002-05-05 11:55:50

My email address doesn’t show up in your comments anymore. I will adapt.

 
Comment by Chris #
2002-07-07 15:20:59

Is this still how it needs to be done in MT 2.2?

 
Comment by Phil Ringnalda #
2002-07-07 15:59:51

I’ve got to clean up this spread around bunch of posts. No, the 2.2 update is in the comments of the other post.

 
Comment by Phil Ringnalda #
2002-10-08 22:05:40

Updated for MT 2.5 : no need to hack, just go to Blog Config -> Preferences -> Publicity, and check the box to ping blo.gs.

 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <del datetime="" cite=""> <dd> <dl> <dt> <em> <i> <ins datetime="" cite=""> <kbd> <li> <ol> <p> <pre> <q cite=""> <samp> <strong> <sub> <sup> <ul> in your comment.