imred

Hey all,

  Yep, first time in the

php

  forum Applause  I usually like to stick to the

ASP

 

.Net

  forum, but now i am forced over here by Wordpress.

  I wrote a content generator that posts content, using XMLRPC, to Wordpress blogs.  However, it doesn't ap

pear

  to ping when it posts.  I don't know if that is because I am using timestamps that are NOT current or if I am just not forcing the ping.

  I tried looking through the

php

  code in both xmlrpc.

php

  and post.

php

 , but cannot figure out if it is supposed to ping when I call the blogger_newpost XMLRPC command.  I don't really even see WHERE the code is for pinging.  This is obviously a MUST HAVE for my system to really be worth anything to me.

Can anyone help?

Thanks in advance!

imred

ok, so I think I see it in the comment.

php

  file...

I am guessing that do_all_pings will do the job, however, how do I get that to fire pro

perl

 y when I use XMLRPC (and blogger_newpost) to trigger my new content into the system?  It looks like the meta key should be set, but I don't see where that is done in either the xmlrpc.

php

  file or the functions.

php

  file or the post.

php

  file.


Still confused.  I wish I were looking at

asp

 

.net

 , that might help Applause

DangerMouse

This may seem a little odd but I've never actually bothered with Wordpess (shock horror!) so I can't really help with your question.

However I'd suggest a better approach to hacking the core wordpress files would be to just mannually ping a select few ping services. As you've already mastered XMLRPC this shouldnt be a problem at all, plus you end up with full control, can update your Wordpress install anytime without worrying about backwards compatibility and have a tool you can apply to any number of other tasks  Applause

DM

imred

quote author=DangerMouse link=topic=833.msg5737#msg5737 date=1205757424

This may seem a little odd but I've never actually bothered with Wordpess (shock horror!) so I can't really help with your question.

However I'd suggest a better approach to hacking the core wordpress files would be to just mannually ping a select few ping services. As you've already mastered XMLRPC this shouldnt be a problem at all, plus you end up with full control, can update your Wordpress install anytime without worrying about backwards compatibility and have a tool you can apply to any number of other tasks  Applause

DM


Definitely a good point DM Applause  I have considered that mainly because I DO have sites that I ping already.  However, in this case, I wanted WP to do it so that it seems a bit more 'legit'.  Not too sure it makes a difference, but I really would prefer to do it this way.  I don't even want to hack WP, but since I have already created a customized XMLRPC file to add timestamps to my content-generator, then I would rather just force that piece to ping the blog after the post.

Now - 1 thing I am not sure of.... It may actually be pinging.  I only thought it wasn't because I didn't see any resultant bots spidering at ping-time and all my other blogs (manual blogs) get a spider near-immediate.

In the wp_posts table, I see 'closed' for ping_status, so would have hoped that meant it DID ping.  I guess I will look around to find out if there is a ping test site so that I can ping it and see if the pinging is working Applause  I don't know.... I'm gr

asp

 ing at straws now Applause

Thanks for the reply!

perkiset

Put a dummy service under your own control into the ping list and see if you get hit.

imred

quote author=perkiset link=topic=833.msg5745#msg5745 date=1205776121

Put a dummy service under your own control into the ping list and see if you get hit.


I've been trying to figure out how to set up a dummy service since my last post Applause  Not having much luck, though.  I did check a number of the services that I had pinged not so long ago and my content wasn't in any of them, so I can only assume that it is not pinging pro

perl

 y.

I looked around and read that WP doesn't post until after the next time WP is 'refreshed', but places something in the database that tells the do_pings() function to ping those threads.  I am still trying to figure out how it does that so that I can get it to ping for me.

Thanks again for the help, guys.  Hopefully I'll figure it out sometime

Bompa

I never even thought of wp doing the ping.  I just put a pinger in my posting code.

It's just one line with pingomatice:

#$ping_content = get("http://pingomatic.com/ping/?title=$username&blogurl=http%3A%2F%2F
$base&rssurl=http%3A%2F%2F$base%2Ffeed%2F&chk_weblogscom=on&chk_blogs= oetc etc etc"); truncated

get the url with firefox at pingomatic

or you can ping the important ones with:

  @ping_servers = (
  "http://rpc.weblogs.com/pingSiteForm?name=$username&url=http%3A%2F%2F$base",
  "http://api.my.yahoo.com/rss/ping?u=http%3A%2F%2F$base",
  "http://api.moreover.com/ping?u=http%3A%2F%2F$base",
  }


Either way will bring googlebot and yahoofeedfinder

Bompa

perkiset

Nice Bomps


Perkiset's Place Home   Politics @ Perkiset's