Flashpress 0.9 Comments

I’m just finishing off the next version of FlashPress.

Apart from some bug fixes, the main change is the addition of a postComment, userLogin and userLogout methods.

Changes:

  • New postComment method
  • New getPostTems method (this depreciates getCategories)
  • New userLogin method
  • New userLogout method
  • Addition of customTax property on PostVO object, to handle custom taxonomies on post objects
  • Slight changes to TermVO object properties. One additional property added
  • Bug fixes for getPost method
  • Bug fixes for getUser methods and WpUserVO object
  • Adjustments to the search method so it searches custom post types as well as built in

Some thoughts about the postComments method.
This is currently working fine in dev. I’m curious as to how you would like this method exposed. It does write to the DB, so I’m in half a mind to wrap it within the current writeable variables. However, in doing so, you make available the rest of the writeable methods, which might not be that desirable to all users. I’m hesitant to go down this path.

So, what about a new global constant that either allows/ restricts comments? Or I can simply hook into the wordpress options and check what is set within the ‘Discussion’ panel and on a per post basis and allow / restrict comments based off that?

At the moment the method does not validate against users. Any new comments are placed into the moderation queue. A subsequent comment from a commenter that has an approved comment is automatically approved. Which is left up to the wordpress commenting mechanism.

Commenting really requires basic user management. Do you want to see this in FlashPress. Something like a login / logout method? Which I’ve added.

Commenting now hooks into the WordPress options settings, honoring either the blog wide and or individual post commenting settings.

Any other methods that you think should be in? If not, I’ll freeze the API and just clean up the classes documentation, fix bugs and roll out a version 1 release along with some examples. Happy times.

6 Neighs about “Flashpress 0.9 Comments”



yno Neighed:

Hi,
I vote hooking into the wordpress options for comments allow/restrict.

Dale Neighed:

@yno

Yep, that is how I’ve done it.

bassta Neighed:

Dale, is it possible to give more information about VOs, I can’t find anywhere (serophit got some info about it) And is it possible to transfer images directly into AS instead of loading urls taken from WP?

Dale Neighed:

VO’s are simply a means to get strong data typing for the objects returned from AMF requests. You don’t really need to use them. But it is seen as ‘best practice’. I use them primarily so I know what values I should have within each object I get back from each AMF request.

Do you mean loading the images as bytes? WordPress stores images as files within the server rather than as blobs within the database. So I think you are limited to URLS. Or are you after a file path to the image instead?

Stéphane Guigné Neighed:

Hy, I’m very interesting in using your lasted version of FlashPress, especially the new userLogin and userLog out, in a personal project !
When can we have a released ?
You already did a very usefull work and I thank you !

28inch Neighed:

What license do you use, when you release the 1.0?

Leave a neigh?