Posted by KaiseRCrazY on 27th December 2009

Say Hello to returning visitors!

We can use cookies for show some custom messages to our visitor. But this cookies are comment_cookie. Also show custom message to normal visitors. If you want to show this custom messages read this article. Let’s Begin…

Here is the code;

<?php if(isset($_COOKIE['comment_author_'.COOKIEHASH])) {
	$lastCommenter = $_COOKIE['comment_author_'.COOKIEHASH];

	echo "Welcome Back ". $lastCommenter ."!";

	} else {

	echo "Welcome, Guest!";
} ?>

That’s All. Have a nice day!

  • del.icio.us
  • Digg
  • Facebook
  • FriendFeed
  • Reddit
  • StumbleUpon
  • Technorati
  • PDF
  • Print

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

    1 Response

  1. [...] This post was Twitted by wpfunc [...]

Post your comments