Ubuntu / Linux news and application reviews.

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. This Wordpress plugin has been ported to Blogger (but it can be used on any HTML website actually). 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. The same for people coming from Google, Yahoo and so on.


1)Show a different greeting message to your visitor depending on the referrer URL.
2)Beautiful set of icons.
3)Greeting message can be inserted any where but better to use on the top as shown in classic
4)Shows a default greeting message if the user hits the URL directly or comes from a referer
which is not specified.
5)Ability to remove the message when the user navigates within the same site so we do not keep
nagging them with greeting messages.
6)Currently the following referrers are installed. I will update the list and the change will
automatically be reflected with everyone using this plugin. So its totally automatic and you dont
need to do code changes and staffs..
  1. Google
  2. Yahoo
  3. Digg
  4. Stumbleupon (26thApril,2k9)

Installation Steps:
Just copy the code and paste where you want it to show up (usually above the posts). Just follow two configuration.

1) Search for "Give your feed url here" and replace my fed url with yours.
2) Search for "List your domains where you dont" and replace it with your domain name.
<script src="http://kaushik259106.googlepages.com/TextToBeDisplayedDiv.js" type="text/javascript">
<div id="mainDisplayDiv" style="background:#F8F8FF;border:1px solid #B6AFA9;display:none">
<div id="dynamicContentDisplayed">
<script type="text/javascript">
// Give your feed url here
var feedURL = "http://feeds2.feedburner.com/blogspot/ct";
var dynamicHTMLText = displayRequiredText(feedURL);
= dynamicHTMLText;
<script src="http://kaushik259106.googlepages.com/HideShowDiv.js" type="text/javascript">
<script type="text/javascript">
//List your domains where you dont want to show up. Suppose
//when people navigate within your site and you dont want to
// show up. This is , seperated
var myRestrictedDomainList = "classictutorials.blogspot";

I suggest you save the above .js files to another host as Google pages will be closed soon.

You can see this script in action on it's author page (though I might implement it soon too).

[via instantfundas.com]