From 88d571f729d396dc4c08ae1e53b0533fc79de484 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 5 Aug 2008 12:58:16 +0000 Subject: Update: Added post action hook Wordpress now sends InstaDisc items whenever a post is published. However, there seems to be yet ANOTHER strange error with the client because it is, once again, not recieving any items. Refs #6. --- .../plugin/wordpress/trunk/instadisc/instadisc.php | 55 +++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) (limited to 'update/plugin/wordpress') diff --git a/update/plugin/wordpress/trunk/instadisc/instadisc.php b/update/plugin/wordpress/trunk/instadisc/instadisc.php index c5eae1f..ba65516 100644 --- a/update/plugin/wordpress/trunk/instadisc/instadisc.php +++ b/update/plugin/wordpress/trunk/instadisc/instadisc.php @@ -57,6 +57,20 @@ function id_settings_page()
This is the URL that you advertise, the URL people use to subscribe to your subscription. + + + + +
This is the username you signed up with at your central server, and the one that you will/have register(ed) this subscription under. + + + + + + +
This is the password for the user above + + @@ -81,6 +95,20 @@ function id_settings_page()
This is the URL that you advertise, the URL people use to subscribe to your subscription. + + + + +
This is the username you signed up with at your central server, and the one that you will/have register(ed) this subscription under. + + + + + + +
This is the password for the user above + + @@ -97,9 +125,34 @@ function id_settings_page() - +

post_title; + $author = $post->post_author; + $url = $post->guid; + + $verID = rand(1,65536); + + $client = new xmlrpc_client(get_option('instaDisc_blogPost_centralServer')); + $msg = new xmlrpcmsg("InstaDisc.sendFromUpdate", array( new xmlrpcval(get_option('instaDisc_blogPost_centralServer_username'), 'string'), + new xmlrpcval(md5(get_option('instaDisc_blogPost_centralServer_username') . ':' . md5(get_option('instaDisc_blogPost_centralServer_password')) . ':' . $verID), 'string'), + new xmlrpcval($verID, 'int'), + new xmlrpcval(get_option('siteurl') . '/', 'string'), + new xmlrpcval($title, 'string'), + new xmlrpcval($author, 'string'), + new xmlrpcval($url, 'string'), + new xmlrpcval(array(), 'array'))); + $client->send($msg); +} + ?> -- cgit 1.4.1