Archive for the ‘Code’ Category

List of U.S. States for a CForms II Select Box

Friday, July 24th, 2009

Here’s a list of U.S. States in a format that you can copy and paste into your Cforms II form:

#Alabama#Alaska#American Samoa#Arizona#Arkansas#California#Colorado#Connecticut#Delaware#District of Columbia#Florida#Georgia#Guam#Hawaii#Idaho#Illinois#Indiana#Iowa#Kansas#Kentucky#Louisiana#Maine#Maryland#Massachusetts#Michigan#Minnesota#Mississippi#Missouri#Montana#Nebraska#Nevada#New Hampshire#New Jersey#New Mexico#New York#North Carolina#North Dakota#Northern Marianas Islands#Ohio#Oklahoma#Oregon#Pennsylvania#Puerto Rico#Rhode Island#South Carolina#South Dakota#Tennessee#Texas#Utah#Vermont#Virginia#Virgin Islands#Washington#West Virginia#Wisconsin#Wyoming

And here is the entire string, including “State” as a label:

State#Alabama#Alaska#American Samoa#Arizona#Arkansas#California#Colorado#Connecticut#Delaware#District of Columbia#Florida#Georgia#Guam#Hawaii#Idaho#Illinois#Indiana#Iowa#Kansas#Kentucky#Louisiana#Maine#Maryland#Massachusetts#Michigan#Minnesota#Mississippi#Missouri#Montana#Nebraska#Nevada#New Hampshire#New Jersey#New Mexico#New York#North Carolina#North Dakota#Northern Marianas Islands#Ohio#Oklahoma#Oregon#Pennsylvania#Puerto Rico#Rhode Island#South Carolina#South Dakota#Tennessee#Texas#Utah#Vermont#Virginia#Virgin Islands#Washington#West Virginia#Wisconsin#Wyoming

Cforms II is the best Wordpress Plugin out there for building forms – visit their site for more information.

Testing HTML Emails

Wednesday, March 11th, 2009

I have been designing a lot of HTML email newsletters, flyers, reports, and order summaries lately and testing is obviously a must, because sending structured HTML and images in an email can be quite tricky. If you need to test a HTML email, Campaign Monitor is the best free tool I’ve found.

Anyone who designs HTML for emails on a constant basis should set up a testing server but for someone like me who only has to create a couple HTML emails, max per web design project, I found Campaign Monitor to be the best free option, hands down. 

They allow as many free test emails as you want – I just set up a free account and within seconds I was putting the email together in an incredibly user-friendly interface (great work, guys). I really enjoy this tool – I can’t say much about their email campaign management features, but I am very impressed with the testing interface so I’m sure it’s great.

They also allow you to test the email in a large selection of email clients (I only really cared about gmail and Outlook but they have pretty much everything), which is obviously a must for large-scale email campaigns.

The Problem With Coding and Sending HTML Emails

You can’t send standards-compliant HTML with a nice stylesheet to structure the layout, you have to use tables, spans, and (sad but true) the font tag.

And of course, the main reason you want to send a HTML email (flyer, newsletter, or whatever) is so that you can send in-line pictures in that email. The problem is, you can’t simply send the images as attachments, you have to actually install them on your server (same server you’re mailing from) and link to them with absolute paths – that’s where testing them becomes extremely inconvenient.

Using the META Robots Tag

Thursday, January 22nd, 2009

Tutorial: How to use the Meta Robots tag — code examples, meanings, and all the major REP directives.

I’ve seen a whole lot of websites lately that are wasting space (and the time it took to write it) by implementing the Meta Robots tag like this:

  1. <meta name="robots" content="all, index, follow" />

If you want search engine bots to crawl and index your website, then just leave it alone. By default, search engines will crawl, index, and archive every page on your website that they can find by following links. You also don’t have to say “all” — every bot that obeys the Robots Meta tag will obey it by default.

So not only is that example pointless because that is the default, it is repeating the same command twice!

(more…)