Title: Ping Blogrolling.com Hack &#8211; very simple
Last modified: August 18, 2016

---

# Ping Blogrolling.com Hack – very simple

 *  [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/)
 * 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!

Viewing 13 replies - 1 through 13 (of 13 total)

 *  [Dominik](https://wordpress.org/support/users/dominik/)
 * (@dominik)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-24977)
 * Hey, thanks, that’s almost the answer to the question I had before.. I’ll try
   that one.. 🙂
 *  [trinity22](https://wordpress.org/support/users/trinity22/)
 * (@trinity22)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25112)
 * I tried it and got
    Warning: Unknown modifier ‘/’ in /home2/trinity/public_html/
   b2-include/b2functions.php on line 757 Warning: Cannot modify header information–
   headers already sent by (output started at /home2/trinity/public_html/b2-include/
   b2functions.php:757) in /home2/trinity/public_html/wp-admin/b2edit.php on line
   167 trying to extricate it now 🙂 trinity
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 7 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25116)
 * Remember to change the \ to a backslash…
 *  Anonymous
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25259)
 * Doesn’t seem to work with WP 1.0+ the only place I have found pingBlogs($blog_ID);
   is in post.php in the wp-admin folder.
    Any help here?
 *  [Orbit Juice](https://wordpress.org/support/users/orbitjuice/)
 * (@orbitjuice)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25260)
 * I also tried this to the letter. Very similar.
    I placed the step 1 code in the
   functions.php file and placed the step 2 code in the post.php file in the same
   places as pingBlogs($blog_ID); is. weblogs and blo.gs are updating fine. Blogrolling
   does not update at all. I currently use MoveableType which handles this fawlessly–
   However… I”m about ready to jump over to WP. But, this is a very make or break
   issue with me as my blog is on many blogsrolls. Does anyone have code for this
   that works with WP?
 *  Moderator [Matt Mullenweg](https://wordpress.org/support/users/matt/)
 * (@matt)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25261)
 * I use the built-in weblogs.com pinger and it works just fine.
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25262)
 * Use this function instead of the one on top of this thread as the function for
   pinging blogrolling.com (for WordPress 1.0+). You could put it in functions.php
   or in your my-hacks.php :
    function pingBlogrolling($blog_ID = 1) { global $blogname,
   $siteurl,$blogfilename; if ((!(($blogname==”my weblog”) && ($siteurl==”[http://example.com&#8221](http://example.com&#8221);)&&(
   $blogfilename==”wp.php”))) && (!preg_match(“/localhost\//”,$siteurl))) { $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; } } Place
   pingBlorolling($blog_ID); after pingBlogs($blog_ID); in your post.php (inside
   your wp-admin folder) Just as a side note, this is really perfunctory because
   Blogrolling.com gets its recently updated list from blo.gs and from weblogs.com
   and does not need to be pinged seperately. Only if your WordPress blog does not
   show up in that list when updated should you try to add this function.
 *  [Orbit Juice](https://wordpress.org/support/users/orbitjuice/)
 * (@orbitjuice)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25263)
 * It’s still not working.
    Is there something missing? I’m following these directions
   word for word.
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25264)
 * How do you know that it is not working?
 *  [Orbit Juice](https://wordpress.org/support/users/orbitjuice/)
 * (@orbitjuice)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25265)
 * Because when I check my blogroll through blogrolling, i’m not shown as updated.
   
   It shows the last entry I made being from saturday. which is one I made with 
   MT.
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25266)
 * Thats what I thought was happening. Please make sure that your URL and the name
   for your WordPress blog are exactly the same as the one that you are blogrolling.
   In other words, when you signed up for BlogRolling you provided a name for your
   blog and the URL, these have to match the WP ones, exactly. Even the last backslash
   matters in some cases.
 *  [Orbit Juice](https://wordpress.org/support/users/orbitjuice/)
 * (@orbitjuice)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25267)
 * Tried it.. still to no avail…
 *  Thread Starter [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * (@laughinglizard)
 * [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25268)
 * what is your blog url? Could you create a temporary account for me to test from
   and email me the username/password? Thanks

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Ping Blogrolling.com Hack – very simple’ is closed to new replies.

 * 13 replies
 * 6 participants
 * Last reply from: [Laughinglizard](https://wordpress.org/support/users/laughinglizard/)
 * Last activity: [22 years, 4 months ago](https://wordpress.org/support/topic/ping-blogrollingcom-hack-very-simple/#post-25268)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
