Changeset 7427

Show
Ignore:
Timestamp:
01/20/07 14:51:58 (1 year ago)
Author:
GamerZ
Message:

WordPress 2.1 Update

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-stats/trunk/readme.html

    r7159 r7427  
    33<head>       
    44      <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    5       <title>WP-Stats 2.06 Readme</title> 
     5      <title>WP-Stats 2.10 Readme</title> 
    66      <style type="text/css" media="screen"> 
    77            /* Default Style */ 
     
    181181<div id="Container"> 
    182182      <!-- Title --> 
    183       <div id="Title">WP-Stats 2.06&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
     183      <div id="Title">WP-Stats 2.10&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
    184184 
    185185      <!-- Tabs --> 
     
    202202                        <script type="text/javascript"> 
    203203                              /* <![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>'); 
    205205                              /* ]]> */ 
    206206                        </script> 
     
    211211                  <p><b>Development:</b><br /><b>&raquo;</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> 
    212212                  <p><b>Support Forums:</b><br /><b>&raquo;</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>&raquo;</b> 2nd January 2007</p> 
    214                   <p><b>Note:</b><br /><b>&raquo;</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>&raquo;</b> 1st February 2007</p> 
     214                  <p><b>Note:</b><br /><b>&raquo;</b> The <b>Installation</b>, <b>Upgrade</b>, <b>Usage</b> Tab at the top of the page.</p> 
    215215                  <div class="SubSubTitle">Changelog</div> 
    216216                  <ul> 
    217217                        <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> 
    218224                              <b>Version 2.06 (02-01-2007)</b> 
    219225                              <ul> 
    220226                                    <li>NEW: Localize WP-Stats</li> 
    221227                              </ul> 
    222                         <li>                   
     228                        </li>                  
    223229                        <li> 
    224230                              <b>Version 2.05 (01-10-2006)</b> 
     
    300306            <div id="Upgrade" style="display: none;"> 
    301307                  <div class="SubTitle">&raquo; 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> 
    303309                  <ol> 
    304310                        <li> 
     
    309315                        </li> 
    310316                        <li> 
    311                               Put
     317                              Put/overwrite
    312318                              <blockquote>Folder: stats</blockquote> 
    313319                        </li> 
    314320                        <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> 
    327326                        </li> 
    328327                        <li> 
     
    378377      </div> 
    379378</div> 
    380 <p id="Copyright">WP-Stats 2.06<br />Copyright &copy; 2006 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
     379<p id="Copyright">WP-Stats 2.10<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
    381380</body> 
    382381</html> 
  • wp-stats/trunk/stats/stats-options.php

    r7206 r7427  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.0 Plugin: WP-Stats 2.06                                                           | 
    6 |     Copyright (c) 2005 Lester "GaMerZ" Chan                                                 | 
     5|     WordPress 2.1 Plugin: WP-Stats 2.1 0                                                          | 
     6|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                 | 
    77|                                                                                                                                         | 
    88|     File Written By:                                                                                                  | 
     
    109109                                          } 
    110110                                    ?> 
    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> 
    112112                                    <input type="checkbox" name="stats_display[]" value="recent_posts"<?php checked(1, $stats_display['recent_posts']); ?> />&nbsp;&nbsp;<?php echo $stats_mostlimit ?> <?php _e('Most Recent Posts', 'wp-stats'); ?><br /> 
    113113                                    <input type="checkbox" name="stats_display[]" value="recent_commtents"<?php checked(1, $stats_display['recent_commtents']); ?> />&nbsp;&nbsp;<?php echo $stats_mostlimit ?> <?php _e('Most Recent Comments', 'wp-stats'); ?><br /> 
  • wp-stats/trunk/stats/stats-widget.php

    r6777 r7427  
    44Plugin URI: http://www.lesterchan.net/portfolio/programming.php 
    55Description: Adds a Sidebar Widget To Display Partial Stats From WP-Stats Plugin 
    6 Version: 2.06 
     6Version: 2.10 
    77Author: GaMerZ 
    88Author URI: http://www.lesterchan.net 
     
    8484                        echo '<li>'."\n"; 
    8585                        echo '<ul>'."\n"; 
    86                         get_mostcommented('', $limit, $chars); 
     86                        get_mostcommented('post', $limit, $chars); 
    8787                        echo '</ul>'."\n"; 
    8888                        echo '</li>'."\n"; 
     
    9595                        echo '<li>'."\n"; 
    9696                        echo '<ul>'."\n"; 
    97                         get_mostemailed('', $limit, $chars); 
     97                        get_mostemailed('post', $limit, $chars); 
    9898                        echo '</ul>'."\n"; 
    9999                        echo '</li>'."\n"; 
     
    106106                        echo '<li>'."\n"; 
    107107                        echo '<ul>'."\n"; 
    108                         get_highest_rated('', $limit, $chars); 
     108                        get_highest_rated('post', $limit, $chars); 
    109109                        echo '</ul>'."\n"; 
    110110                        echo '</li>'."\n"; 
     
    117117                        echo '<li>'."\n"; 
    118118                        echo '<ul>'."\n"; 
    119                         get_most_rated('', $limit, $chars); 
     119                        get_most_rated('post', $limit, $chars); 
    120120                        echo '</ul>'."\n"; 
    121121                        echo '</li>'."\n"; 
     
    128128                        echo '<li>'."\n"; 
    129129                        echo '<ul>'."\n"; 
    130                         get_most_viewed('', $limit, $chars); 
     130                        get_most_viewed('post', $limit, $chars); 
    131131                        echo '</ul>'."\n"; 
    132132                        echo '</li>'."\n"; 
  • wp-stats/trunk/stats/stats.php

    r7207 r7427  
    44Plugin URI: http://www.lesterchan.net/portfolio/programming.php 
    55Description: Display Your WordPress Statistics. 
    6 Version: 2.06 
     6Version: 2.10 
    77Author: GaMerZ 
    88Author URI: http://www.lesterchan.net 
     
    1010 
    1111 
    12 /*  Copyright 2006  Lester Chan  (email : gamerz84@hotmail.com) 
     12/*   
     13      Copyright 2007  Lester Chan  (email : gamerz84@hotmail.com) 
    1314 
    1415    This program is free software; you can redistribute it and/or modify 
     
    6667function get_totalposts($display = true) { 
    6768      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'"); 
    6970      if($display) { 
    7071            echo number_format($totalposts); 
     
    7879function get_totalpages($display = true) { 
    7980      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'"); 
    8182      if($display) { 
    8283            echo number_format($totalpages); 
     
    128129      $where = ''; 
    129130      $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"); 
    138135      if($recentposts) { 
    139136            foreach ($recentposts as $post) { 
     
    141138                  $post_date = mysql2date('d.m.Y', $post->post_date); 
    142139                  $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"; 
    144141            } 
    145142      } else { 
     
    159156      $where = ''; 
    160157      $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"); 
    169162      if($recentcomments) { 
    170163            foreach ($recentcomments as $post) { 
     
    172165                  $comment_author = htmlspecialchars(stripslashes($post->comment_author)); 
    173166                  $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"; 
    175168            } 
    176169      } else { 
     
    190183      $where = ''; 
    191184      $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"); 
    200189      if($mostcommenteds) { 
    201190            if($chars > 0) { 
     
    203192                        $post_title = htmlspecialchars(stripslashes($post->post_title)); 
    204193                        $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>"; 
    206195                  } 
    207196            } else { 
     
    209198                        $post_title = htmlspecialchars(stripslashes($post->post_title)); 
    210199                        $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>"; 
    212201                  } 
    213202            } 
     
    228217      $where = ''; 
    229218      $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"); 
    238223      if($posts) { 
    239224            $using_permalink = get_settings('permalink_structure'); 
     
    245230                        $posts_total = intval($post->posts_total);                         
    246231                        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"; 
    248233                        } 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"; 
    250235                        } 
    251236            } 
     
    273258                        $comment_author_link = urlencode($comment_author); 
    274259                        $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"; 
    276261                        // If Total Comments Is Below Threshold 
    277262                        if($comment_total <= $threshhold && $threshhold != -1) { 
     
    290275 
    291276 
    292 ### Function:  Get Links Categories Stats 
     277### Function: Get Post Categories Stats 
     278function 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 
    293296function get_linkcats($display = true) { 
    294297      global $wpdb; 
    295298      $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            } 
    305304      } 
    306305      if($display) { 
     
    386385 
    387386            // 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)) { 
    389388                  $temp_stats .= '<h2>'.__('Plugins Stats', 'wp-stats').'</h2>'."\n"; 
    390389            } 
     
    439438            // Top Stats 
    440439            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"; 
    442441            } 
    443442 
     
    446445                  $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Recent Posts', 'wp-stats').'</strong></p>'."\n"; 
    447446                  $temp_stats .= '<ul>'."\n"; 
    448                   $temp_stats .= get_recentposts('', $stats_mostlimit, false); 
     447                  $temp_stats .= get_recentposts('post', $stats_mostlimit, false); 
    449448                  $temp_stats .= '</ul>'."\n"; 
    450449            } 
     
    454453                  $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Recent Comments', 'wp-stats').'</strong></p>'."\n"; 
    455454                  $temp_stats .= '<ul>'."\n"; 
    456                   $temp_stats .= get_recentcomments('', $stats_mostlimit, false); 
     455                  $temp_stats .= get_recentcomments('post', $stats_mostlimit, false); 
    457456                  $temp_stats .= '</ul>'."\n"; 
    458457            } 
     
    462461                  $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Most Commented Post', 'wp-stats').'</strong></p>'."\n"; 
    463462                  $temp_stats .= '<ul>'."\n"; 
    464                   $temp_stats .= get_mostcommented('', $stats_mostlimit, 0, false); 
     463                  $temp_stats .= get_mostcommented('post', $stats_mostlimit, 0, false); 
    465464                  $temp_stats .= '</ul>'."\n"; 
    466465            } 
     
    470469                  $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Most Emailed Post', 'wp-stats').'</strong></p>'."\n"; 
    471470                  $temp_stats .= '<ul>'."\n"; 
    472                   $temp_stats .= get_mostemailed('', $stats_mostlimit, 0, false); 
     471                  $temp_stats .= get_mostemailed('post', $stats_mostlimit, 0, false); 
    473472                  $temp_stats .= '</ul>'."\n"; 
    474473            } 
     
    479478                        $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Highest Rated Post', 'wp-stats').'</strong></p>'."\n"; 
    480479                        $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); 
    482481                        $temp_stats .= '</ul>'."\n"; 
    483482                  } 
     
    485484                        $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Most Rated Post', 'wp-stats').'</strong></p>'."\n"; 
    486485                        $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); 
    488487                        $temp_stats .= '</ul>'."\n"; 
    489488                  } 
     
    494493                  $temp_stats .= '<p><strong>'.$stats_mostlimit.' '.__('Most Viewed Post', 'wp-stats').'</strong></p>'."\n"; 
    495494                  $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); 
    497496                  $temp_stats .= '</ul>'."\n"; 
    498497            } 
     
    503502                  $temp_stats .= '<p><strong>'.__('Authors', 'wp-stats').'</strong></p>'."\n"; 
    504503                  $temp_stats .= '<ol>'."\n"; 
    505                   $temp_stats .= get_authorsstats('', false); 
     504                  $temp_stats .= get_authorsstats('post', false); 
    506505                  $temp_stats .= '</ol>'."\n"; 
    507506            } 
     
    525524                  $temp_stats .= '<p><strong>'.__('Post Categories', 'wp-stats').'</strong></p>'."\n"; 
    526525                  $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); 
    528527                  $temp_stats .= '</ul>'."\n"; 
    529528            } 
     
    560559            $totalpages = ceil($totalcomments/$perpage); 
    561560            // 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>'
    566565 
    567566            // Get Comments 
     
    579578                              // If New Title, Print It Out 
    580579                              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>"; 
    582581                                    $temp_stats .= '<blockquote>'.__('Comments Protected', 'wp-stats').'</blockquote>';  
    583582                              }                                          
     
    585584                              // If New Title, Print It Out 
    586585                              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>"; 
    588587                              } 
    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>";                                    
    590589                        } 
    591590                        $cache_post_title = $post_title; 
    592591                  } 
    593592            } 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>"; 
    595594            } 
    596595 
     
    640639                        $temp_stats .= ' ... <strong><a href="'.stats_page_link($comment_author_link, $totalpages).'" title="'.__('Go to Last Page', 'wp-stats').'">'.__('Last', 'wp-stats').' &raquo;</a></strong>'; 
    641640                  } 
    642                   $temp_stats .= '</p>'."\n"
     641                  $temp_stats .= '</p>'
    643642            } 
    644643            $temp_stats .= '<p><strong>&laquo;&laquo;</strong> <a href="'.$stats_url.'">'.__('Back To Stats Page', 'wp-stats').' </a></p>'; 
  • wp-stats/trunk/stats/wp-stats.pot

    r7207 r7427  
    11msgid "" 
    22msgstr "" 
    3 "Project-Id-Version: WP-Stats 2.06\n" 
     3"Project-Id-Version: WP-Stats 2.10\n" 
    44"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" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <gamerz84@homtail.com>\n" 
     
    1212"X-Poedit-KeywordsList: __;_e\n" 
    1313"X-Poedit-Basepath: .\n" 
     14"X-Poedit-Language: English\n" 
    1415"X-Poedit-SearchPath-0: .\n" 
    1516 
     
    5455 
    5556#: stats-options.php:81 
    56 #: stats.php:375 
     57#: stats.php:374 
    5758msgid "General Stats" 
    5859msgstr "" 
     
    6364 
    6465#: stats-options.php:88 
    65 #: stats.php:394 
     66#: stats.php:393 
    6667msgid "WP-EMail" 
    6768msgstr "" 
    6869 
    6970#: stats-options.php:93 
    70 #: stats.php:404 
     71#: stats.php:403 
    7172msgid "WP-Polls" 
    7273msgstr "" 
    7374 
    7475#: stats-options.php:98 
    75 #: stats.php:414 
     76#: stats.php:413 
    7677msgid "WP-PostRatings" 
    7778msgstr "" 
    7879 
    7980#: stats-options.php:103 
    80 #: stats.php:423 
     81#: stats.php:422 
    8182msgid "WP-PostViews" 
    8283msgstr "" 
    8384 
    8485#: stats-options.php:108 
    85 #: stats.php:431 
     86#: stats.php:430 
    8687msgid "WP-UserOnline" 
    8788msgstr "" 
    8889 
    8990#: stats-options.php:111 
    90 #: stats.php:441 
    91 #, php-format 
    92 msgid "Top %s Stats" 
     91#: stats.php:440 
     92#, php-format 
     93msgid "Top %s Post Stats" 
    9394msgstr "" 
    9495 
     
    127128 
    128129#: stats-options.php:135 
    129 #: stats.php:502 
     130#: stats.php:501 
    130131msgid "Authors Stats" 
    131132msgstr "" 
     
    133134#: stats-options.php:136 
    134135#: stats-widget.php:54 
    135 #: stats.php:503 
     136#: stats.php:502 
    136137msgid "Authors" 
    137138msgstr "" 
    138139 
    139140#: stats-options.php:137 
     141#: stats.php:510 
     142msgid "Comments' Members Stats" 
     143msgstr "" 
     144 
     145#: stats-options.php:138 
    140146#: stats.php:511 
    141 msgid "Comments' Members Stats" 
    142 msgstr "" 
    143  
    144 #: stats-options.php:138 
    145 #: stats.php:512 
    146147msgid "Comment Members" 
    147148msgstr "" 
    148149 
    149150#: stats-options.php:139 
    150 #: stats.php:520 
     151#: stats.php:519 
    151152msgid "Misc Stats" 
    152153msgstr "" 
    153154 
    154155#: stats-options.php:140 
    155 #: stats.php:525 
     156#: stats.php:524 
    156157msgid "Post Categories" 
    157158msgstr "" 
    158159 
    159160#: stats-options.php:141 
    160 #: stats.php:533 
     161#: stats.php:532 
    161162msgid "Link Categories" 
    162163msgstr "" 
     
    167168 
    168169#: stats-widget.php:49 
    169 #: stats.php:376 
     170#: stats.php:375 
    170171msgid "Total Stats" 
    171172msgstr "" 
     
    271272msgstr "" 
    272273 
    273 #: stats.php:38 
     274#: stats.php:39 
    274275msgid "WP-Stats" 
    275276msgstr "" 
    276277 
    277 #: stats.php:41 
     278#: stats.php:42 
    278279msgid "Stats" 
    279280msgstr "" 
    280281 
    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 
     284msgid "View post %s" 
     285msgstr "" 
     286 
     287#: stats.php:143 
     288#: stats.php:170 
     289#: stats.php:204 
     290#: stats.php:238 
     291#: stats.php:267 
    287292msgid "N/A" 
    288293msgstr "" 
    289294 
    290 #: stats.php:205 
    291 #: stats.php:211 
     295#: stats.php:167 
     296#: stats.php:194 
     297#: stats.php:200 
     298#, php-format 
     299msgid "View comments in post %s" 
     300msgstr "" 
     301 
     302#: stats.php:194 
     303#: stats.php:200 
    292304msgid "comments" 
    293305msgstr "" 
    294306 
     307#: stats.php:232 
     308#: stats.php:234 
     309#, php-format 
     310msgid "View posts posted by %s" 
     311msgstr "" 
     312 
     313#: stats.php:260 
     314#, php-format 
     315msgid "View all comments posted by %s" 
     316msgstr "" 
     317 
     318#: stats.php:377 
     319msgid "Authors To This Blog." 
     320msgstr "" 
     321 
    295322#: stats.php:378 
    296 msgid "Authors To This Blog." 
     323msgid "Posts Were Posted." 
    297324msgstr "" 
    298325 
    299326#: stats.php:379 
    300 msgid "Posts Were Posted." 
     327msgid "Pages Were Created." 
    301328msgstr "" 
    302329 
    303330#: stats.php:380 
    304 msgid "Pages Were Created." 
     331msgid "Comments Were Posted." 
    305332msgstr "" 
    306333 
    307334#: stats.php:381 
    308 msgid "Comments Were Posted." 
     335msgid "Different Nicks Were Represented In The Comments." 
    309336msgstr "" 
    310337 
    311338#: stats.php:382 
    312 msgid "Different Nicks Were Represented In The Comments." 
    313 msgstr "" 
    314  
    315 #: stats.php:383 
    316339msgid "Links Were Added" 
    317340msgstr "" 
    318341 
    319 #: stats.php:389 
     342#: stats.php:388 
    320343msgid "Plugins Stats" 
    321344msgstr "" 
    322345 
     346#: stats.php:395 
     347msgid "Emails Were Sent." 
     348msgstr "" 
     349 
    323350#: stats.php:396 
    324 msgid "Emails Were Sent." 
     351msgid "Emails Were Sent Successfully." 
    325352msgstr "" 
    326353 
    327354#: stats.php:397 
    328 msgid "Emails Were Sent Successfully." 
    329 msgstr "" 
    330  
    331 #: stats.php:398 
    332355msgid "Emails Failed To Send." 
    333356msgstr "" 
    334357 
     358#: stats.php:405 
     359msgid "Polls Were Created." 
     360msgstr "" 
     361 
    335362#: stats.php:406 
    336 msgid "Polls Were Created." 
     363msgid "Polls' Answers Were Given." 
    337364msgstr "" 
    338365 
    339366#: stats.php:407 
    340 msgid "Polls' Answers Were Given." 
    341 msgstr "
    342  
    343 #: stats.php:408 
     367#: stats.php:415 
     368msgid "Votes Were Casted.
     369msgstr "" 
     370 
    344371#: stats.php:416 
    345 msgid "Votes Were Casted." 
    346 msgstr "" 
    347  
    348 #: stats.php:417 
    349372msgid "Users Casted Their Vote." 
    350373msgstr "" 
    351374 
    352 #: stats.php:425 
     375#: stats.php:424 
    353376msgid "Views Were Generated." 
    354377msgstr "" 
    355378 
     379#: stats.php:432 
     380msgid "User(s) Online Now." 
     381msgstr "" 
     382 
    356383#: stats.php:433 
    357 msgid "User(s) Online Now.
     384msgid "Most users ever online was
    358385msgstr "" 
    359386 
    360387#: 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 
    366389msgid "On" 
    367390msgstr "" 
    368391 
    369 #: stats.php:446 
     392#: stats.php:445 
    370393msgid "Recent Posts" 
    371394msgstr "" 
    372395 
    373 #: stats.php:454 
     396#: stats.php:453 
    374397msgid "Recent Comments" 
    375398msgstr "" 
    376399 
    377 #: stats.php:462 
     400#: stats.php:461 
    378401msgid "Most Commented Post" 
    379402msgstr "" 
    380403 
    381 #: stats.php:470 
     404#: stats.php:469 
    382405msgid "Most Emailed Post" 
    383406msgstr "" 
    384407 
    385 #: stats.php:479 
     408#: stats.php:478 
    386409msgid "Highest Rated Post" 
    387410msgstr "" 
    388411 
    389 #: stats.php:485 
     412#: stats.php:484 
    390413msgid "Most Rated Post" 
    391414msgstr "" 
    392415 
    393 #: stats.php:494 
     416#: stats.php:493 
    394417msgid "Most Viewed Post" 
    395418msgstr "" 
    396419 
     420#: stats.php:563 
     421msgid "Comments Posted By" 
     422msgstr "" 
     423 
    397424#: stats.php:564 
    398 msgid "Comments Posted By" 
    399 msgstr "" 
    400  
    401 #: stats.php:565 
    402425#, php-format 
    403426msgid "Displaying <strong>%s</strong> To <strong>%s</strong> Of <strong>%s</strong> Comments" 
    404427msgstr "" 
    405428 
     429#: stats.php:580 
     430#: stats.php:586 
     431msgid "Posted On" 
     432msgstr "" 
     433 
     434#: stats.php:580 
     435msgid "Protected" 
     436msgstr "" 
     437 
    406438#: stats.php:581 
    407 #: stats.php:587 
    408 msgid "Posted On" 
    409 msgstr "" 
    410  
    411 #: stats.php:581 
    412 msgid "Protected" 
    413 msgstr "" 
    414  
    415 #: stats.php:582 
    416439msgid "Comments Protected" 
    417440msgstr "" 
    418441 
    419 #: stats.php:589 
     442#: stats.php:588 
     443#, php-format 
     444msgid "View the comment posted by %s" 
     445msgstr "" 
     446 
     447#: stats.php:588 
    420448msgid "Posted By" 
    421449msgstr "" 
    422450 
    423 #: stats.php:594 
     451#: stats.php:593 
    424452msgid "has not made any comments yet." 
    425453msgstr "" 
    426454 
    427 #: stats.php:603 
     455#: stats.php:602 
    428456msgid "Previous Page" 
    429457msgstr "" 
    430458 
    431 #: stats.php:611 
     459#: stats.php:610 
    432460msgid "Next Page" 
    433461msgstr "" 
    434462 
    435 #: stats.php:620 
     463#: stats.php:619 
    436464#, php-format 
    437465msgid "Pages (%s)" 
    438466ms