Recent Topics

1 Mar 18, 2004 15:03    

[url=http://blogbot.de]blogbot.de[/url] is a kind of weblogs.com for german speaking blogs.

if you run a german speaking blog and want to ping blogbot.de (mainly to be listed on some other german blog services), you can use this code (take from http://grauhirn.org/grauhirn/funktionen/blogbotping.txt and change a little bit to works better with multiple blogs):


function blogbotPing(& $blogparams, $useragent = "b2evolution") {
	global $use_blogbotping, $use_rss, $blogname, $baseurl, $blogfilename;          
    if( ! $use_blogbotping ) return false;

	$blogurl=get_bloginfo('blogurl', $blogparams);
	if ( substr($blogurl,-6)=="/index" ) {
		$blogurl = substr($blogurl, 0, -5);
	}

	$blogurl=str_replace("/index","/",$blogurl); 
	echo "<div class=\"panelinfo\">\n";
	echo "<h3>", T_('Pinging Blogblot.de...'), "</h3>\n";	
	$fp = fsockopen("xmlrpc.blogbot.de", 80, &$errnum, &$errstr);
	if (!$fp) {
		return "FEHLER: Es konnte keine Verbindung zu Blogbot.de geƶffnet werden ($errstr ($errnum))\n";
	}
	else {
		$message = "<?xml version=\"1.0\"?><methodCall><methodName>weblogUpdates.ping</methodName>";
		$message .= "<params><param><value>".get_bloginfo('name', $blogparams)."</value></param>";
		$message .= "<param><value>".$blogurl."</value></param>";
		$message .= "<param><value>".get_bloginfo('rss2_url', $blogparams)."</value></param>";		
		$message .= "</params></methodCall>";
		fputs($fp, "POST / HTTP/1.0\r\n");
		fputs($fp, "Host: xmlrpc.blogbot.de\r\n");
		fputs($fp, "User-Agent: ".$useragent."\r\n");
		fputs($fp, "Content-Type: text/xml\r\n");
		fputs($fp, "Content-length: ".strlen($message)."\r\n\r\n");
		fputs($fp,$message);
		$output = "";
		while (!feof($fp)) $output .= fgets($fp,4096);
		fclose($fp);
	}
	$output = preg_replace("/.*<\/boolean>/si","",$output);
	$output = preg_replace("/.*<value>/si","",$output);
	$output = preg_replace("/<\/value>.*/si","",$output);
	echo "".$output."<br />";
	echo "<p>", T_('Done.'), "</p>\n</div>\n";
	//return strip_tags($output);
}

don't forget to add

$use_blogbotping = 1;

to conf/_advanced.php

and last open admin/edit_actions.php, htsrv/getmail.php, mms.php and xmlsrv/xmlrpc.php

search for


 pingb2evonet($blogparams, $post_ID, $post_title);
			pingWeblogs($blogparams);
			pingBlogs($blogparams);		
			pingCafelog($cafelogID, $post_title, $post_ID);
			pingTechnorati($blogparams); 

and add


blogbotPing($blogparams);

2 Feb 19, 2005 14:05

Can u help me plz, I need 2 use MMS with my blog....I have tried all steps in this forum, but no luck!


Form is loading...