Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 375 of 427)

http://www.youtube.com/watch?v=taQOIbG875g&feature=youtu.be

I usually don’t share videos, links, or other things like that unless I find them extremely useful or very funny. Earlier this week, @dewde shared this video with me – it’s a talk by Gary Bernhardt entitled “Wat.”

For those of you who have done any programming with dynamic languages, especially Ruby or JavaScript (and PHP developers will likely have hit similar snags), you’ll likely find yourself laughing out loud.

Continue reading

Redactor Image Uploads For WordPress

For the past few weeks, I’ve been working on a web application that’s being built on top of WordPress.

One of the requirements dictated the users should be able to have rich editing from the front end after being logged in. This includes being able to do the usual bold, italic, strikes, and link, as well as images and videos.

Redactor.js is a fantastic jQuery plugin that brings front-end editing to any website or web application, but implementing Redactor JS image upload and WordPress proved to be a bit of a challenge specifically because I wanted to keep all images organized in the standard wp-content/uploads directory.

So, while working on said project, I also generalized the script a bit and created Redactor Image Upload For WordPress.

It’s a short, simple title, right? Right-ish.

Continue reading

Programmatically Resize Images in WordPress

If you're experienced with programmatically uploading files, you may wish to skip down to the code.

I’m finishing up an application that’s built on WordPress that has required that I programmatically resize images. When it comes to building themes or plugins, it’s relatively easy to specify add_image_size and then let the user interface and core application do it’s thing.

But in my case, the end user will have no idea that the actual application is built on WordPress and the image resizing function needed to be a little more tailored for specific templates (or views)

So rather than use the typical WordPress facilities for uploading and resizing images, here’s how to programmatically resize images in WordPress.

Continue reading

Version Numbers: What’s The Point?

One of the things that my team and I have consistently discussed when working on Standard is how to actually maintain or version numbers. It doesn’t stop there, of course – even in my own work, I give considerable thought (how lame does that sound?) as to how I should track the version numbers of my projects.

Thought I tend to follow the schema of “Major Version, Minor Version, Hot Fix” (i.e., 3.0.2), I’m unsatisfied. And to put it bluntly, I’m discontent with the whole thing version numbering issue: They’re inconsistent, they aren’t user-friendly, and I’m not even sure what we should do about it.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑