WordPress.org

Plugin Directory

Changeset 190514


Ignore:
Timestamp:
01/06/10 08:28:35 (4 years ago)
Author:
webgrrrl
Message:

Committing updates and tagging to version 1.3.

Location:
top-commentators-widget/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • top-commentators-widget/trunk/readme.txt

    r160440 r190514  
    44Tags: comments, widget, seo, sidebar 
    55Requires at least: 2.0.2 
    6 Tested up to: 2.8.4 
    7 Stable tag: 1.2 
     6Tested up to: 2.9.1 
     7Stable tag: 1.3 
    88 
    99Adds a sidebar widget to show the top commentators in your WP site. Adapted from Show Top Commentators plugin at Personal Financial Advice. 
     
    3434 
    3535== Changelog == 
     36 
     37= v.1.3 = 
     381. Rectified the SQL query for filtering list by hour. 
    3639 
    3740= v.1.2 = 
  • top-commentators-widget/trunk/topcommentators_widget.php

    r160440 r190514  
    33Description: Adds a sidebar widget to show the top commentators in your WP site. Adapted from Show Top Commentators plugin.   
    44Author: Lorna Timbah (WebGrrrl.net) 
    5 Version: 1.2 
     5Version: 1.3 
    66Author URI: http://webgrrrl.net  
    77Plugin URI: http://webgrrrl.net/archives/my-top-commentators-widget-quick-dirty.htm 
     
    110110        // This is the function that prepare time period limitation for filtering 
    111111        if($listPeriod == "h") { 
    112             $listPeriod = "DATE_FORMAT(comment_date, '$%Y-%m-%d %H') = DATE_FORMAT(CURDATE(), '%Y-%m-%d %H')"; 
     112            $listPeriod = "DATE_FORMAT(comment_date, '%Y-%m-%d %H') = DATE_FORMAT(CURDATE(), '%Y-%m-%d %H')"; 
    113113        } elseif($listPeriod == "d") { 
    114114            $listPeriod = "DATE_FORMAT(comment_date, '%Y-%m-%d') = DATE_FORMAT(CURDATE(), '%Y-%m-%d')"; 
     
    123123        } elseif(is_numeric($listPeriod)) { 
    124124            $listPeriod = "comment_date >= CURDATE() - INTERVAL $listPeriod DAY"; 
    125         // check if a range of date is entered, then split them and generate the appropriate SQL statement 
     125        // check if a range of date is entered, then generate the appropriate SQL statement 
    126126        } elseif(strpos($listPeriod, 'and') !== false) { 
    127127            $listPeriod = "comment_date BETWEEN $listPeriod"; 
Note: See TracChangeset for help on using the changeset viewer.