"

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

", 'return_visitor_message' => '', 'message_location' => 'before_post', 'include_pages' => 'yes', 'repetition' => '5', 'wwsgd_exclude_ids' => '', ); add_option('wwsgd_settings', $defaults, 'Options for What Would Seth Godin Do'); return get_option('wwsgd_settings'); } function wwsgd_options_page() { if ( function_exists('add_options_page') ) { add_options_page('What Would Seth Godin Do', 'WWSGD', 8, basename(__FILE__), 'wwsgd_options_subpanel'); } } function wwsgd_options_subpanel() { global $wwsgd_settings; if ( isset($_POST['wwsgd_save_settings']) ) { check_admin_referer('wwsgd_update_options'); $wwsgd_settings['new_visitor_message'] = stripslashes($_POST['wwsgd_new_visitor_message']); $wwsgd_settings['return_visitor_message'] = stripslashes($_POST['wwsgd_return_visitor_message']); $wwsgd_settings['message_location'] = stripslashes($_POST['wwsgd_message_location']); $wwsgd_settings['include_pages'] = stripslashes($_POST['wwsgd_message_include_pages']); $wwsgd_settings['repetition'] = stripslashes($_POST['wwsgd_repetition']); $wwsgd_settings['wwsgd_exclude_ids'] = stripslashes($_POST['wwsgd_exclude_ids']); update_option('wwsgd_settings', $wwsgd_settings); } if (isset($_POST['wwsgd_reset_settings']) ) { check_admin_referer('wwsgd_reset_options'); delete_option('wwsgd_settings'); $wwsgd_settings = wwsgd_initialize_and_get_settings(); } ?>

What Would Seth Godin Do

"One opportunity that's underused is the idea of using cookies to treat returning visitors differently than newbies…." - Seth Godin, August 17, 2006

Show the above message the first times the user visits your blog. Then display the message below.

/> Before Post /> After Post /> Only where I use the <?php wwsgd_the_message(); ?>template tag
/> On Posts and Pages /> On Posts Only

Reset Settings

This may clear up some issues.

I ♥ WWSGD

If you love this plugin, please make a small donation to the Acumen Fund, a charity with which Seth Godin works. In the "Referred by" field, enter "Seth Godin".

For questions, bug reports, or other feedback about this plugin, please contact Richard K. Miller.

Please rate this plugin on WordPress.org.


Additional Reading

Where do we begin? by Seth Godin

How Ads Really Work: Superfans and Noobs by Matthew Haughey

ID, $excluded_ids); if ( $wwsgd_messagedisplayed || $this_page_is_excluded || $excluding_pages || $using_template_tag_only || $GLOBALS['wwsgd_displaying_excerpt'] || is_feed() ) { return $content; } else { if ( $wwsgd_settings['message_location'] == 'before_post' ) { $wwsgd_messagedisplayed = true; return wwsgd_get_the_message() . $content; } elseif ( $wwsgd_settings['message_location'] == 'after_post' ) { $wwsgd_messagedisplayed = true; return $content . wwsgd_get_the_message(); } } } function wwsgd_filter_excerpt($content = '') { $GLOBALS['wwsgd_displaying_excerpt'] = true; return $content; } function wwsgd_get_the_message() { global $wwsgd_settings; if ( $_COOKIE['wwsgd_visits'] < $wwsgd_settings['repetition'] || 0 == $wwsgd_settings['repetition'] ) { return ''; } else { return $wwsgd_settings['return_visitor_message']; } } function wwsgd_the_message() { echo wwsgd_get_the_message(); } function wwsgd_js() { global $wwsgd_settings; ?>