The WordPress Greet Box plugin is fairly popular among WordPress bloggers. This plugin displays a different greeting message to site visitors depending on their referrer URL. For example, when a Digg user clicks through from Digg, they will see a message reminding them to digg the post if they like it. Similarly, a visitor from StumpleUpon will be asked to thumb-up the post. Even visitors from search engines like Google or Yahoo are greeted with a welcome message and a suggestion to subscribe to the feeds.
A WordPress Greet Box
This WP plugin has been ported to Blogger and is called Blogger Greet Box. The good news is, this piece of code can be used with any HTML based website. So the Blogger Greet Box isn’t exactly a Blogger plugin, it’s a universal one.
The Blogger Greet Box
The Blogger Greet Box has the following features:
- Show a different greeting message to your visitor depending on the referrer URL.
- Beautiful set of icons.
- Greeting message can be inserted any where but better to use on the top.
- Shows a default greeting message if the user hits the URL directly or comes from a referrer which is not specified.
- Ability to remove the message when the user navigates within the same site so we do not keep nagging them with greeting messages.
- Currently the following referrers are installed.
How to install the plugin
Blogspot users can use any free hosting site available. There are plenty of them. Do not use GooglePages as they are shutting down from June 2009.
Copy the following code and paste it on your website/blogger template wherever you want the code to appear:
<div id=”mainDisplayDiv” style=”background:#F8F8FF;border:1px solid #B6AFA9;display:none”>
// Give your feed url here
var feedURL = “YOUR BLOG FEED URL GOES HERE“;
var dynamicHTMLText = displayRequiredText(feedURL);
//List your domains where you don’t want to show up. Suppose
//when people navigate within your site and you don’t want to
// show up. This is , separated
var myRestrictedDomainList = “YOUR DOMAIN NAME HERE“;
Enter your blog’s feed URL and domain name (i.e. the root URL of your blog) at the indicated locations.
Now test the Greet Box by visiting your blog from Google/Yahoo/Digg and StumbleUpon.
[via Classic Tutorials]
Update: New plugin with more social media support is available
For updated version visit http://classictutorials.com/2009/11/21/greet-box-universal-blogger-v3-0/
I know anonymous
I've got one on my blog (http://tarunscreativespace.blogspot.com)