Plugin: Welcome Back Your Readers

June 21st, 2007 at 12:20 pm

Have you ever wanted to welcome your readers back to your blog by displaying a friendly message? It’s actually possible and I learnt this tip from Andrea Micheloni.

It works if the reader is logged in or he had left comments before. WordPress actually saves his name in the cookies and the plugin takes advantage of this fact.

I’ve decided to make a plugin similar to Andrea’s and added a console to create the ‘welcome back’ template. The plugin can work as a standard plugin and/or as a widget. It’s up to you.

The console has 2 text inputs.

  1. Greetings

    You’ll need to insert the greetings, like ‘Nice to see you again’. This text is also used in the widget.

  2. Template

    The template has 2 variables - #GREETINGS# and #READER#. #GREETINGS# take its values from the text you set above, and #READER# is, well, the name of the current reader, if it exists.

To use the plugin (not the widget), just insert the following into your WordPress template:

<?php if(function_exists('ac_welcome_back_reader')) {
             ac_welcome_back_reader();
         }
?>

Download Welcome Back Reader here. (Version 1.0, 21 June 2007)

WP Text Ads Like this post? Buy an ad and drive visitors to your site

About the author

I'm Alex Choo and I live in sunny Singapore. I'm also the developer of WP Text Ads, a WordPress plugin that lets bloggers sell ads directly to advertisers so that they pay 0% in commissions and earn 100% in profits.

Feel free to drop me a note anytime you wish. You should also subscribe to the low volume email announcement list for WP Text Ads below.

Email address:

Trackbacks & Pingbacks 1

  1. From Welcome back your readers | Tekjuice.com on 03 Aug 2007 at 9:55 am

    […] Some quick code to welcome returning users to your wordpress blog. Link […]

Post a Comment

Your email is never published nor shared. Required fields are marked *