Linux 软件免费装

Recent Love - A List of Recent Comments

开发者 RonR
更新时间 2010年3月28日 09:54
捐献地址: 去捐款
PHP版本: 1.5 及以上
WordPress版本: 2.9.2

标签

comments recent comments

下载

0.5 0.5c

详情介绍:

Displays a list (typically, in your sidebar) of your visitors' recent comments. By default, shows the latest comment from each of the last five commented-on posts. You control: See "Installation" for easy setup instructions. History A few months ago, I wanted to display a list of recent comments in my blog's sidebar. After searching through the countless plugins which return lists of comments, I finally decided on Scott Reilly's Top/Recent Commenters plug-in. Unfortunately, I had to tweak Scott's code to get it to work the way I wanted. One tweak led to another (you know how it is) until I finally just scrapped the original code and rolled my own. (You can see it in action on my blog's front page.) What It Does Adds a single template function: rr_recent_comments ( $num_recent_posts = 5, $before = '
  • ', $after = '
  • ' ) The function rr_recent_comments() returns a list of recent comments. When invoked with no parameters, it returns a list containing the latest comment from each of the most recent 5 posts. Only one comment (the most recent one) per post is listed. By default, any comments made by the author of the post are not included in the list. (This behaviour can be configurably modified.) Long post titles are truncated to a length which you can configure. Trackbacks and pingbacks are not included in the list by default. You can exlcude certain posters, based on various criteria (author email, author name, etc.). This is helpful, for example, to exclude yourself from the list. You can customize your list two ways: tag parameters and global config options. Parameters The function rr_recent_comments() takes three parameters, all of which are optional.
    1. $num_recent_posts\ The [maximum] number of comments to display.\ Default: 5
    2. $before\ The text to display before each comment.\ Default: '<li>'
    3. $after\ The text to display after each comment.\ Default: '</li>'
    Configuration Options The behaviour of rr_recent_comments() can be customized on a global basis by editing some values in the plugin file, rr_recent_comments.php. With the possible exception of $max_title_length, most installations will probably not need to futz with these, but they're there if you want 'em. Revision History 0.1 (May 1, 2005): Initial revision. 0.2 (October 30, 2005): Rewrite and add new features. 0.3 (November 11, 2005): Clean up for publication. 0.4 (?) 0.5 (April 4, 2007): Add $link_to_commenters_websites option.

    安装:

    How to Install It
    1. Download the plugin file, and put it file in your WordPress plugin directory, wp-content/plugins. (Make sure to name it rr_recent_love.php.
    2. Enable the plugin in the WordPress Plugin Admin panel.
    How to Use It Just insert the following call into your theme files, wherever you want the comment list to appear (e.g., sidebar.php): <?php echo rr_recent_comments(); ?> Just insert the following call into your theme files, wherever you want the comment list to appear (e.g., sidebar.php): ` `