Blog

VZ Members Fieldtype

November 1, 2009 at 8:47pm.

0 comments.

VZ Members is my second fieldtype for Brandon Kelly’s FieldFrame extension. I needed a way to select any number of site members to associate with an entry. In my case I am doing this to allow entry creators to set permissions on an entry-by-entry basis. You could also use it to link to the profiles of people mentioned in an article, or inside a Matrix field to create a list of events, each with a date, title, and the personnel who will be in attendance.

All New VZ Url fieldtype

October 25, 2009 at 10:55am.

2 comments.

This morning I pushed version 1.1 of my VZ Url fieldtype for Brandon Kelly’s FieldFrame extension up to GitHub. The code for this version completely rewritten to (hopefully!) eliminate some issues with ajax calls returning in the wrong order, leading to false negatives. While I was at it, I made the errors display in a pop-up box, allowing for more verbose errors without breaking the layout.

Securing your downloads with mod_xsendfile

October 19, 2009 at 9:23pm.

0 comments.

In many case you have files available through your webapp that should only be accessible to certain people. You don’t want to rely on security through obscurity (throwing them all in a public folder, but only showing the links to certain visitors). Although that will deter casual users from getting ahold of the forbidden files, once someone has the link they could post it anywhere and your security is blown. What you want to do is to squirrel the files away outside of your publicly-accessible folder and then give them out as needed once a user is validated by whatever authentication method you are using. Apache’s mod_xsendfile module (inspired by lighthttpd’s X-Sendfile )is the tool for this job.

Read all of Securing your downloads with mod_xsendfile

VZ Url extension

March 11, 2009 at 5:09pm.

36 comments.

A URL fieldtype for Expression Engine with ajax url validation. When the user leaves the url field, it will ping the url they entered and display an error message if it doesn’t find a valid webpage there.

Read all of VZ Url extension

listFilter jQuery plugin

February 13, 2009 at 3:59pm.

5 comments.

A project I am working on needed a way to filter a long list of staff members. We needed to be able to filter by several different criteria, and several different interfaces (text search, dropdown lists). And it needed to happen in-place—no page reloads. Thus my listFilter jQuery plugin was born.

New Business Cards

January 2, 2009 at 3:32pm.

2 comments.

I finally got around to having new business cards printed (actually, I got them about a month ago, but I am just getting around to writing about them). Last summer I gave up my old New Orleans-local phone number when I bought my iPhone and had been procrastinating on ordering cards with the new number.

Roadblock extension

October 14, 2008 at 3:06pm.

1 comments.

Roadblock is an extension for Expression Engine that looks every time someone logs in to see if they have been shown a message yet, and how long ago. If they have not yet seen the roadblock, or if it was over a specified length of time ago, the roadblock will be displayed.

Read all of Roadblock extension

Are people really convinced by this?

August 1, 2008 at 3:51pm.

0 comments.

This election is getting more and more ridiculous.

Elevated initial caps with jQuery

July 2, 2008 at 2:46pm.

2 comments.

For a project I am currently working on I wanted to use elevated initial capitals to set off each block of text. The obvious way to do this would have been with the :first-letter pseudo-element, which is what I initially did. This worked great in Safari, but in Internet Explorer, I got a series of bugs and idiosyncrasies that eventually became more trouble than they were worth. Line spacing was alternately too loose or too tight, depending on what I did, and in IE6 it interacted with the IE7-js script to make all but the first paragraph tiny.

Photoblog updates

May 29, 2008 at 8:18pm.

0 comments.

I finally had time today to migrate the “Photography” section of my website over to the Expression Engine system that I am using for the rest of the site. So now everything is under one roof, with the same interface for uploading photos as for writing blog posts.

Return to Durham

May 28, 2008 at 10:51am.

0 comments.

I am going to be back in Durham from June 3rd through the 14th. To anyone who will be there, let’s get together!

Inline image replacement

May 22, 2008 at 4:56pm.

8 comments.

You may have noticed the very last line on this website, crediting the cms and host I am using. It turned out to be much more difficult to make that effect work than I was expecting, so I thought I would explain my code for anyone else who needs to do something similar.

Page:  1 2 >