Changeset 7204
- Timestamp:
- 01/04/07 13:58:34 (2 years ago)
- Files:
-
- wp-stats/trunk/stats/stats.php (modified) (3 diffs)
- wp-stats/trunk/stats/wp-stats.pot (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-stats/trunk/stats/stats.php
r7203 r7204 224 224 225 225 ### Function: Get Author Stats 226 function get_authorsstats($ display = true) {226 function get_authorsstats($mode = '', $display = true) { 227 227 global $wpdb, $wp_rewrite; 228 228 $where = ''; … … 235 235 $where = '(post_status = \'publish\' OR post_status = \'static\')'; 236 236 } 237 $posts = $wpdb->get_results("SELECT COUNT($wpdb->posts.ID) AS 'posts_total', $wpdb->users.display_name, $wpdb->users.user_nicename FROM $wpdb->posts LEFT JOIN $wpdb->users ON $wpdb->users.ID = $wpdb->posts.post_author ANDuser_activation_key = '' AND $where GROUP BY $wpdb->posts.post_author");237 $posts = $wpdb->get_results("SELECT COUNT($wpdb->posts.ID) AS 'posts_total', $wpdb->users.display_name, $wpdb->users.user_nicename FROM $wpdb->posts LEFT JOIN $wpdb->users ON $wpdb->users.ID = $wpdb->posts.post_author WHERE user_activation_key = '' AND $where GROUP BY $wpdb->posts.post_author"); 238 238 if($posts) { 239 239 $using_permalink = get_settings('permalink_structure'); … … 503 503 $temp_stats .= '<p><strong>'.__('Authors', 'wp-stats').'</strong></p>'."\n"; 504 504 $temp_stats .= '<ol>'."\n"; 505 $temp_stats .= get_authorsstats( false);505 $temp_stats .= get_authorsstats('', false); 506 506 $temp_stats .= '</ol>'."\n"; 507 507 } wp-stats/trunk/stats/wp-stats.pot
r7203 r7204 3 3 "Project-Id-Version: WP-Stats 2.06\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-01-04 15:43+0800\n"5 "PO-Revision-Date: 2007-01-04 21:57+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@homtail.com>\n"
