Tim Wilson has just posted PressConnect, a “PHP script which interigates a WordPress database and returns posts, pages, and creates menus in an XML format.”
Tim’s site/blog runs a completely Flash front-end using WordPress as the content management system, so he has some experience making Flash and WordPress work together. You can even see the normal WP install at this URL.
On his PressConnect page he explains the necessary process of retrieving the data from the WP database and using PHP to format it as XML. This concept isn’t exactly new, but Tim has done everyone researching the topic a favor by explaining the process in detail, creating a diagram, and posting some of the PHP code which interfaces with WP. Just another example of the Flash community giving back.
For other takes on the same idea see Arpit’s blog Code Zen and Brendan Dawes’ wp-xml file (link to the file is at the very end of the post).
Brgds,
CP
| Copy and Paste the code below | |
| Email and IM | |
| Websites | |
| Forums | |
follow:
June 19th, 2007 at 1:30 pm
Was he aware that WordPress already supports XML-RPC out of the box?
June 19th, 2007 at 2:18 pm
Forgive my ignorance, but what does this have over using the xml-rpc gateway?
June 19th, 2007 at 3:02 pm
@BobBarker: I’m not sure if Tim Wilson was aware, but I am, which is why I included a link to Arpit’s solution, which uses XML-RPC. But for really simple uses (and beginners) the simple PHP XML solution works great.
June 19th, 2007 at 3:54 pm
Tnx for the explanation John.
March 11th, 2008 at 3:13 pm
Following the fluent and sharp design, we started to shape a simplified Flash “add-on” that will render visually specific posts or pages from our host WordPress-based websites. The focus of the task was to change as little (if any) of the original structure of the original WordPress installation. In fact the only change made is a small irrelevant line of code in the RSS feed generator of WordPress. To put it in a non technical terms
http://www.nastypixel.com/prototype/wordpress-flash-front-end/
March 11th, 2008 at 4:06 pm
This is my take a Flash Blog using Pressconnect.
It was actually really easy to get wordpress firing out XML. I didnt really look at the RPC thing, Im a designer/developer and it looked a little more full-on than pressconnect.
Anyway its WIP but will go live on the root domain sometime in the near future.
http://www.n8w.co.uk/WIP/WordpressFlash/
March 29th, 2009 at 3:32 am
I have just developed an AS3 wrapper for the WordPress XML-RPC API if anyone is interested in making flash front-ends for WordPress (and doesn’t have the time to build their own!)
http://blog.absentdesign.com/?page_id=22