Monthly Archive for June, 2011

links for 2011-06-30


Is it really free?

I’ve always loved this cartoon:

The caption says “It’s free, but they sell your information.”

links for 2011-06-29


links for 2011-06-24


links for 2011-06-23


links for 2011-06-22


CAN-SPAM allows P.O. Boxes

I run a marketing company today… and it surprises me how many times I get questions from our partners about CAN-SPAM.

It’s 2011. The law was passed in December 2003. The FTC released “new rules” to clarify parts of the regulation in 2008. Lawyers that specialize in marketing should know the law… but sadly many of them still don’t know it that well… (can you say Google?)

So, just to set the record straight: CAN-SPAM does allow a marketer to use a P.O. Box in the unsubscribe footer in an email marketing message.

Don’t believe me? See what the FTC has to say about it here. See #4. Couldn’t be more clear.

Disclaimer: I know CAN-SPAM well, but I’m not a lawyer, and I’m sure not your lawyer. Consult with them before you start marketing via email.

links for 2011-06-21


links for 2011-06-20


links for 2011-06-18


links for 2011-06-17


links for 2011-06-16


links for 2011-06-15


links for 2011-06-14


links for 2011-06-13


links for 2011-06-11


links for 2011-06-10


links for 2011-06-09


links for 2011-06-08


Amazing Pistol with Birdies sold by Christies

This pair of singing-bird pistols made of gold and inlaid with gems was sold for $5.8 Million recently.

Pretty amazing that they were made in 1820. Wow.

links for 2011-06-07


links for 2011-06-06


links for 2011-06-04


links for 2011-06-03


links for 2011-06-02


Get rid of comments on WordPress “pages”

I have a “Contact Us” page on and a “Share a Story” page, and in the default WordPress setups, Pages include the ability to post comments, just like a regular Post does. But that doesn’t make any sense on a “Contact Us” or “Share a Story” page, where users are already being presented forms to be filled out, and I was worried about users getting confused, so, I wanted to remove the comments section from those pages completely, if I could.

The solution is:

1. Create a custom page template.
2. Remove the “comments” code from that template.
3. Use the new Custom template for the pages you don’t want comments on.

Hopefully the following is a decent enough explanation, if you want to do the same yourself:

  1. Copy the “page.php” file in your theme directory.
  2. Call the new copy of “page.php” “custompage.php” or something similar.
  3. Open “custompage.php” in your text editor, and replace it’s contents with this:

    Template Name: CustomPage

    Page template, without comments at the bottom.

    get_header(); ?>

    <div id="container">
    <div id="content" role="main">

    <?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>

    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php if ( is_front_page() ) { ?>
    <h2 class="entry-title"><?php the_title(); ?></h2>
    <?php } else { ?>
    <h1 class="entry-title"><?php the_title(); ?></h1>
    <?php } ?>

    <div class="entry-content">
    <?php the_content(); ?>
    <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?>
    <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="edit-link">', '</span>' ); ?>
    </div><!-- .entry-content -->
    </div><!-- #post-## -->

    <?php endwhile; // end of the loop. ?>

    </div><!-- #content -->
    </div><!-- #container -->

    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    *Note: all the above really does is duplicate the template called “loop-page.php” removing this code:
    <?php comments_template( '', true ); ?>
    **Note: you can also just download the above code from here, if you’d like to see it a little more cleanly.

  4. Save the “custompage.php” file.
  5. Open the page you want the comments removed from in the WordPress Admin UI.
  6. On the right under “Page Attributes” change the template from “Default Template” to “CustomPage”:
    Wordpress Page Attributes Admin UI - Select CustomPage
  7. Click “Update” to save the new settings.
  8. Check your new pages in a browser, to make sure everything works the way you want it (specifically that there are no longer “comments” at the bottom of your commentless pages!

If you want to read up more on creating your own page templates for WordPress, check the codex.

Oh, and sidebar here: I’m using TDO Mini Forms to power the “Share a Story” page on, because I wanted a quick and easy way for users to submit entries, that will work with the publishing workflow that’s naturally included with WordPress, without making a user “register” or anything… seems to be working so far…

links for 2011-06-01