Recent Topics

1 Oct 06, 2006 18:14    

This is what I've done so far... And now is working.

Thanks

----
Added to /inc/_misc/_ping.funcs.php after the Ping to WebLogs

/*
 * pingPingOMatic(-)
 *
 * pings Pingomatic.com
 */
function pingPingOMatic( & $blogparams, $display = true )
{
	global $baseurl;
	if( !get_bloginfo('pingpingomatic',$blogparams) ) return false;
	// echo 'ping Weblogs.com';
	if( $display )
	{
		echo "<div class=\"panelinfo\">\n";
		echo '<h3>', T_('Pinging Pingomatic.com...'), "</h3>\n";
	}
	if( !preg_match( '#^http://localhost[/:]#', $baseurl) )
	{
		$client = new xmlrpc_client("/RPC2", "rpc.pingomatic.com", 80);
		$message = new xmlrpcmsg( 'weblogUpdates.ping', array(
															new xmlrpcval(get_bloginfo('name', $blogparams)) ,
															new xmlrpcval(get_bloginfo('blogurl', $blogparams)) )  );
		$result = $client->send($message);
		$ret = xmlrpc_displayresult( $result, $display );
		if( $display ) echo '<p>', T_('Done.'), "</p>\n</div>\n";
		return($ret);
	}
	else
	{
		if( $display ) echo "<p>", T_('Aborted (Running on localhost).'), "</p>\n</div>\n";
		return(false);
	}
}

Added on /cron/GetMail.php

Line 347: pingPingOMatic($blogparams);

Added on /inc/CONTROL/Collections/Blogs.php

Line 174: $edited_Blog->set( 'pingpingomatic',  param( 'blog_pingpingomatic',  'integer', 0 ) )

Added on /inc/CONTROL/Items/Edit_actions.php

Line 146: pingPingOMatic($blogparams);
Line 250: pingPingOMatic($blogparams);
Line 351: pingPingOMatic($blogparams);

Added on /inc/Model/collections/_blog.class.php

Line 95: var $pingpingomatic = 1;
LINE 175: $this->pingpingomatic = $db_row->blog_pingpingomatic;
Line 241: case 'pingpingomatic':

Added on /inc/Model/collections/_blog.funcs.php

Line 71: $blog_pingpingomatic = 1,
Line 80: $query = "INSERT INTO T_blogs( blog_name, blog_shortname, blog_siteurl,
					blog_stub, blog_urlname, blog_staticfilename,
					blog_tagline, blog_description, blog_longdesc, blog_locale, blog_notes, blog_keywords,
					blog_UID, blog_allowcomments, blog_allowtrackbacks, blog_allowpingbacks, blog_pingb2evonet,
					blog_pingtechnorati, blog_pingweblogs, blog_pingpingomatic, blog_pingblodotgs, blog_disp_bloglist,
					blog_in_bloglist, blog_links_blog_ID )

Line 100: $query .= "'".$DB->escape($blog_allowcomments) . "', "
			 . "$blog_allowtrackbacks, $blog_allowpingbacks, $blog_pingb2evonet, $blog_pingtechnorati, "
			 . "$blog_pingweblogs, $blog_pingpingomatic, $blog_pingblodotgs, $blog_disp_bloglist, $blog_in_bloglist, "
			 . "$blog_links_blog_ID)";

Added on /VIEW/collections/_blogs_advanced.form.php

Line 75: $Form->checkbox( 'blog_pingpingomatic', $edited_Blog->get( 'pingpingomatic' ), T_('Ping Pingomatic.com'), T_('to give notice of new post on several services at the same time.') );

Added on /install/_db_schema.inc.php

Line: 119: blog_pingwebomatic TINYINT(1) NOT NULL default 0,

Added on: /install/_functions_evoupgrade.php

Line 277: ADD COLUMN blog_pingpingomatic tinyint(1) NOT NULL default 0,

Added on: /xmlsrv/xmlrpc.php

Lines 187 & 188: 
	logIO("O","Pinging Ping-O-Matic...");
        pingPingOMatic( $blogparams, false );

Lines 443 & 444: 
	logIO("O","Pinging Ping-O-Matic...");
        pingPingOMatic( $blogparams, false );

Lines 617 & 618: 
	logIO("O","Pinging Ping-O-Matic...");
        pingPingOMatic( $blogparams, false );
Line 1763:
	pingPingOMatic( $blogparams, false );

That's all


Form is loading...