10/21/2003 ↓

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!

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Visitors who read this post, also read:

    Friends

    Translate

    Translate to German Translate to Spanish Translate to French Translate to Italian Translate to Portuguese Translate to Japanese Translate to Korean Translate to Russian Translate to Chinese

    Latest Videos

    One Comment | Leave a comment | Comments RSS

    1. Cool website ! !

      [Reply]

      Dr. L (1 comments.) — 06/10/2003 @ 12:48 pm

    Leave a comment

    Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    (required)

    (required, will not be published)


    S2