Tag Archive for 'wordpress'

Image/Attachment Templates for WordPress

Ever since about WordPress v2.6 or so, images you uploaded and inserted into a WordPress post were created as attachments, a sub-post type that belongs to the post or page they are attached to. These attachment posts can be given their own template, and indeed they look for one when you visit the attachment’s permalink. The K2 theme ships with image and attachment templates (named image.php and attachment.php in the theme template hierachy) and displays the file along with some meta data and, if the image is a part of a gallery (or there is more than one attachment on the post), navigation aids to move from one attachment to the next. For many sites this is ideal, but if you want to just give people the file, and avoid having to create these attachment templates, then here’s a neat trick I cooked up on a recent project.
Continue reading ‘Image/Attachment Templates for WordPress’

You got GPL in my peanut butter

It has never been a more exciting time to be a developer. Numerous open platforms exist in which to ply your trade and make a good living doing it. A platform’s user base grows as it matures, and inevitably gives birth to a thriving developer ecosystem supporting that platform, selling services into it, and when the platform is any good that ecosystem will turn into a marketplace. There has been an explosion of these ecosystems as evidenced by the success of the Apple App Store, Facebook, Twitter, Sales Force and Google Apps. In the last few years, WordPress has come into its own and has generated its own cottage industry for themes, plugins, and other add-on services.

What makes WordPress unique is that the platform itself is open sourced under the GNU General Public License v2. This license imposes itself on derivative works by insisting that they in turn be licensed under the GPLv2 if and when they are distributed to others. Generally, this poses no issues, and everyone releasing plugins and themes on the WordPress.org Extensions db has chosen to release their code under the GPL.
Continue reading ‘You got GPL in my peanut butter’

New Plugin: HTTPS Stats Fix

Today I had the pleasure of getting a new WordPress plugin cleaned up and released. This is a simple fix for users of the WordPress.com Stats plugin. WordPress.com links an external JavaScript to your site to count visitors and page views. Almost all of the Web Analytics do this. However, I found that when the WordPress site had HTTPS turned on for some of its pages, the WordPress.com Stats plugin did not change the link to be HTTPS (even though WordPress.com does support HTTPS). This plugin fixes this issue and helps you to avoid browser alerts warning users that the connection is only ‘partially encrypted’.

I plan on submitting a patch so that the original plugin just handles this out-of-the-box, but until its fixed, this plugin will fill the gap for you.

Download HTTPS Stats Fix Plugin

New Plugin: MU-Helpers

This plugin may already be obsolete by the time you read this, but I found a couple of functions that weren’t provided by the default WordPress-MU API that you may find useful in your own WordPress-MU development.

Download MU-Helpers Plugin

Continue reading ‘New Plugin: MU-Helpers’

I, for one, welcome our new WordCamp Overlords

Jane Wells posted some new guidelines for WordCamp organizers and its raised quite a kerfuffle in the community.

Before I get into this, let me offer up a bit of background on my own involvement with conferences and events of all shapes. I’ve attended multiple WordCamps, both as a speaker and a participant. I’ve also helped organize BarCampOrlando, was involved with the first DrupalCamp Florida, and attended a number of other BarCamps and unconferences all over the country. I even booked and promoted concerts in a past life.

Let’s just say I’ve got a bit more Event Planning experience than your average bear, and have half a clue about what goes into making a good event great.

Here’s what I took away from the recent guidelines and along the way I’ll offer up a few assumptions of what I think are the motivations behind them, and what my interpretation of the guidelines are. This is by no means exhaustive nor is it intended to address anyone’s concerns directly.
Continue reading ‘I, for one, welcome our new WordCamp Overlords’