Flash Press

http://www.blog.noponies.com/flash-press/

Flash Press is simply an AMFPHP and Zend_AMF service for connecting to Wordpress.

The purpose of the project is to allow for using Wordpress as a CMS for Flash websites etc. In its current form, FlashPress leverages the Wordpress API for all method calls, acting as a proxy for the Wordpress methods themselves. It also supports a limited subset of write methods to the Wordpress Database, as well as a search method.

Source Files
You can view an example of it at work here: http://www.noponies.com/dev/cloud/
Which is using a hacked version of the WP-Cumulus Wordpress plugin, from here: http://www.roytanck.com/tag-cloud/. Instead of using a PHP method to create XML, I’m just using AMFPHP to call a getTagCloud method, and using the data in a similar fashion to how the WP-Cumulus Flash file works. Clicking on either a category (white text) or a tag (grey text) calls another method that pulls the various posts that are filed under that particular category or tag. Pretty simple stuff.

Version History – Current version 0.6
0.1 – AMFPHP support
0.2 – Zend_AMF support
0.3 – Bug Fixes
0.4 – Bug fixes and code refactoring
0.5 – Code refactoring
0.6 – Complete rewrite of php and actionscript code, moved to use Wordpress API
0.7 – Addition of ‘getPostFeatured’ method, to return post thumbnail images

Latest Source Files
Flash Press 0.7 (102)

Requirements
Wordpress 2.7+ (untested on versions below 2.7)
Either or;
AMFPHP 1.9
Zend AMF 1.75

Let me know if there are bugs etc. I’m not really a PHP guy, nor a MYSQL guy, so I’m definitely interested in hearing about ways to improve things. This page is simply to stop the project getting buried within all the other posts on this blog.

Other Related Projects
Amfphp WordPress Integration (AWI)
FlexPress
FlexDb

9 Neighs about “Flash Press”



Flash Press by NoPonies : CODEXPERIMENTS Neighed:

[...] It’s still in development but a nice project they are working on, so have a look. [...]

Antony Kitson Neighed:

Hey Dale,

Could you use this for flash to read blog posts? I am looking to feed a wordpress sites posts into flash. Is this possible?

sean Neighed:

Hey There,
Thanks and Great work with this. I’m looking forward to using this to read/write to word press. Any idea when the service will support the write feature?

Cheers!

Dale Neighed:

I’m in two minds about adding in write support, as wordpress itself is such a nice cms. I guess it makes sense for flash to be able to write the odd thing to the wp db, but I’m not sure if I want to replicate wordpress’s write features.

sean Neighed:

i hear ya. Maybe just a few of them? like for posting? If you need a little more motivation let me know. Working on something right now and I can get you a little something for your troubles…

Sean Neighed:

Hey can you give me a holler? I’d like to discuss further dev on the framework…sgreen[at]wishb.com

Nuno Ribeiro Neighed:

Hi Dale,

I have added a new function that might be useful (is very simple)

/**
* Get media items full data by post_parent. Returns a list of WpMediaVO objects.
* @param integer $postParentID – Representing the post_parent of the media item you wish to access.
* @return WpMediaVO
*/
public function getMediaByPostParent($postParentID) {
$sql = “SELECT * FROM wp_posts WHERE post_type = ‘attachment’ AND post_parent =” .$postParentID;
$p = $this->parseMediaData($sql);
return $p;
}

Congrats for FlashPress.

Dale Neighed:

Hi Nuno,

Cheers for the snippet. What version of FlashPress are you using? Version 0.6 has a similar method – getPostAttachments which will return the attachments for a post, by calling getChildren() with the passed in PostID.

Aurélien CHAPPARD » Découvrez Flash-Press de Noponies Neighed:

[...] Flash-Press de Noponies est un ensemble de services AMFPHP écris pour WordPress. Ainsi WordPress peut devenir facilement le back-office d’un site full-flash Je ne l’ai pas testé avec la version 3 de WordPress mais je ne crois pas que la structure de la base de données ait tant changé que ça. Au pire quelques ajustements à faire… [...]

Leave a neigh?