Oh, as an Aside: INAP 3.0 finally revealed. (From the 2nd of November)

Ladies and Gentlemen, boys and girls of all ages, and all the rest of you who dislike being labeled. I now present to you, in living color, the one and only AJAX’d Wordpress.

AJAX’d Wordpress or aWP is a complete rewrite of INAP that will allow features to be added and modified very quickly. This plugin is truly modular and unlike INAP, is completely customizable. While not available for download just yet, it has now gone live on this website. For those of you that are technically inclined, you will quickly be able to see the changes by viewing the source, Javascript and AJAX responses, but for the rest, you will be able to see the smoother functionality and the more attractive behavior.

Documentation has to be written and expanded and a few features still need to be improved, but we are looking at a RC release in a few weeks.

Continue reading. »

Better Wordpress threaded comments

Here is something slightly different, I’m trying to get into the habit of writing out my notes and detailed changes in INAP 3.0 for my own use, so I thought they may help others in the process. The following walk through details the process I took to create a method to thread comments for Wordpress. Most of the project specific code has been removed to keep the code from being cluttered.

The threading structure for the plugin needed to be able to handle an unlimited number of children in an order, and the ability to “flatten” the children after a certain user-specified depth (shown in the code examples as $max_depth). The threading structure needed to be rewritten because in short, the old version (seen here) worked by individually querying the database for each comment to look for children, utilized globals to pass information from one section to another, used a complex method of if/elses to determine what functions should do, and was very slow.

Continue reading. »