This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WP Last Visit README

Description

version 2.2, 2004-07-05

This hack will show an image next to post and comments that are new since someone’s last visit to your site.

Step 1.

Put the wp-last-visit.php file in your wp-content/plugins/ directory.

Step 2.

Enable the plugin in your options.

Click on ‘Plugins’ in the admin area, then ‘Activate’ next to the WP Grins row.

Step 3.

Add this line within the tags of your index.php and wp-comments-popup.php pages.

Step 4.

Add some code to show the number of new posts and comments since your last visit

slvBanner();

Step 5.

Add some code to show the new indicator next to each post (index.php)

slvShowNewIndicator(post_date)); ?>);

Step 6.

Add some code to show the new indicator next to each comment (wp-comments.php and wp-comments-popup.php)

slvShowNewIndicator(comment_date)); ?>);

Step 7.

To show if there are new comments on a post from the link to the comments for that post, replace the comments_popup_link() in the posts loop with ak_comments_popup_link()

Step 8.

Put the ‘ak-img’ directory in your blog root, you can set the indicator you want (or use a text indicator) by modifying this code in wp-last-visit.php

// var slvIndicator = ‘New’;
var slvIndicator = ‘<img src="/ak-img/new.gif” alt=”New” title=”New since your last visit.” />’;

remove the “//” from the first line and put it on the second line to use the text indicator.

That should be it! Let me know how it goes…

–Alex

http://www.alexking.org/

Contributors & Developers

“WP Last Visit README” is open source software. The following people have contributed to this plugin.