Software, Development, and WordPress

Break a Rule – An Application Built on WordPress

If you’ve read any of my past posts, you know that I’m particularly interested in using WordPress as a foundation for writing web applications.

I’ve discussed this extensively in the following articles:

A few weeks ago, I asked for some of you to submit applications that you’ve seen built with WordPress. Today, I wanted to begin sharing some of what you guys submitted.

Break a Rule

Break a Rule

Curtis McHale contacted me about Break a Rule including which, in his words, is:

A company collaboration site around the site’s authors business topics. We have companies and teams powered by custom post types, a few types of collaboration areas for users. Documents uploads and sharing.

There is a points system built for good comments based off of Cubepoints but then extended. Moving in to adding moderation to users from the frontend so that the site owner can offload some of the general tasks.

Curtis was one of the main developers on the site so be sure to check it out.

For questions and comments about the application, feel free to leave ’em in the comments.

Perhaps Curtis will chime in on a few of technical challenges, the approach, and what all went into building this particular application on WordPress.

1 Comment

  1. Curtis McHale

    Thanks for the feature. I should probably also point out, if I missed it in my email, that Vanessa Chu of DesignFaire has been collaborating on the project and doing most of the UI design and workflow with me.

    The hardest part so far was actually in the last dev cycle. We now have a ‘personal comment area’ for each user. We have also converted to a new dashboard style that loads things via Ajax. To make subsequent clicks load faster, we were not calling the dashboard items a second time. This left me with multiple comment forms on the same page. Yes all but the currently viewed one was hidden, but they were still in the HTML.

    You can mark a comment with different meta attributes, which change if you’re the owner of the comment area, or if you’re commenting on someone else’s. When you hit reply on a comment, the WordPress comment reply JS was not always grabbing the right form and would leave the empty div in the wrong spot.

    This resulted in getting the meta from your own comment area on comments that you didn’t own. It could also result in the comment form disappearing when you cancelled reply, since it moved back to the empty div in an area you couldn’t see.

    I was not quite able to crack the nut of the JS, so we changed the cache model to clear things a bit more aggressively, meaning we don’t have many comment from on the DOM at the same time.

    I have a few posts planned to show how I did things which will go up at WP Theme Tutorial

Leave a Reply

© 2020 Tom McFarlin

Theme by Anders NorenUp ↑