I have the following information:
URL Ping: http://bitacoras.net/ping/
Port: 80
I tried using the same weblogs.com function, since on bitacoras.net they say, in their instructions manual, that the pinging to their site is similar to weblogs.com; so, having said that, this is the function I've been trying to use with no success:
functions.php, within the wp-includes folder:
// pings Bitacoras.net
function ping_bitasnet($blog_ID = 1) {
// original function by Dries Buytaert for Drupal
global $use_weblogsping, $blogname,$siteurl,$blogfilename;
if ((!(($blogname=="FrankPereiro") && ($siteurl=="http://frankpereiro.bitacoras.com") && ($blogfilename=="wp.php"))) && (!preg_match("/localhost\//",$siteurl)) && ($use_weblogsping)) {
$client = new xmlrpc_client("", "bitacoras.net/ping/", 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;
}
}
And then I have this code in the post.php file within the wp-admin folder:
ping_bitasnet($blog_ID);
pingWeblogs($blog_ID);
pingBlogs($blog_ID);
I have successfully inserted a code to ping to another blog directory by using this:
in the functions.php within the wp-includes folder:
function ping_meu($servidor,$dir,$port)
{ $f=new xmlrpcmsg('weblogUpdates.ping',array(new xmlrpcval("frankpereiro"),new xmlrpcval("http://frankpereiro.bitacoras.com")));
$c=new xmlrpc_client($dir, $servidor, $port);
$c->setDebug(0);
$r=$c->send($f);
}
and the I inserted the next code within the post.php file in the wp-admin folder:
ping_meu("ping.bitacoras.com","/",80);
-------------------------------------------
I've tried using both codes but it doesn't work for bitacoras.net. My blog doesn't show in the "updated list", thus, I have to ping manually.
Maybe someone could help me out on this issue. I will really, really, appreciate some help. Thanks in advance.
Greetings,