WordPress XML-RPC Demystified

Hello!

I have been working with XML-RPC calls using WordPress and CodeIgniter. It is an excellent way to use WordPress as a Content Management System (CMS).

Below is a simple tutorial on creating a WordPress plugin that extends the xmlrpc.php class included with WordPress.

You can download the source here

Dave Winer says it best:

“A procedure call is the name of a procedure, its parameters, and the result it returns. RPC is a very simple extension to the procedure call idea, it says let’s create connections between procedures that are running in different applications, or on different machines.”

That leaves, of course XML which is the format in which the two applications (or computers) speak to each other.

This post is about using the XML-RPC framework included with WordPress. Since this is somewhat of an advanced programming topic I’ll assume you are familiar with both php and WordPress.

Download the source and follow these steps:

1.   Change the Admin Settings to allow remote procedure calls.

/wp-admin -> Settings -> Writing -> (check) XML-RPC

2.   Copy the wordpress plugin in the attached source file ‘xmlrpc_plugin.php” to your /wp-content/plugins folder

3.   Activate the plugin in the Admin console.

4.   Run the sample program ’sample.php’

*** Special thanks to Keith Devens for the excellent Simple XMLRPC Client (below)

===

Links

Simple XMLRPC client

XML-RPC for Newbies

Excellent XMLRPC Articlexmlrpc-client

Bookmark and Share

Popularity: 100% [?]

October 14th — MacBook Pro?

Bookmark and Share

Popularity: unranked [?]

Loving this – Fifth Element Seinfeld

Bookmark and Share

Popularity: unranked [?]

Flickr iPhone Application

I’m rapidly learning the framework for iPhone applications. Now that the NDA has been lifted the resources out there are really good. (i.e. iPhone SDK Pragmatic Book. Their screencasts are excellent as well.

So I decided to post my (first) flickr iPhone app. Its simple — displays random flickr images based on tags you supple.

For now, I hard coded two tags, “Natalie Portman” and retrieve 75 random images from flickr based on my API key. I use my site to retrieve the flickr urls for now. I plan to integrate this soon.

Attached is my source code. I’m really excited about iPhone development!

flickrRandom.zip

Bookmark and Share

Popularity: 25% [?]

Sortable Draggable with jQuery

I’ve been toying with jQuery and the jQuery UI and put together this drag and drop sortable list.

One simple unordered list on the left column. One unordered empty list on the right. You can then drag and drop the list items placing them in the order that you prefer. You then post the results to a page in the exact order you selected.

You can drag and drop to both lists.

Not sure what I’m going to do with it yet… still in progress.

Preview
Download

Bookmark and Share

Popularity: unranked [?]

RIP iPhone NDA ~ October 1, 2008

Today Apple Computer announced that they are dropping the NDA for the iPhone SDK / Developer program!

Today’s Announcement

Bookmark and Share

Popularity: unranked [?]

Back from Utah WordCamp

Back from the Utah WordCamp in Provo, UT! Excellent speakers including Cameron Moll and Alex King.

I especially liked the new carringtontheme WordPress framework introduced by Crowd Favorite’s Alex King. I highly recommend that you check it out.

Bookmark and Share

Popularity: unranked [?]

New comment2tweet Plugin

Just released our “comment2tweet” WordPress plugin.

It triggers a twitter.com post for every approved comment posted on your blog.

Check it out… comment2tweet


Bookmark and Share

Popularity: unranked [?]

Cocoa Training from Pragmatic Studio

I’ll be heading to Denver next month (10/28 – 10/30) to the Cocoa and Objective-C training from some of the best authors of upcoming iPhone books.

Take a look at the trainers!

In this premiere Studio, you’ll learn directly from two experienced Objective-C and Cocoa developers:
Daniel Steinberg
Daniel Steinberg is the author of the book Cocoa Programming: A Quick Start for Developers and the editor for the new series of Mac Developer titles for the Pragmatic Programmers. He writes feature articles for Apple’s ADC web site and is a regular contributor to Mac Devcenter. He has presented at Apple’s Worldwide Developer Conference, MacWorld, MacHack, and other Mac developer conferences. (photo courtesy of Patrick Lenz)

Bill DudneyBill Dudney is a software developer and entrepreneur currently building software for the Mac. Bill started his computing career on a NeXT cube with a magneto-optical drive running NeXTStep 0.9. He’s the author of iPhone SDK Development and Core Animation for OS X and the iPhone. He has several iPhone applications currently selling on the App Store.

Bookmark and Share

Popularity: unranked [?]

PHP to Javascript Array Function Conversions!

PHP to Javascript array functions written by PHP to Javascript Functions by Kevin van Zonneveld.

These functions are WONDERFUL! Download the whole php.js file from the link above. You can pick and choose any array function that you like from the standard PHP library.

Bookmark and Share

Popularity: unranked [?]