WordPress.org

Plugin Directory

Changeset 553876


Ignore:
Timestamp:
06/06/12 14:36:03 (23 months ago)
Author:
coffee2code
Message:
  • Update to v1.2
  • Add CSS rule to set text color to white to supersede CSS styling done by latest Akismet
  • Default to gray comment bubble
  • Show blue comment bubble for authors with pending comment (consistent with how WP does it for posts)
  • Add 'author-com-pending' class to link when author has pending comments
  • Show orange comment bubble on hover over comment bubble
  • Re-license as GPLv2 or later (from X11)
  • Add 'License' and 'License URI' header tags to readme.txt and plugin file
  • Add banner image for plugin page
  • Remove ending PHP close tag
  • Note compatibility through WP 3.4+
Location:
admin-commenters-comments-count
Files:
2 added
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • admin-commenters-comments-count/tags/1.2/admin-commenters-comments-count.php

    r473376 r553876  
    33 * @package Admin_Commenters_Comments_Count 
    44 * @author Scott Reilly 
    5  * @version 1.1.4 
     5 * @version 1.2 
    66 */ 
    77/* 
    88Plugin Name: Admin Commenters Comments Count 
    9 Version: 1.1.4 
     9Version: 1.2 
    1010Plugin URI: http://coffee2code.com/wp-plugins/admin-commenters-comments-count/ 
    1111Author: Scott Reilly 
    12 Author URI: http://coffee2code.com 
     12Author URI: http://coffee2code.com/ 
     13License: GPLv2 or later 
     14License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    1315Description: Displays a count of each commenter's total number of comments (linked to those comments) next to their name on any admin page. 
    1416 
    15 Compatible with WordPress 2.8+, 2.9+, 3.0+, 3.1+, 3.2+, 3.3+. 
     17Compatible with WordPress 2.8 through 3.4+ 
    1618 
    1719=>> Read the accompanying readme.txt file for instructions and documentation. 
    1820=>> Also, visit the plugin's homepage for additional information and updates. 
    1921=>> Or visit: http://wordpress.org/extend/plugins/admin-commenters-comments-count/ 
     22 
     23TODO: 
     24    * When a comments gets approved/unapproved via comment action links, update commenter's count accordingly 
    2025*/ 
    2126 
    2227/* 
    23 Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
     28    Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
    2429 
    25 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation 
    26 files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, 
    27 modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the  
    28 Software is furnished to do so, subject to the following conditions: 
     30    This program is free software; you can redistribute it and/or 
     31    modify it under the terms of the GNU General Public License 
     32    as published by the Free Software Foundation; either version 2 
     33    of the License, or (at your option) any later version. 
    2934 
    30 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 
     35    This program is distributed in the hope that it will be useful, 
     36    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     37    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     38    GNU General Public License for more details. 
    3139 
    32 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
    33 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
    34 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 
    35 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
     40    You should have received a copy of the GNU General Public License 
     41    along with this program; if not, write to the Free Software 
     42    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
    3643*/ 
    3744 
     
    4653     */ 
    4754    public static function version() { 
    48         return '1.1.4'; 
     55        return '1.2'; 
    4956    } 
    5057 
     
    6774        #dashboard_recent_comments .author-com-count {margin-top:4px;} 
    6875        .author-com-count:hover {background-position:22% -3px;} 
     76        #the-comment-list a.author-com-count {background-position:center -80px;} 
     77        #the-comment-list a.author-com-count span {background-color:#bbb;color:#fff;} 
     78        #the-comment-list a.author-com-count.author-com-pending {background-position:center -55px;} 
     79        #the-comment-list a.author-com-count.author-com-pending span {background-color:#21759B;} 
     80        #the-comment-list a.author-com-count:hover, #the-comment-list a.author-com-count.author-com-pending:hover {background-position:center -3px;} 
     81        #the-comment-list a.author-com-count:hover span, #the-comment-list a.author-com-count.author-com-pending:hover span {background-color:#d54e21;} 
     82        div.post-and-author-com-count-wrapper {position:relative; display:inline;} 
    6983        </style> 
    7084 
     
    118132        } 
    119133 
    120         if ( $pending_count ) 
     134        if ( $pending_count ) { 
    121135            $msg .= '; ' . sprintf( __( '%s pending' ), $pending_count ); 
     136            $pclass = ' author-com-pending'; 
     137        } else { 
     138            $pclass = ''; 
     139        } 
    122140 
    123141        $url = $comment_count+$pending_count > 0 ? 'edit-comments.php?s=' . esc_attr( urlencode( $author_email ) ) : '#'; 
    124142 
    125143        return " 
    126             <div class='post-com-count-wrapper' style='position:relative; display:inline;'><strong> 
    127             <a class='author-com-count post-com-count' href='$url' title='$msg' style=''><span class='comment-count'>$comment_count</span></a> 
    128             </strong></div>$author_name"; 
     144            <div class='post-com-count-wrapper post-and-author-com-count-wrapper'> 
     145            <a class='author-com-count post-com-count $pclass' href='$url' title='" . esc_attr( $msg ) . "' style=''> 
     146            <span class='comment-count'>$comment_count</span> 
     147            </a></div>$author_name"; 
    129148    } 
    130149 
     
    146165 
    147166endif; // end if !class_exists() 
    148  
    149 ?> 
  • admin-commenters-comments-count/tags/1.2/readme.txt

    r473376 r553876  
    33Donate link: http://coffee2code.com/donate 
    44Tags: commenters, comment count, comment author, comments, comment, admin, coffee2code 
     5License: GPLv2 or later 
     6License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    57Requires at least: 2.8 
    6 Tested up to: 3.3 
    7 Stable tag: 1.1.4 
    8 Version: 1.1.4 
     8Tested up to: 3.4 
     9Stable tag: 1.2 
     10Version: 1.2 
    911 
    1012Displays a count of each commenter's total number of comments (linked to those comments) next to their name on any admin page. 
     
    7476== Changelog == 
    7577 
     78= 1.2 = 
     79* Add CSS rule to set text color to white to supersede CSS styling done by latest Akismet 
     80* Default to gray comment bubble 
     81* Show blue comment bubble for authors with pending comment (consistent with how WP does it for posts) 
     82* Add 'author-com-pending' class to link when author has pending comments 
     83* Show orange comment bubble on hover over comment bubble 
     84* Re-license as GPLv2 or later (from X11) 
     85* Add 'License' and 'License URI' header tags to readme.txt and plugin file 
     86* Add banner image for plugin page 
     87* Remove ending PHP close tag 
     88* Note compatibility through WP 3.4+ 
     89 
    7690= 1.1.4 = 
    7791* Bugfix for notices when non-standard comment types are present (by explicitly supporting pingbacks and trackbacks, and ignoring non-standard comment types) 
     
    128142== Upgrade Notice == 
    129143 
     144= 1.2 = 
     145Recommended update: minor interface changes related to comment bubble coloring; noted compatibility through WP 3.4+; explicitly stated license. 
     146 
    130147= 1.1.4 = 
    131148Minor bugfix update: prevent PHP notices when non-standard comment types are present; noted compatibility through WP 3.3+. 
  • admin-commenters-comments-count/trunk/admin-commenters-comments-count.php

    r473376 r553876  
    33 * @package Admin_Commenters_Comments_Count 
    44 * @author Scott Reilly 
    5  * @version 1.1.4 
     5 * @version 1.2 
    66 */ 
    77/* 
    88Plugin Name: Admin Commenters Comments Count 
    9 Version: 1.1.4 
     9Version: 1.2 
    1010Plugin URI: http://coffee2code.com/wp-plugins/admin-commenters-comments-count/ 
    1111Author: Scott Reilly 
    12 Author URI: http://coffee2code.com 
     12Author URI: http://coffee2code.com/ 
     13License: GPLv2 or later 
     14License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    1315Description: Displays a count of each commenter's total number of comments (linked to those comments) next to their name on any admin page. 
    1416 
    15 Compatible with WordPress 2.8+, 2.9+, 3.0+, 3.1+, 3.2+, 3.3+. 
     17Compatible with WordPress 2.8 through 3.4+ 
    1618 
    1719=>> Read the accompanying readme.txt file for instructions and documentation. 
    1820=>> Also, visit the plugin's homepage for additional information and updates. 
    1921=>> Or visit: http://wordpress.org/extend/plugins/admin-commenters-comments-count/ 
     22 
     23TODO: 
     24    * When a comments gets approved/unapproved via comment action links, update commenter's count accordingly 
    2025*/ 
    2126 
    2227/* 
    23 Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
     28    Copyright (c) 2009-2012 by Scott Reilly (aka coffee2code) 
    2429 
    25 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation 
    26 files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, 
    27 modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the  
    28 Software is furnished to do so, subject to the following conditions: 
     30    This program is free software; you can redistribute it and/or 
     31    modify it under the terms of the GNU General Public License 
     32    as published by the Free Software Foundation; either version 2 
     33    of the License, or (at your option) any later version. 
    2934 
    30 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 
     35    This program is distributed in the hope that it will be useful, 
     36    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     37    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     38    GNU General Public License for more details. 
    3139 
    32 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
    33 OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
    34 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 
    35 IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
     40    You should have received a copy of the GNU General Public License 
     41    along with this program; if not, write to the Free Software 
     42    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA. 
    3643*/ 
    3744 
     
    4653     */ 
    4754    public static function version() { 
    48         return '1.1.4'; 
     55        return '1.2'; 
    4956    } 
    5057 
     
    6774        #dashboard_recent_comments .author-com-count {margin-top:4px;} 
    6875        .author-com-count:hover {background-position:22% -3px;} 
     76        #the-comment-list a.author-com-count {background-position:center -80px;} 
     77        #the-comment-list a.author-com-count span {background-color:#bbb;color:#fff;} 
     78        #the-comment-list a.author-com-count.author-com-pending {background-position:center -55px;} 
     79        #the-comment-list a.author-com-count.author-com-pending span {background-color:#21759B;} 
     80        #the-comment-list a.author-com-count:hover, #the-comment-list a.author-com-count.author-com-pending:hover {background-position:center -3px;} 
     81        #the-comment-list a.author-com-count:hover span, #the-comment-list a.author-com-count.author-com-pending:hover span {background-color:#d54e21;} 
     82        div.post-and-author-com-count-wrapper {position:relative; display:inline;} 
    6983        </style> 
    7084 
     
    118132        } 
    119133 
    120         if ( $pending_count ) 
     134        if ( $pending_count ) { 
    121135            $msg .= '; ' . sprintf( __( '%s pending' ), $pending_count ); 
     136            $pclass = ' author-com-pending'; 
     137        } else { 
     138            $pclass = ''; 
     139        } 
    122140 
    123141        $url = $comment_count+$pending_count > 0 ? 'edit-comments.php?s=' . esc_attr( urlencode( $author_email ) ) : '#'; 
    124142 
    125143        return " 
    126             <div class='post-com-count-wrapper' style='position:relative; display:inline;'><strong> 
    127             <a class='author-com-count post-com-count' href='$url' title='$msg' style=''><span class='comment-count'>$comment_count</span></a> 
    128             </strong></div>$author_name"; 
     144            <div class='post-com-count-wrapper post-and-author-com-count-wrapper'> 
     145            <a class='author-com-count post-com-count $pclass' href='$url' title='" . esc_attr( $msg ) . "' style=''> 
     146            <span class='comment-count'>$comment_count</span> 
     147            </a></div>$author_name"; 
    129148    } 
    130149 
     
    146165 
    147166endif; // end if !class_exists() 
    148  
    149 ?> 
  • admin-commenters-comments-count/trunk/readme.txt

    r473376 r553876  
    33Donate link: http://coffee2code.com/donate 
    44Tags: commenters, comment count, comment author, comments, comment, admin, coffee2code 
     5License: GPLv2 or later 
     6License URI: http://www.gnu.org/licenses/gpl-2.0.html 
    57Requires at least: 2.8 
    6 Tested up to: 3.3 
    7 Stable tag: 1.1.4 
    8 Version: 1.1.4 
     8Tested up to: 3.4 
     9Stable tag: 1.2 
     10Version: 1.2 
    911 
    1012Displays a count of each commenter's total number of comments (linked to those comments) next to their name on any admin page. 
     
    7476== Changelog == 
    7577 
     78= 1.2 = 
     79* Add CSS rule to set text color to white to supersede CSS styling done by latest Akismet 
     80* Default to gray comment bubble 
     81* Show blue comment bubble for authors with pending comment (consistent with how WP does it for posts) 
     82* Add 'author-com-pending' class to link when author has pending comments 
     83* Show orange comment bubble on hover over comment bubble 
     84* Re-license as GPLv2 or later (from X11) 
     85* Add 'License' and 'License URI' header tags to readme.txt and plugin file 
     86* Add banner image for plugin page 
     87* Remove ending PHP close tag 
     88* Note compatibility through WP 3.4+ 
     89 
    7690= 1.1.4 = 
    7791* Bugfix for notices when non-standard comment types are present (by explicitly supporting pingbacks and trackbacks, and ignoring non-standard comment types) 
     
    128142== Upgrade Notice == 
    129143 
     144= 1.2 = 
     145Recommended update: minor interface changes related to comment bubble coloring; noted compatibility through WP 3.4+; explicitly stated license. 
     146 
    130147= 1.1.4 = 
    131148Minor bugfix update: prevent PHP notices when non-standard comment types are present; noted compatibility through WP 3.3+. 
Note: See TracChangeset for help on using the changeset viewer.