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.
-
Greetings
You’ll need to insert the greetings, like ‘Nice to see you again’. This text is also used in the widget.
-
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)
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.


Comments 3
waw, it’s nice post. thank for your info
Posted 01 May 2009 at 10:42 pm ¶+1 к предыдущему комменту
Posted 19 May 2009 at 7:18 am ¶У меня что-то сегодня с утра Ваш блог не работал. У всех все нормально было?
Posted 13 Jun 2009 at 11:49 am ¶Trackbacks & Pingbacks 1
[…] Some quick code to welcome returning users to your wordpress blog. Link […]
Post a Comment