Linux 软件免费装

Comment Analysis

开发者 lambic
更新时间 2008年9月20日 02:29
PHP版本: 2.0.2 及以上
WordPress版本: 2.6

标签

comments statistics analysis

下载

2.2 2.3 2.4 2.5 2.6 2.6.1 2.6.2

详情介绍:

Contains functions to show comment count, pingback count, trackback count, top commentors, most recent comments, and more.

安装:

  1. Download the appropriate version
  2. Make sure the file is called comment_analysis.php
  3. Put it into your /wp-content/plugins/ directory.
  4. Activate the plugin from your WordPress admin "Plugins" page.
  5. Make use of the functions in your template (see examples below).

常见问题:

What functions are available?

This plugin is now widgetized, so you can use the widget, or use these functions: ca_comment_count() Show total count of comments for your blog, excluding pingbacks and trackbacks. ca_pingback_count() Show total count of pingbacks for your blog. ca_trackback_count() Show total count of trackbacks for your blog. ca_spam_count() Show total count of comments marked as spam. (Version 2.1 only) ca_comment_last ($format=.) Show date of last comment. The optional parameter allows you to format the date using standard date formatting. ca_pingback_last ($format=.) Show date of last pingback. The optional parameter allows you to format the date using standard date formatting. ca_trackback_last ($format=.) Show date of last trackback. The optional parameter allows you to format the date using standard date formatting. ca_commentor_latest ($count=10, $exclude='' $before='

  • ', $after='
  • ') Shows latest $count commentors, with links to their websites if provided. $exclude is a comma separated list of commentors not to include in the list. $before and $after define the tags which will be output at the start and end of each line. ca_commentor_most ($count=10, $exclude='', $before='
  • ', $after='
  • ', $before_count='(', $after_count=')') Show the top $count commentors, with links. $exclude is a comma separated list of commentors not to include in the list. $before and $after define the tags which will be output at the start and end of each line. ca_comment_latest ($count=10, $length=60, $before='
  • ', $after='
  • ', $linktext='Go') Shows the first $length chars of the latest $count comments. $before and $after define the tags which will be output at the start and end of each line. ca_comment_latest_posts ($count=10, $show_count='yes', $before='
  • ', $after='
  • ', $before_count='(', $after_count=')') Show the latest $count posts with comments (with a count of comments if $show_count is not no. $before and $after define the tags which will be output at the start and end of each line. ca_comment_most($count=10, $show_count='yes', $before='
  • ', $after='
  • ', $before_count='(', $after_count=')', $exclude='', $hours=0) Show the top $count commented posts (with a count of comments if $show_count is not no. $before and $after define the tags which will be output at the start and end of each line. $exclude can exclude certain posts, it should contain a comma separated list of post IDs. If $hours is not zero, only comments in the last $hours hours will be looked at. ca_author_most ($count=10, $exclude='', $before='
  • ', $after='
  • ', $before_count='(', $after_count=')') Show the top $count authors on your blog (with a count of posts written). I realise this isn.t comment related, but someone asked for it and I was too lazy to write a new plugin for it.