WordPress/b2 Hack - Ping Blogrolling.com
If you like this post, please subscribe to our RSS feed to read our new posts every day.
I knew that Blogrolling.com gets its “recently updated blogs” information from both blo.gs and weblogs.com, but I was recently having some problems with my site showing up on the updated list, but not updated on Blogrolls. I took a closer look at the problem (the links matched exactly) and found nothing of suspicion. So I decided to fix the problem by pinging Blogrolling.com directly through b2/Wordpress. Here is what I did:
1) In your b2-include folder, find b2function.php and add this code somewhere within the php tags, preferably after the weblogs.com ping. (Yes, the code is very similar to the other pingers with just a few changes)
// pings Blogrolling.com
function pingBlogRolling($blog_ID = 1) {
// original function by Dries Buytaert for Drupal
global $use_weblogsping, $blogname,$siteurl,$blogfilename;
if ((!(($blogname=="my weblog") && ($siteurl=="http://example.com") && ($blogfilename=="b2.php"))) && (!preg_match("/localhost\//",$siteurl)) && ($use_weblogsping)) {
$client = new xmlrpc_client("/pinger/", "rpc.blogrolling.com", 80);
$message = new xmlrpcmsg("weblogUpdates.ping", array(new xmlrpcval($blogname), new xmlrpcval($siteurl."/".$blogfilename)));
$result = $client->send($message);
if (!$result || $result->faultCode()) {
return(false);
}
return(true);
} else {
return(false);
}
}
2) Now find b2edit.php in the main b2 folder and find the line
pingBlogs($blog_ID);
Add the following line right after that:
pingBlogRolling($blog_ID);
And…voila! you are done and pinging Blogrolling.com ![]()
The above hack is explained for b2. b2edit.php resides in the wp-admin directory in Wordpress; everything else remains the same. Hope this helps someone!
Visitors who read this post, also read:
Related posts from the past
- Ping Yahoo RSS from WordPress and Moveable Type
- Ping PubSub from your WordPress or Moveable Type blog
- Blogroll import OPML bug in WordPress 0.72
- Count Number of WordPress blogs
- Announcing Ping-o-matic
- Automatically shut off comments for stale blog entries in WordPress Hack
- Removing Width/Height from the Image Uploader
- LinkTours 0.1 Beta
- Services to Ping
- WordPress 0.72 is out of Beta













Comments RSS
Cool website ! !
[Reply]
Dr. L (1 comments.) — 06/10/2003 @ 12:48 pm