Changeset 7427
- Timestamp:
- 01/20/07 14:51:58 (1 year ago)
- Files:
-
- wp-stats/trunk/readme.html (modified) (7 diffs)
- wp-stats/trunk/stats/stats-options.php (modified) (2 diffs)
- wp-stats/trunk/stats/stats-widget.php (modified) (6 diffs)
- wp-stats/trunk/stats/stats.php (modified) (30 diffs)
- wp-stats/trunk/stats/wp-stats.pot (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-stats/trunk/readme.html
r7159 r7427 3 3 <head> 4 4 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 5 <title>WP-Stats 2. 06Readme</title>5 <title>WP-Stats 2.10 Readme</title> 6 6 <style type="text/css" media="screen"> 7 7 /* Default Style */ … … 181 181 <div id="Container"> 182 182 <!-- Title --> 183 <div id="Title">WP-Stats 2. 06 <span style="color: #aaaaaa;">Readme</span></div>183 <div id="Title">WP-Stats 2.10 <span style="color: #aaaaaa;">Readme</span></div> 184 184 185 185 <!-- Tabs --> … … 202 202 <script type="text/javascript"> 203 203 /* <![CDATA[*/ 204 document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Stats%202. 06%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');204 document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Stats%202.10%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>'); 205 205 /* ]]> */ 206 206 </script> … … 211 211 <p><b>Development:</b><br /><b>»</b> <a href="http://dev.wp-plugins.org/browser/wp-stats/" title="http://dev.wp-plugins.org/browser/wp-stats/">http://dev.wp-plugins.org/browser/wp-stats/</a></p> 212 212 <p><b>Support Forums:</b><br /><b>»</b> <a href="http://forums.lesterchan.net/index.php?board=20.0" title="http://forums.lesterchan.net/index.php?board=20.0">http://forums.lesterchan.net/index.php?board=20.0</a></p> 213 <p><b>Updated:</b><br /><b>»</b> 2nd January 2007</p>214 <p><b>Note:</b><br /><b>»</b> I have localize WP-Stats, if there is any bug or some text is not translated properly, please contact me immediately.</p>213 <p><b>Updated:</b><br /><b>»</b> 1st February 2007</p> 214 <p><b>Note:</b><br /><b>»</b> The <b>Installation</b>, <b>Upgrade</b>, <b>Usage</b> Tab at the top of the page.</p> 215 215 <div class="SubSubTitle">Changelog</div> 216 216 <ul> 217 217 <li> 218 <b>Version 2.10 (01-02-2007)</b> 219 <ul> 220 <li>NEW: Works For WordPress 2.1 Only</li> 221 </ul> 222 </li> 223 <li> 218 224 <b>Version 2.06 (02-01-2007)</b> 219 225 <ul> 220 226 <li>NEW: Localize WP-Stats</li> 221 227 </ul> 222 < li>228 </li> 223 229 <li> 224 230 <b>Version 2.05 (01-10-2006)</b> … … 300 306 <div id="Upgrade" style="display: none;"> 301 307 <div class="SubTitle">» Upgrade Instructions</div> 302 <div class="SubSubTitle">From v1.0x To v2. 06</div>308 <div class="SubSubTitle">From v1.0x To v2.10</div> 303 309 <ol> 304 310 <li> … … 309 315 </li> 310 316 <li> 311 Put :317 Put/overwrite: 312 318 <blockquote>Folder: stats</blockquote> 313 319 </li> 314 320 <li> 315 Open <b>wp-content/plugins/stats</b> Folder 316 </li> 317 <li> 318 Delete file if exists: 319 <blockquote>File: wp-stats.php</blockquote> 320 </li> 321 <li> 322 Open <b>Root WordPress</b> Folder 323 </li> 324 <li> 325 Delete file if exists: 326 <blockquote>File: wp-stats.php</blockquote> 321 Delete these file if exists: 322 <blockquote> 323 File: wp-stats.php<br /> 324 File: wp-content/plugins/stats/wp-stats.php 325 </blockquote> 327 326 </li> 328 327 <li> … … 378 377 </div> 379 378 </div> 380 <p id="Copyright">WP-Stats 2. 06<br />Copyright © 2006Lester 'GaMerZ' Chan. All Rights Reserved.</p>379 <p id="Copyright">WP-Stats 2.10<br />Copyright © 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 381 380 </body> 382 381 </html> wp-stats/trunk/stats/stats-options.php
r7206 r7427 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2. 0 Plugin: WP-Stats 2.06|6 | Copyright (c) 200 5Lester "GaMerZ" Chan |5 | WordPress 2.1 Plugin: WP-Stats 2.1 0 | 6 | Copyright (c) 2007 Lester "GaMerZ" Chan | 7 7 | | 8 8 | File Written By: | … … 109 109 } 110 110 ?> 111 <p><strong><?php printf(__('Top %s Stats', 'wp-stats'), get_settings('stats_mostlimit')); ?></strong></p>111 <p><strong><?php printf(__('Top %s Post Stats', 'wp-stats'), get_settings('stats_mostlimit')); ?></strong></p> 112 112 <input type="checkbox" name="stats_display[]" value="recent_posts"<?php checked(1, $stats_display['recent_posts']); ?> /> <?php echo $stats_mostlimit ?> <?php _e('Most Recent Posts', 'wp-stats'); ?><br /> 113 113 <input type="checkbox" name="stats_display[]" value="recent_commtents"<?php checked(1, $stats_display['recent_commtents']); ?> /> <?php echo $stats_mostlimit ?> <?php _e('Most Recent Comments', 'wp-stats'); ?><br /> wp-stats/trunk/stats/stats-widget.php
r6777 r7427 4 4 Plugin URI: http://www.lesterchan.net/portfolio/programming.php 5 5 Description: Adds a Sidebar Widget To Display Partial Stats From WP-Stats Plugin 6 Version: 2. 066 Version: 2.10 7 7 Author: GaMerZ 8 8 Author URI: http://www.lesterchan.net … … 84 84 echo '<li>'."\n"; 85 85 echo '<ul>'."\n"; 86 get_mostcommented(' ', $limit, $chars);86 get_mostcommented('post', $limit, $chars); 87 87 echo '</ul>'."\n"; 88 88 echo '</li>'."\n"; … … 95 95 echo '<li>'."\n"; 96 96 echo '<ul>'."\n"; 97 get_mostemailed(' ', $limit, $chars);97 get_mostemailed('post', $limit, $chars); 98 98 echo '</ul>'."\n"; 99 99 echo '</li>'."\n"; … … 106 106 echo '<li>'."\n"; 107 107 echo '<ul>'."\n"; 108 get_highest_rated(' ', $limit, $chars);108 get_highest_rated('post', $limit, $chars); 109 109 echo '</ul>'."\n"; 110 110 echo '</li>'."\n"; … … 117 117 echo '<li>'."\n"; 118 118 echo '<ul>'."\n"; 119 get_most_rated(' ', $limit, $chars);119 get_most_rated('post', $limit, $chars); 120 120 echo '</ul>'."\n"; 121 121 echo '</li>'."\n"; … … 128 128 echo '<li>'."\n"; 129 129 echo '<ul>'."\n"; 130 get_most_viewed(' ', $limit, $chars);130 get_most_viewed('post', $limit, $chars); 131 131 echo '</ul>'."\n"; 132 132 echo '</li>'."\n"; wp-stats/trunk/stats/stats.php
r7207 r7427 4 4 Plugin URI: http://www.lesterchan.net/portfolio/programming.php 5 5 Description: Display Your WordPress Statistics. 6 Version: 2. 066 Version: 2.10 7 7 Author: GaMerZ 8 8 Author URI: http://www.lesterchan.net … … 10 10 11 11 12 /* Copyright 2006 Lester Chan (email : gamerz84@hotmail.com) 12 /* 13 Copyright 2007 Lester Chan (email : gamerz84@hotmail.com) 13 14 14 15 This program is free software; you can redistribute it and/or modify … … 66 67 function get_totalposts($display = true) { 67 68 global $wpdb; 68 $totalposts = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->posts WHERE post_ status = 'publish'");69 $totalposts = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'publish'"); 69 70 if($display) { 70 71 echo number_format($totalposts); … … 78 79 function get_totalpages($display = true) { 79 80 global $wpdb; 80 $totalpages = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->posts WHERE post_ status = 'static'");81 $totalpages = $wpdb->get_var("SELECT COUNT(ID) FROM $wpdb->posts WHERE post_type = 'page' AND post_status = 'publish'"); 81 82 if($display) { 82 83 echo number_format($totalpages); … … 128 129 $where = ''; 129 130 $temp = ''; 130 if($mode == 'post') { 131 $where = 'post_status = \'publish\''; 132 } elseif($mode == 'page') { 133 $where = 'post_status = \'static\''; 134 } else { 135 $where = '(post_status = \'publish\' OR post_status = \'static\')'; 136 } 137 $recentposts = $wpdb->get_results("SELECT $wpdb->posts.ID, post_title, post_name, post_status, post_date, user_login, display_name FROM $wpdb->posts LEFT JOIN $wpdb->users ON $wpdb->users.ID = $wpdb->posts.post_author WHERE post_date < '".current_time('mysql')."' AND $where AND post_password = '' ORDER BY post_date DESC LIMIT $limit"); 131 if(!empty($mode) || $mode != 'both') { 132 $where = "post_type = '$mode'"; 133 } 134 $recentposts = $wpdb->get_results("SELECT $wpdb->posts.ID, post_title, post_name, post_status, post_date, user_login, display_name FROM $wpdb->posts LEFT JOIN $wpdb->users ON $wpdb->users.ID = $wpdb->posts.post_author WHERE post_date < '".current_time('mysql')."' AND $where AND post_status = 'publish' AND post_password = '' ORDER BY post_date DESC LIMIT $limit"); 138 135 if($recentposts) { 139 136 foreach ($recentposts as $post) { … … 141 138 $post_date = mysql2date('d.m.Y', $post->post_date); 142 139 $display_name = stripslashes($post->display_name); 143 $temp .= "<li>$post_date - <a href=\"".get_permalink()."\" >$post_title</a> ($display_name)</li>\n";140 $temp .= "<li>$post_date - <a href=\"".get_permalink()."\" title=\"".sprintf(__('View post %s', 'wp-stats'), $post_title)."\">$post_title</a> ($display_name)</li>\n"; 144 141 } 145 142 } else { … … 159 156 $where = ''; 160 157 $temp = ''; 161 if($mode == 'post') { 162 $where = 'post_status = \'publish\''; 163 } elseif($mode == 'page') { 164 $where = 'post_status = \'static\''; 165 } else { 166 $where = '(post_status = \'publish\' OR post_status = \'static\')'; 167 } 168 $recentcomments = $wpdb->get_results("SELECT $wpdb->posts.ID, post_title, post_name, post_status, comment_author, post_date, comment_date FROM $wpdb->posts INNER JOIN $wpdb->comments ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID WHERE comment_approved = '1' AND post_date < '".current_time('mysql')."' AND $where AND post_password = '' ORDER BY comment_date DESC LIMIT $limit"); 158 if(!empty($mode) || $mode != 'both') { 159 $where = "post_type = '$mode'"; 160 } 161 $recentcomments = $wpdb->get_results("SELECT $wpdb->posts.ID, post_title, post_name, post_status, comment_author, post_date, comment_date FROM $wpdb->posts INNER JOIN $wpdb->comments ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID WHERE comment_approved = '1' AND post_date < '".current_time('mysql')."' AND $where AND post_status = 'publish' AND post_password = '' ORDER BY comment_date DESC LIMIT $limit"); 169 162 if($recentcomments) { 170 163 foreach ($recentcomments as $post) { … … 172 165 $comment_author = htmlspecialchars(stripslashes($post->comment_author)); 173 166 $comment_date = mysql2date('d.m.Y @ H:i', $post->comment_date); 174 $temp .= "<li>$comment_date - $comment_author (<a href=\"".get_permalink()."\" >$post_title</a>)</li>\n";167 $temp .= "<li>$comment_date - $comment_author (<a href=\"".get_permalink()."\" title=\"".sprintf(__('View comments in post %s', 'wp-stats'), $post_title)."\">$post_title</a>)</li>\n"; 175 168 } 176 169 } else { … … 190 183 $where = ''; 191 184 $temp = ''; 192 if($mode == 'post') { 193 $where = 'post_status = \'publish\''; 194 } elseif($mode == 'page') { 195 $where = 'post_status = \'static\''; 196 } else { 197 $where = '(post_status = \'publish\' OR post_status = \'static\')'; 198 } 199 $mostcommenteds = $wpdb->get_results("SELECT $wpdb->posts.ID, post_title, post_name, post_status, post_date, COUNT($wpdb->comments.comment_post_ID) AS 'comment_total' FROM $wpdb->posts LEFT JOIN $wpdb->comments ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID WHERE comment_approved = '1' AND post_date < '".current_time('mysql')."' AND $where AND post_password = '' GROUP BY $wpdb->comments.comment_post_ID ORDER BY comment_total DESC LIMIT $limit"); 185 if(!empty($mode) || $mode != 'both') { 186 $where = "post_type = '$mode'"; 187 } 188 $mostcommenteds = $wpdb->get_results("SELECT $wpdb->posts.ID, post_title, post_name, post_status, post_date, COUNT($wpdb->comments.comment_post_ID) AS 'comment_total' FROM $wpdb->posts LEFT JOIN $wpdb->comments ON $wpdb->posts.ID = $wpdb->comments.comment_post_ID WHERE comment_approved = '1' AND post_date < '".current_time('mysql')."' AND $where AND post_status = 'publish' AND post_password = '' GROUP BY $wpdb->comments.comment_post_ID ORDER BY comment_total DESC LIMIT $limit"); 200 189 if($mostcommenteds) { 201 190 if($chars > 0) { … … 203 192 $post_title = htmlspecialchars(stripslashes($post->post_title)); 204 193 $comment_total = intval($post->comment_total); 205 $temp .= "<li><a href=\"".get_permalink()."\" >".snippet_chars($post_title, $chars)."</a> - $comment_total ".__('comments', 'wp-stats')."</li>";194 $temp .= "<li><a href=\"".get_permalink()."\" title=\"".sprintf(__('View comments in post %s', 'wp-stats'), $post_title)."\">".snippet_chars($post_title, $chars)."</a> - $comment_total ".__('comments', 'wp-stats')."</li>"; 206 195 } 207 196 } else { … … 209 198 $post_title = htmlspecialchars(stripslashes($post->post_title)); 210 199 $comment_total = intval($post->comment_total); 211 $temp .= "<li><a href=\"".get_permalink()."\" >$post_title</a> - $comment_total ".__('comments', 'wp-stats')."</li>";200 $temp .= "<li><a href=\"".get_permalink()."\" title=\"".sprintf(__('View comments in post %s', 'wp-stats'), $post_title)."\">$post_title</a> - $comment_total ".__('comments', 'wp-stats')."</li>"; 212 201 } 213 202 } … … 228 217 $where = ''; 229 218 $temp = ''; 230 if($mode == 'post') { 231 $where = 'post_status = \'publish\''; 232 } elseif($mode == 'page') { 233 $where = 'post_status = \'static\''; 234 } else { 235 $where = '(post_status = \'publish\' OR post_status = \'static\')'; 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 WHERE user_activation_key = '' AND $where GROUP BY $wpdb->posts.post_author"); 219 if(!empty($mode) || $mode != 'both') { 220 $where = "post_type = '$mode'"; 221 } 222 $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 AND user_activation_key = '' AND $where AND post_status = 'publish' GROUP BY $wpdb->posts.post_author"); 238 223 if($posts) { 239 224 $using_permalink = get_settings('permalink_structure'); … … 245 230 $posts_total = intval($post->posts_total); 246 231 if($using_permalink) { 247 $temp .= "<li><a href=\"".get_settings('siteurl').$author_link."\" >$display_name</a> ($posts_total)</li>\n";232 $temp .= "<li><a href=\"".get_settings('siteurl').$author_link."\" title=\"".sprintf(__('View posts posted by %s', 'wp-stats'), $display_name)."\">$display_name</a> ($posts_total)</li>\n"; 248 233 } else { 249 $temp .= "<li><a href=\"".get_settings('siteurl')."/?author_name=$post_author\" >$display_name</a> ($posts_total)</li>\n";234 $temp .= "<li><a href=\"".get_settings('siteurl')."/?author_name=$post_author\" title=\"".sprintf(__('View posts posted by %s', 'wp-stats'), $display_name)."\">$display_name</a> ($posts_total)</li>\n"; 250 235 } 251 236 } … … 273 258 $comment_author_link = urlencode($comment_author); 274 259 $comment_total = intval($comment->comment_total); 275 $temp .= "<li><a href=\"".stats_page_link($comment_author_link)."\" >$comment_author</a> ($comment_total)</li>\n";260 $temp .= "<li><a href=\"".stats_page_link($comment_author_link)."\" title=\"".sprintf(__('View all comments posted by %s', 'wp-stats'), $comment_author)."\">$comment_author</a> ($comment_total)</li>\n"; 276 261 // If Total Comments Is Below Threshold 277 262 if($comment_total <= $threshhold && $threshhold != -1) { … … 290 275 291 276 292 ### Function: Get Links Categories Stats 277 ### Function: Get Post Categories Stats 278 function get_postcats($display = true) { 279 global $wpdb; 280 $temp = ''; 281 $cats = get_categories("type=post"); 282 if ($cats) { 283 foreach ($cats as $cat) { 284 $temp .= '<li><a href="'.get_category_link($cat->cat_ID).'" title="View all posts in '.$cat->cat_name.'">'.$cat->cat_name.'</a> ('.$cat->category_count.")</li>\n"; 285 } 286 } 287 if($display) { 288 echo $temp; 289 } else { 290 return $temp; 291 } 292 } 293 294 295 ### Function: Get Links Categories Stats 293 296 function get_linkcats($display = true) { 294 297 global $wpdb; 295 298 $temp = ''; 296 $linkcats = $wpdb->get_results("SELECT $wpdb->linkcategories.cat_name, COUNT(*) AS 'total_links' FROM $wpdb->links INNER JOIN $wpdb->linkcategories ON $wpdb->linkcategories.cat_id = $wpdb->links.link_category GROUP BY $wpdb->linkcategories.cat_id ORDER BY total_links DESC "); 297 if($linkcats) { 298 foreach ($linkcats as $linkcat) { 299 $cat_name = htmlspecialchars(stripslashes($linkcat->cat_name)); 300 $total_links = intval($linkcat->total_links); 301 $temp .= "<li>$cat_name ($total_links)</li>\n"; 302 } 303 } else { 304 $temp = '<li>'.__('N/A', 'wp-stats').'</li>'; 299 $cats = get_categories("type=link"); 300 if ($cats) { 301 foreach ($cats as $cat) { 302 $temp .= '<li>'.$cat->cat_name.' ('.$cat->link_count.")</li>\n"; 303 } 305 304 } 306 305 if($display) { … … 386 385 387 386 // Plugin Stats 388 if( $stats_display['email'] == 1 || $stats_display['polls'] == 1 || $stats_display['ratings'] == 1 || $stats_display['views'] || $stats_display['useronline'] == 1) {387 if((function_exists('wp_email') && $stats_display['email'] == 1) || (function_exists('get_poll') && $stats_display['polls'] == 1) || (function_exists('the_ratings') && $stats_display['ratings'] == 1) || (function_exists('the_views') && $stats_display['views'] == 1) || (function_exists('useronline') && $stats_display['useronline'] == 1)) { 389 388 $temp_stats .= '<h2>'.__('Plugins Stats', 'wp-stats').'</h2>'."\n"; 390 389 } … … 439 438 // Top Stats 440 439 if($stats_display['recent_posts'] == 1 || $stats_display['recent_commtents'] == 1 || $stats_display['commented_post'] == 1 || $stats_display['emailed_most'] == 1 || $stats_display['rated_highest'] == 1 || $stats_display['rated_most'] == 1 || $stats_display['viewed_most'] == 1) { 441 $temp_stats .= '<h2>'.sprintf(__('Top %s Stats', 'wp-stats'), $stats_mostlimit).'</h2>'."\n";440 $temp_stats .= '<h2>'.sprintf(__('Top %s Post Stats', 'wp-stats'), $stats_mostlimit).'</h2>'."\n"; 442 441 } 443 442 … … 446 445 $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Recent Posts', 'wp-stats').'</strong></p>'."\n"; 447 446 $temp_stats .= '<ul>'."\n"; 448 $temp_stats .= get_recentposts(' ', $stats_mostlimit, false);447 $temp_stats .= get_recentposts('post', $stats_mostlimit, false); 449 448 $temp_stats .= '</ul>'."\n"; 450 449 } … … 454 453 $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Recent Comments', 'wp-stats').'</strong></p>'."\n"; 455 454 $temp_stats .= '<ul>'."\n"; 456 $temp_stats .= get_recentcomments(' ', $stats_mostlimit, false);455 $temp_stats .= get_recentcomments('post', $stats_mostlimit, false); 457 456 $temp_stats .= '</ul>'."\n"; 458 457 } … … 462 461 $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Most Commented Post', 'wp-stats').'</strong></p>'."\n"; 463 462 $temp_stats .= '<ul>'."\n"; 464 $temp_stats .= get_mostcommented(' ', $stats_mostlimit, 0, false);463 $temp_stats .= get_mostcommented('post', $stats_mostlimit, 0, false); 465 464 $temp_stats .= '</ul>'."\n"; 466 465 } … … 470 469 $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Most Emailed Post', 'wp-stats').'</strong></p>'."\n"; 471 470 $temp_stats .= '<ul>'."\n"; 472 $temp_stats .= get_mostemailed(' ', $stats_mostlimit, 0, false);471 $temp_stats .= get_mostemailed('post', $stats_mostlimit, 0, false); 473 472 $temp_stats .= '</ul>'."\n"; 474 473 } … … 479 478 $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Highest Rated Post', 'wp-stats').'</strong></p>'."\n"; 480 479 $temp_stats .= '<ul>'."\n"; 481 $temp_stats .= get_highest_rated(' ', $stats_mostlimit, 0, false);480 $temp_stats .= get_highest_rated('post', $stats_mostlimit, 0, false); 482 481 $temp_stats .= '</ul>'."\n"; 483 482 } … … 485 484 $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Most Rated Post', 'wp-stats').'</strong></p>'."\n"; 486 485 $temp_stats .= '<ul>'."\n"; 487 $temp_stats .= get_most_rated(' ', $stats_mostlimit, 0, false);486 $temp_stats .= get_most_rated('post', $stats_mostlimit, 0, false); 488 487 $temp_stats .= '</ul>'."\n"; 489 488 } … … 494 493 $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Most Viewed Post', 'wp-stats').'</strong></p>'."\n"; 495 494 $temp_stats .= '<ul>'."\n"; 496 $temp_stats .= get_most_viewed(' ', $stats_mostlimit, 0, false);495 $temp_stats .= get_most_viewed('post', $stats_mostlimit, 0, false); 497 496 $temp_stats .= '</ul>'."\n"; 498 497 } … … 503 502 $temp_stats .= '<p><strong>'.__('Authors', 'wp-stats').'</strong></p>'."\n"; 504 503 $temp_stats .= '<ol>'."\n"; 505 $temp_stats .= get_authorsstats(' ', false);504 $temp_stats .= get_authorsstats('post', false); 506 505 $temp_stats .= '</ol>'."\n"; 507 506 } … … 525 524 $temp_stats .= '<p><strong>'.__('Post Categories', 'wp-stats').'</strong></p>'."\n"; 526 525 $temp_stats .= '<ul>'."\n"; 527 $temp_stats .= list_cats(1,'All','name','asc','',true,0,1,0,1,true,0,0,1,'','','',true);526 $temp_stats .= get_postcats(false); 528 527 $temp_stats .= '</ul>'."\n"; 529 528 } … … 560 559 $totalpages = ceil($totalcomments/$perpage); 561 560 // Getting The Comments 562 $gmz_comments = $wpdb->get_results("SELECT $wpdb->posts.ID, comment_author, comment_date, comment_content, ID, comment_ID, post_date, post_title, post_name, post_password FROM $wpdb->comments INNER JOIN $wpdb->posts ON $wpdb->comments.comment_post_ID = $wpdb->posts.ID WHERE comment_author = '$comment_author_sql' AND comment_approved = '1' AND post_date < '".current_time('mysql')."' AND (post_status = 'publish' OR post_status = 'static')ORDER BY comment_post_ID DESC, comment_date DESC LIMIT $offset, $perpage");563 564 $temp_stats .= '<h2>'.__('Comments Posted By', 'wp-stats').' '.$comment_author.'</h2>' ."\n";565 $temp_stats .= '<p>'.sprintf(__('Displaying <strong>%s</strong> To <strong>%s</strong> Of <strong>%s</strong> Comments', 'wp-stats'), $displayonpage, $maxonpage, $totalcomments).'</p>' ."\n";561 $gmz_comments = $wpdb->get_results("SELECT $wpdb->posts.ID, comment_author, comment_date, comment_content, ID, comment_ID, post_date, post_title, post_name, post_password FROM $wpdb->comments INNER JOIN $wpdb->posts ON $wpdb->comments.comment_post_ID = $wpdb->posts.ID WHERE comment_author = '$comment_author_sql' AND comment_approved = '1' AND post_date < '".current_time('mysql')."' AND post_status = 'publish' ORDER BY comment_post_ID DESC, comment_date DESC LIMIT $offset, $perpage"); 562 563 $temp_stats .= '<h2>'.__('Comments Posted By', 'wp-stats').' '.$comment_author.'</h2>'; 564 $temp_stats .= '<p>'.sprintf(__('Displaying <strong>%s</strong> To <strong>%s</strong> Of <strong>%s</strong> Comments', 'wp-stats'), $displayonpage, $maxonpage, $totalcomments).'</p>'; 566 565 567 566 // Get Comments … … 579 578 // If New Title, Print It Out 580 579 if($post_title != $cache_post_title) { 581 $temp_stats .= "<p><strong><a href=\"".get_permalink()."\" title=\"".__('Posted On', 'wp-stats')." $post_date\">".__('Protected', 'wp-stats').": $post_title</a></strong></p> \n";580 $temp_stats .= "<p><strong><a href=\"".get_permalink()."\" title=\"".__('Posted On', 'wp-stats')." $post_date\">".__('Protected', 'wp-stats').": $post_title</a></strong></p>"; 582 581 $temp_stats .= '<blockquote>'.__('Comments Protected', 'wp-stats').'</blockquote>'; 583 582 } … … 585 584 // If New Title, Print It Out 586 585 if($post_title != $cache_post_title) { 587 $temp_stats .= "<p><strong><a href=\"".get_permalink()."\" title=\"".__('Posted On', 'wp-stats')." $post_date\">$post_title</a></strong></p> \n";586 $temp_stats .= "<p><strong><a href=\"".get_permalink()."\" title=\"".__('Posted On', 'wp-stats')." $post_date\">$post_title</a></strong></p>"; 588 587 } 589 $temp_stats .= "<blockquote>$comment_content <a href=\"".get_permalink()."#comment-$comment_id\" >Comment</a> ".__('Posted By', 'wp-stats')." <strong>$comment_author2</strong> ".__('On', 'wp-stats')." $comment_date</blockquote>";588 $temp_stats .= "<blockquote>$comment_content <a href=\"".get_permalink()."#comment-$comment_id\" title=\"".sprintf(__('View the comment posted by %s', 'wp-stats'), $comment_author2)."\">Comment</a> ".__('Posted By', 'wp-stats')." <strong>$comment_author2</strong> ".__('On', 'wp-stats')." $comment_date</blockquote>"; 590 589 } 591 590 $cache_post_title = $post_title; 592 591 } 593 592 } else { 594 $temp_stats .= "<p>$comment_author ".__('has not made any comments yet.', 'wp-stats')."</p> \n";593 $temp_stats .= "<p>$comment_author ".__('has not made any comments yet.', 'wp-stats')."</p>"; 595 594 } 596 595 … … 640 639 $temp_stats .= ' ... <strong><a href="'.stats_page_link($comment_author_link, $totalpages).'" title="'.__('Go to Last Page', 'wp-stats').'">'.__('Last', 'wp-stats').' »</a></strong>'; 641 640 } 642 $temp_stats .= '</p>' ."\n";641 $temp_stats .= '</p>'; 643 642 } 644 643 $temp_stats .= '<p><strong>««</strong> <a href="'.$stats_url.'">'.__('Back To Stats Page', 'wp-stats').' </a></p>'; wp-stats/trunk/stats/wp-stats.pot
r7207 r7427 1 1 msgid "" 2 2 msgstr "" 3 "Project-Id-Version: WP-Stats 2. 06\n"3 "Project-Id-Version: WP-Stats 2.10\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-01- 04 23:34+0800\n"5 "PO-Revision-Date: 2007-01-20 21:43+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@homtail.com>\n" … … 12 12 "X-Poedit-KeywordsList: __;_e\n" 13 13 "X-Poedit-Basepath: .\n" 14 "X-Poedit-Language: English\n" 14 15 "X-Poedit-SearchPath-0: .\n" 15 16 … … 54 55 55 56 #: stats-options.php:81 56 #: stats.php:37 557 #: stats.php:374 57 58 msgid "General Stats" 58 59 msgstr "" … … 63 64 64 65 #: stats-options.php:88 65 #: stats.php:39 466 #: stats.php:393 66 67 msgid "WP-EMail" 67 68 msgstr "" 68 69 69 70 #: stats-options.php:93 70 #: stats.php:40 471 #: stats.php:403 71 72 msgid "WP-Polls" 72 73 msgstr "" 73 74 74 75 #: stats-options.php:98 75 #: stats.php:41 476 #: stats.php:413 76 77 msgid "WP-PostRatings" 77 78 msgstr "" 78 79 79 80 #: stats-options.php:103 80 #: stats.php:42 381 #: stats.php:422 81 82 msgid "WP-PostViews" 82 83 msgstr "" 83 84 84 85 #: stats-options.php:108 85 #: stats.php:43 186 #: stats.php:430 86 87 msgid "WP-UserOnline" 87 88 msgstr "" 88 89 89 90 #: stats-options.php:111 90 #: stats.php:44 191 #, php-format 92 msgid "Top %s Stats"91 #: stats.php:440 92 #, php-format 93 msgid "Top %s Post Stats" 93 94 msgstr "" 94 95 … … 127 128 128 129 #: stats-options.php:135 129 #: stats.php:50 2130 #: stats.php:501 130 131 msgid "Authors Stats" 131 132 msgstr "" … … 133 134 #: stats-options.php:136 134 135 #: stats-widget.php:54 135 #: stats.php:50 3136 #: stats.php:502 136 137 msgid "Authors" 137 138 msgstr "" 138 139 139 140 #: stats-options.php:137 141 #: stats.php:510 142 msgid "Comments' Members Stats" 143 msgstr "" 144 145 #: stats-options.php:138 140 146 #: stats.php:511 141 msgid "Comments' Members Stats"142 msgstr ""143 144 #: stats-options.php:138145 #: stats.php:512146 147 msgid "Comment Members" 147 148 msgstr "" 148 149 149 150 #: stats-options.php:139 150 #: stats.php:5 20151 #: stats.php:519 151 152 msgid "Misc Stats" 152 153 msgstr "" 153 154 154 155 #: stats-options.php:140 155 #: stats.php:52 5156 #: stats.php:524 156 157 msgid "Post Categories" 157 158 msgstr "" 158 159 159 160 #: stats-options.php:141 160 #: stats.php:53 3161 #: stats.php:532 161 162 msgid "Link Categories" 162 163 msgstr "" … … 167 168 168 169 #: stats-widget.php:49 169 #: stats.php:37 6170 #: stats.php:375 170 171 msgid "Total Stats" 171 172 msgstr "" … … 271 272 msgstr "" 272 273 273 #: stats.php:3 8274 #: stats.php:39 274 275 msgid "WP-Stats" 275 276 msgstr "" 276 277 277 #: stats.php:4 1278 #: stats.php:42 278 279 msgid "Stats" 279 280 msgstr "" 280 281 281 #: stats.php:146 282 #: stats.php:177 283 #: stats.php:215 284 #: stats.php:253 285 #: stats.php:282 286 #: stats.php:304 282 #: stats.php:140 283 #, php-format 284 msgid "View post %s" 285 msgstr "" 286 287 #: stats.php:143 288 #: stats.php:170 289 #: stats.php:204 290 #: stats.php:238 291 #: stats.php:267 287 292 msgid "N/A" 288 293 msgstr "" 289 294 290 #: stats.php:205 291 #: stats.php:211 295 #: stats.php:167 296 #: stats.php:194 297 #: stats.php:200 298 #, php-format 299 msgid "View comments in post %s" 300 msgstr "" 301 302 #: stats.php:194 303 #: stats.php:200 292 304 msgid "comments" 293 305 msgstr "" 294 306 307 #: stats.php:232 308 #: stats.php:234 309 #, php-format 310 msgid "View posts posted by %s" 311 msgstr "" 312 313 #: stats.php:260 314 #, php-format 315 msgid "View all comments posted by %s" 316 msgstr "" 317 318 #: stats.php:377 319 msgid "Authors To This Blog." 320 msgstr "" 321 295 322 #: stats.php:378 296 msgid " Authors To This Blog."323 msgid "Posts Were Posted." 297 324 msgstr "" 298 325 299 326 #: stats.php:379 300 msgid "P osts Were Posted."327 msgid "Pages Were Created." 301 328 msgstr "" 302 329 303 330 #: stats.php:380 304 msgid " Pages Were Created."331 msgid "Comments Were Posted." 305 332 msgstr "" 306 333 307 334 #: stats.php:381 308 msgid " Comments Were Posted."335 msgid "Different Nicks Were Represented In The Comments." 309 336 msgstr "" 310 337 311 338 #: stats.php:382 312 msgid "Different Nicks Were Represented In The Comments."313 msgstr ""314 315 #: stats.php:383316 339 msgid "Links Were Added" 317 340 msgstr "" 318 341 319 #: stats.php:38 9342 #: stats.php:388 320 343 msgid "Plugins Stats" 321 344 msgstr "" 322 345 346 #: stats.php:395 347 msgid "Emails Were Sent." 348 msgstr "" 349 323 350 #: stats.php:396 324 msgid "Emails Were Sent ."351 msgid "Emails Were Sent Successfully." 325 352 msgstr "" 326 353 327 354 #: stats.php:397 328 msgid "Emails Were Sent Successfully."329 msgstr ""330 331 #: stats.php:398332 355 msgid "Emails Failed To Send." 333 356 msgstr "" 334 357 358 #: stats.php:405 359 msgid "Polls Were Created." 360 msgstr "" 361 335 362 #: stats.php:406 336 msgid "Polls Were Created."363 msgid "Polls' Answers Were Given." 337 364 msgstr "" 338 365 339 366 #: stats.php:407 340 msgid "Polls' Answers Were Given." 341 msg str ""342 343 #: stats.php:408 367 #: stats.php:415 368 msgid "Votes Were Casted." 369 msgstr "" 370 344 371 #: stats.php:416 345 msgid "Votes Were Casted."346 msgstr ""347 348 #: stats.php:417349 372 msgid "Users Casted Their Vote." 350 373 msgstr "" 351 374 352 #: stats.php:42 5375 #: stats.php:424 353 376 msgid "Views Were Generated." 354 377 msgstr "" 355 378 379 #: stats.php:432 380 msgid "User(s) Online Now." 381 msgstr "" 382 356 383 #: stats.php:433 357 msgid " User(s) Online Now."384 msgid "Most users ever online was" 358 385 msgstr "" 359 386 360 387 #: stats.php:434 361 msgid "Most users ever online was" 362 msgstr "" 363 364 #: stats.php:435 365 #: stats.php:589 388 #: stats.php:588 366 389 msgid "On" 367 390 msgstr "" 368 391 369 #: stats.php:44 6392 #: stats.php:445 370 393 msgid "Recent Posts" 371 394 msgstr "" 372 395 373 #: stats.php:45 4396 #: stats.php:453 374 397 msgid "Recent Comments" 375 398 msgstr "" 376 399 377 #: stats.php:46 2400 #: stats.php:461 378 401 msgid "Most Commented Post" 379 402 msgstr "" 380 403 381 #: stats.php:4 70404 #: stats.php:469 382 405 msgid "Most Emailed Post" 383 406 msgstr "" 384 407 385 #: stats.php:47 9408 #: stats.php:478 386 409 msgid "Highest Rated Post" 387 410 msgstr "" 388 411 389 #: stats.php:48 5412 #: stats.php:484 390 413 msgid "Most Rated Post" 391 414 msgstr "" 392 415 393 #: stats.php:49 4416 #: stats.php:493 394 417 msgid "Most Viewed Post" 395 418 msgstr "" 396 419 420 #: stats.php:563 421 msgid "Comments Posted By" 422 msgstr "" 423 397 424 #: stats.php:564 398 msgid "Comments Posted By"399 msgstr ""400 401 #: stats.php:565402 425 #, php-format 403 426 msgid "Displaying <strong>%s</strong> To <strong>%s</strong> Of <strong>%s</strong> Comments" 404 427 msgstr "" 405 428 429 #: stats.php:580 430 #: stats.php:586 431 msgid "Posted On" 432 msgstr "" 433 434 #: stats.php:580 435 msgid "Protected" 436 msgstr "" 437 406 438 #: stats.php:581 407 #: stats.php:587408 msgid "Posted On"409 msgstr ""410 411 #: stats.php:581412 msgid "Protected"413 msgstr ""414 415 #: stats.php:582416 439 msgid "Comments Protected" 417 440 msgstr "" 418 441 419 #: stats.php:589 442 #: stats.php:588 443 #, php-format 444 msgid "View the comment posted by %s" 445 msgstr "" 446 447 #: stats.php:588 420 448 msgid "Posted By" 421 449 msgstr "" 422 450 423 #: stats.php:59 4451 #: stats.php:593 424 452 msgid "has not made any comments yet." 425 453 msgstr "" 426 454 427 #: stats.php:60 3455 #: stats.php:602 428 456 msgid "Previous Page" 429 457 msgstr "" 430 458 431 #: stats.php:61 1459 #: stats.php:610 432 460 msgid "Next Page" 433 461 msgstr "" 434 462 435 #: stats.php:6 20463 #: stats.php:619 436 464 #, php-format 437 465 msgid "Pages (%s)" 438 466 ms
