Changeset 6112
- Timestamp:
- 06/09/06 10:24:59 (2 years ago)
- Files:
-
- wp-email/trunk/email/email.php (modified) (3 diffs)
- wp-email/trunk/readme.html (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
wp-email/trunk/email/email.php
r6084 r6112 4 4 Plugin URI: http://www.lesterchan.net/portfolio/programming.php 5 5 Description: Enable You To Send Your Webblog Entry To A Friend. 6 Version: 2.0 56 Version: 2.06 7 7 Author: GaMerZ 8 8 Author URI: http://www.lesterchan.net … … 404 404 ### Function: Get Most E-Mailed 405 405 if(!function_exists('get_mostemailed')) { 406 function get_mostemailed($mode = '', $limit = 10 ) {406 function get_mostemailed($mode = '', $limit = 10, $chars = 0) { 407 407 global $wpdb, $post; 408 408 $where = ''; … … 416 416 $mostemailed= $wpdb->get_results("SELECT $wpdb->posts.ID, post_title, post_name, post_date, COUNT($wpdb->email.email_postid) AS 'email_total' FROM $wpdb->email LEFT JOIN $wpdb->posts ON $wpdb->email.email_postid = $wpdb->posts.ID WHERE post_date < '".current_time('mysql')."' AND $where AND post_password = '' GROUP BY $wpdb->email.email_postid ORDER BY email_total DESC LIMIT $limit"); 417 417 if($mostemailed) { 418 foreach ($mostemailed as $post) { 419 $post_title = htmlspecialchars(stripslashes($post->post_title)); 420 $email_total = intval($post->email_total); 421 echo "<li><a href=\"".get_permalink()."\">$post_title</a> - $email_total ".__('Emails')."</li>"; 418 if($chars > 0) { 419 foreach ($mostemailed as $post) { 420 $post_title = htmlspecialchars(stripslashes($post->post_title)); 421 $email_total = intval($post->email_total); 422 echo "<li><a href=\"".get_permalink()."\">".snippet_chars($post_title, $chars)."</a> - $email_total ".__('Emails')."</li>"; 423 } 424 } else { 425 foreach ($mostemailed as $post) { 426 $post_title = htmlspecialchars(stripslashes($post->post_title)); 427 $email_total = intval($post->email_total); 428 echo "<li><a href=\"".get_permalink()."\">$post_title</a> - $email_total ".__('Emails')."</li>"; 429 } 422 430 } 423 431 } else { wp-email/trunk/readme.html
r6098 r6112 3 3 <head> 4 4 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 5 <title>WP-EMail 2.0 5Readme</title>5 <title>WP-EMail 2.06 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-EMail 2.0 5 <span style="color: #aaaaaa;">Readme</span></div>183 <div id="Title">WP-EMail 2.06 <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-EMail%202.0 5%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>');204 document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-EMail%202.06%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-email/" title="http://dev.wp-plugins.org/browser/wp-email/">http://dev.wp-plugins.org/browser/wp-email/</a></p> 212 212 <p><b>Support Forums:</b><br /><b>»</b> <a href="http://forums.lesterchan.net/viewforum.php?f=13" title="http://forums.lesterchan.net/viewforum.php?f=13">http://forums.lesterchan.net/viewforum.php?f=13</a></p> 213 <p><b>Updated:</b><br /><b>»</b> 1st Ju ne2006</p>213 <p><b>Updated:</b><br /><b>»</b> 1st July 2006</p> 214 214 <div class="SubSubTitle">Changelog</div> 215 215 <ul> 216 <li> 217 <b>Version 2.06 (01-07-2006)</b> 218 <ul> 219 <li>FIXED: Modified Get Most Emailed Post Function</li> 220 </ul> 221 </li> 216 222 <li> 217 223 <b>Version 2.05 (06-06-2006)</b> … … 341 347 <div id="Upgrade" style="display: none;"> 342 348 <div class="SubTitle">» Upgrade Instructions</div> 343 <div class="SubSubTitle">From v2.0x To v2.0 5</div>349 <div class="SubSubTitle">From v2.0x To v2.06</div> 344 350 <ol> 345 351 <li> … … 360 366 </li> 361 367 </ol> 362 <div class="SubSubTitle">From v1.0x To v2.0 5</div>368 <div class="SubSubTitle">From v1.0x To v2.06</div> 363 369 <ol> 364 370 <li> … … 476 482 </div> 477 483 </div> 478 <p id="Copyright">WP-EMail 2.0 5<br />Copyright © 2006 Lester 'GaMerZ' Chan. All Rights Reserved.</p>484 <p id="Copyright">WP-EMail 2.06<br />Copyright © 2006 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 479 485 </body> 480 486 </html>
