I didn't want to use the PingCrawl plug-in because it only uses the TAGs as search terms. I decided to man up and look through the code to find a way to make it work for me.
It's working for me, and once I find time, I plan on extending the PingCrawl interface and add an option for more RSS feeds to crawl.
It's attached as a TXT file, so just rename it and upload it.
Here's the modifications:
1. Uses the permalink for the post, and not the GUID (so you're pingback links are friendly).
2. No longer uses the TAGs of a post. It tries to use the META Key "pingcrawl". If it can't find it, it uses the Title. It then strips out extra characters from the title, just incase.
I've tested it, and it works for me, using the meta key helps me target blogs better than the title does.
It's working for me, and once I find time, I plan on extending the PingCrawl interface and add an option for more RSS feeds to crawl.
It's attached as a TXT file, so just rename it and upload it.
Here's the modifications:
1. Uses the permalink for the post, and not the GUID (so you're pingback links are friendly).
Code:
protected function doPingback( $url , $blogu, $post ) {
...
if(!$client->query( 'pingback.ping', get_permalink( $post->ID ), $bu )) {
.......
}
Code:
protected function savePost( $opost ) {
.....
$searchTerm = "";
if ( get_post_meta( $opost->ID, "pingcrawl", true ) )
$searchTerm = get_post_meta( $opost->ID, "pingcrawl", true );
else
$searchTerm = $opost->post_title;
$excludeChars = array( "'", "+", "$", "!", ",", "-", "%", "&", "*", "(", ")", "=", "?" );
$searchTermClean = str_replace( $excludeChars, "", $searchTerm );
$rss = $this->getRss( $searchTermClean, $numberOfBlogsToGetFromGoogle );
......
}