New here? Read Greetings Earthling!

elWpAPI (Wordpress API) has gone Incutio XMLRPC Library (IXR) Friendly

Just had a client telling me his hosting service has updated PHP and somehow lost elWpAPI functionality on the way. I don't know what they have done but maybe disabled the XMLRPC extension.

This is a first, but , as I seek to please (sigh) :) I quickly made the code compatible with IXR. Get the library here directly. So, right now, you should be able to use this without the PHP XMLRPC Extension. I tested it and it works but you make sure to save the oldie but goldie version before you try on the new one. I might have missed stuff on the way ... it happens when I speed code.

Enjoy.

There are a few changes in the code. If the response is a fault (error) the returned result will always be null. Use $wp->wasError() or $wp->wasSuccess() to determine success status. This way it will be a lot easier to determine success state of an operation. Use if(!($response = $wp->doStuff())) return false;

You can also totally avoid PHP XMLRPC if IXR exists by changing this to TRUE: define('FORCE_IXR_XMLRPC', false);

If you got problems ... the comment form is below. And go get a fresh copy!

I Stuck It In The Wrong Hole | YouTube

This is really insane. The song is ... like WTF (who would think of sheet like this) ... the melody / voices are awesome.

View this on YouTube:HD.

PS: I'm not posting anything serious until I update the blog. Bad news is it'll be few more days, good news is I'll post some funny stuff here and the new blog will be awesome and more of my scripts will be available here.

What’s Virgin Mean?

YouTube Video gd3oYFS9g9I

Scheduled Downtime | Sunday, 20 Sep. 2009

I postponed the whole thing a few days. Had to fix some things first. It'll happen by next weekend.

I'm upgrading the blog. And I have no idea how long it will take.

As WP 2.8 came out all my plugins have been rewritten, many others have been created and they are all waiting to serve and protect :) So on Sunday ... the blog will be down for maintenance. If you need anything use the obviously present support@* email address and I'll provide quickly as always.

Have a good weekend ... less busy than mine!

elWpAPImu extends elWpAPI

Well ... it's done! Get downloading. And backup first as I never keep old versions :)

There are a few things to pay attention to. rFC & rSQL have been ejected from xmlr_rpc and were transformed in standalone plugins. Truth is these two plugins can do almost anything to Wordpress remotely. That's why I needed to pay attention to them separately.

Some new files are required to work. The xmlrpc.php must be in same folder with wpapi.php. I removed the XMLRPC communication part and made a standalone class to be used with any XMLRPC needs.

elWpAPI works as before but the new class elWpAPImu extends it with new WordpressMU functions that need rFC to work.  You can extend on it easily with any WordpressMU functions you want ... or you can ask me.

I didn't really get to test it throughly as I just wanted it out. It works [as I tested each function building it] but there is always something out there :) Let me know and, as always, I'll fix quickly.

As for the documentation and examples ... it's 2AM here :) In the next week I will start a new blog just for elWpAPI with many examples and a lot more detailed explanations including details on these new functions. But I'm pretty sure most of you will be able to use them right away.

All wpMU functions start with wpmu_*.

Have a good night ... I'll crash now!

elWpAPImu Foreplay | Managing Blogs, Not Posts :)

I had a great idea from btray77 about making the class compatible with WordpressMU. And so I did ... even if any1 else could have used rFC to achieve this themselves. But this new class elWpAPImu which extends the elWpAPI is a lot cooler. It still needs rFC enabled.

These are the new functions that I added from WordpressMU and you can do anything. Well ... anything I noticed interesting in Wordpress MU but if you need other functions wrapped up I'll gladly do it for you.

createBlog, createBlogURL, createBlogDomain, createEmptyBlog, createEmptyBlogURL, createEmptyBlogDomain, deleteBlog, dropBlog, createUser, deleteUser, addUserToBlog, addSubscriberToBlog, addContributorToBlog, addAuthorToBlog, addEditorToBlog, addAdministratorToBlog, removeUserFromBlog, isUserMemeberOfBlog, getBlogPermalink, getBlogID, getBlogIDFromURL, getBlogsOfUser, getBlogOption, addBlogOption, deleteBlogOption, updateBlogOption, setBlogPublic, enableRegistrations, usersCanRegister, getBlogAddressByID, getBlogAddressByName, getBlogAddressByDomain, isMainBlog, getBlogDetails, getUserCount, getBlogCount, getBlogList

Yet ... there's a catch.

This post is only the heads up as I'm currently documenting the code as I do with all new code [and slowly with old one]. So stay alert tomorrow as I'm releasing the updated version and I know you want it ... if you want to be a good farmer.

There's more improvements to elWpAPI. I added session caching. This way, if your code is not well optimized and you create a category 10 times, the script will just do it once, cache the response and feed it back afterwards. This will be a great improvement in speed.

PS: Sorry btray77 for not publishing it today. I write code a lot faster than I write text or specs ;) but it'll be well worth the wait.

I’ve Changed My Mind

In the past two months I've been like all over but next week I'm back in 'office' resuming business as usual. I've let this blog stay public [with registration requirement for access to certain areas of posts] as before and I'll leave it like that. I'll create a new private blog on a subdomain where people will need to get a membership to read/download stuff. Nothing will be visible to the outside world from that blog except, possibly, some post titles. Most of the stuff I was going to sell for 10-25$ will be freely available to those who become members but ... it won't fly cheap.

More on this next week ... right now I'm preparing the Wordpress membership/affiliate plugins ... and they work ;)

OMFG … Hung Like A Horse … Literally

The two judge chicks [Girls Aloud's Cheryl Cole and Danii Minogue]  look spectacular. I can understand the rise of the Anaconda.

PHP DOM getElementsByTagName() Made Case-Insensitive

Even if HTML allows case insensitive tags, PHP and it's getElementsByTagName is case-sensitive. I don't know about you but for me, this is really messed up. I think you remeber the ultimate el_dom_childrenByTagCB function I shared here.

I'm sharing now it's lighter sister: el_dom_childrenByTagName. The one it evolved from. It's the same without bells and whistles [callbacks]. And it's CASE INSENSITIVE like it's supposed to.
Read the rest of this entry »