Changeset 8068

Show
Ignore:
Timestamp:
02/26/07 06:05:23 (1 year ago)
Author:
GamerZ
Message:

Commit For The Day

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-email/trunk/email/email.php

    r7946 r8068  
    201201} 
    202202 
     203 
    203204### Function: E-Mail Page Title 
    204205function email_pagetitle($page_title) { 
    205206      $page_title = '» '.__('E-Mail', 'wp-email').$page_title; 
    206207      return $page_title; 
     208} 
     209 
     210 
     211### Function: E-Mail Post ID 
     212if(!function_exists('get_the_id')) { 
     213      function get_the_id() { 
     214            global $id; 
     215            return $id; 
     216      } 
    207217} 
    208218 
     
    490500                  $where = '1=1'; 
    491501            } 
    492             $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 = '' AND post_status = 'publish' GROUP BY $wpdb->email.email_postid ORDER  BY email_total DESC LIMIT $limit"); 
     502            $mostemailed= $wpdb->get_results("SELECT $wpdb->posts.*, 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 = '' AND post_status = 'publish' GROUP BY $wpdb->email.email_postid ORDER  BY email_total DESC LIMIT $limit"); 
    493503            if($mostemailed) { 
    494504                  if($chars > 0) { 
    495505                        foreach ($mostemailed as $post) { 
    496                                     $post_title = htmlspecialchars(stripslashes($post->post_title)); 
     506                                    $post_title = get_the_title(); 
    497507                                    $email_total = intval($post->email_total); 
    498508                                    $temp .= "<li><a href=\"".get_permalink()."\">".snippet_chars($post_title, $chars)."</a> - $email_total ".__('Emails', 'wp-email')."</li>\n"; 
     
    500510                  } else { 
    501511                        foreach ($mostemailed as $post) { 
    502                                     $post_title = htmlspecialchars(stripslashes($post->post_title)); 
     512                                    $post_title = get_the_title(); 
    503513                                    $email_total = intval($post->email_total); 
    504514                                    $temp .= "<li><a href=\"".get_permalink()."\">$post_title</a> - $email_total ".__('Emails', 'wp-email')."</li>\n"; 
  • wp-email/trunk/email/wp-email.pot

    r7946 r8068  
    33"Project-Id-Version: WP-EMail 2.10\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2007-02-12 20:18+0800\n" 
     5"PO-Revision-Date: 2007-02-26 13:14+0800\n" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <gamerz84@hotmail.com>\n" 
     
    9292 
    9393#: email-manager.php:126 
    94 #: email.php:34
    95 #: email.php:45
    96 #: email.php:72
    97 #: email.php:77
     94#: email.php:35
     95#: email.php:46
     96#: email.php:73
     97#: email.php:78
    9898msgid "Success" 
    9999msgstr "" 
    100100 
    101101#: email-manager.php:127 
    102 #: email.php:47
    103 #: email.php:73
     102#: email.php:48
     103#: email.php:74
    104104msgid "Failed" 
    105105msgstr "" 
     
    290290 
    291291#: email-options.php:115 
    292 #: email.php:90
     292#: email.php:91
    293293msgid "Recommended Article By %EMAIL_YOUR_NAME%: %EMAIL_POST_TITLE%" 
    294294msgstr "" 
     
    318318 
    319319#: email-options.php:127 
    320 #: email.php:91
     320#: email.php:92
    321321msgid "An Error Has Occured When Trying To Send The E-Mail" 
    322322msgstr "" 
    323323 
    324324#: email-options.php:130 
    325 #: email.php:91
     325#: email.php:92
    326326msgid "An Error Has Occured" 
    327327msgstr "" 
     
    656656 
    657657#: email.php:43 
    658 #: email.php:205 
     658#: email.php:206 
    659659msgid "E-Mail" 
    660660msgstr "" 
     
    664664msgstr "" 
    665665 
    666 #: email.php:21
     666#: email.php:22
    667667#, php-format 
    668668msgid "E-Mail '%s' To A Friend" 
    669669msgstr "" 
    670670 
    671 #: email.php:25
     671#: email.php:26
    672672msgid "Password Protected Post" 
    673673msgstr "" 
    674674 
    675 #: email.php:42
     675#: email.php:43
    676676#, php-format 
    677677msgid "Separate multiple entries with a comma. Maximum %s entries." 
    678678msgstr "" 
    679679 
    680 #: email.php:49
    681 #: email.php:50
     680#: email.php:50
     681#: email.php:51
    682682msgid "Emails" 
    683683msgstr "" 
    684684 
    685 #: email.php:50
    686 #: email.php:73
     685#: email.php:51
     686#: email.php:74
    687687msgid "N/A" 
    688688msgstr "" 
    689689 
    690 #: email.php:56
     690#: email.php:57
    691691#, php-format 
    692692msgid "Email a copy of <strong>%s</strong> to a Friend." 
    693693msgstr "" 
    694694 
    695 #: email.php:58
     695#: email.php:59
    696696msgid "Your name is empty." 
    697697msgstr "" 
    698698 
    699 #: email.php:58
     699#: email.php:59
    700700msgid "Your email is invalid or is empty." 
    701701msgstr "" 
    702702 
    703 #: email.php:59
     703#: email.php:60
    704704msgid "Your remarks is invalid." 
    705705msgstr "" 
    706706 
    707 #: email.php:60
     707#: email.php:61
    708708#, php-format 
    709709msgid "Friend's name (%s) is empty." 
    710710msgstr "" 
    711711 
    712 #: email.php:61
     712#: email.php:62
    713713#, php-format 
    714714msgid "Friend's email (%s) is invalid or is empty." 
    715715msgstr "" 
    716716 
    717 #: email.php:63
     717#: email.php:64
    718718#, php-format 
    719719msgid "Maximum %s entries allowed" 
    720720msgstr "" 
    721721 
    722 #: email.php:63
     722#: email.php:64
    723723msgid "Friends' name count does not tally with friends' email count." 
    724724msgstr "" 
    725725 
    726 #: email.php:64
     726#: email.php:65
    727727msgid "Image verification is empty." 
    728728msgstr "" 
    729729 
    730 #: email.php:64
     730#: email.php:65
    731731msgid "Image verification failed." 
    732732msgstr "" 
    733733 
    734 #: email.php:82
     734#: email.php:83
    735735msgid "E-Mail Image Verification" 
    736736msgstr "" 
    737737 
    738 #: email.php:82
     738#: email.php:83
    739739msgid "     Mail It!     " 
    740740msgstr "" 
    741741 
    742 #: email.php:83
     742#: email.php:84
    743743#, php-format 
    744744msgid "Please wait for <strong>%s Minutes</strong> before sending the next article." 
    745745msgstr "" 
    746746 
    747 #: email.php:90
     747#: email.php:91
    748748msgid "<p>Hi <strong>%EMAIL_FRIEND_NAME%</strong>,<br />Your friend, <strong>%EMAIL_YOUR_NAME%</strong>, has recommended this article entitled '<strong>%EMAIL_POST_TITLE%</strong>' to you.</p><p><strong>Here is his/her remarks:</strong><br />%EMAIL_YOUR_REMARKS%</p><p><strong>%EMAIL_POST_TITLE%</strong><br />Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%</p>%EMAIL_POST_CONTENT%<p>Article taken from %EMAIL_BLOG_NAME% - <a href=\"%EMAIL_BLOG_URL%\">%EMAIL_BLOG_URL%</a><br />URL to article: <a href=\"%EMAIL_PERMALINK%\">%EMAIL_PERMALINK%</a></p>" 
    749749msgstr "" 
    750750 
    751 #: email.php:90
     751#: email.php:91
    752752msgid "Hi %EMAIL_FRIEND_NAME%," 
    753753msgstr "" 
    754754 
    755 #: email.php:90
    756 #: email.php:91
    757 #: email.php:91
    758 #: email.php:91
    759 #: email.php:91
    760 #: email.php:91
     755#: email.php:91
     756#: email.php:92
     757#: email.php:92
     758#: email.php:92
     759#: email.php:92
     760#: email.php:92
    761761msgid "\n" 
    762762msgstr "" 
    763763 
    764 #: email.php:90
     764#: email.php:91
    765765msgid "Your friend, %EMAIL_YOUR_NAME%, has recommended this article entitled '%EMAIL_POST_TITLE%' to you." 
    766766msgstr "" 
    767767 
    768 #: email.php:90
    769 #: email.php:91
     768#: email.php:91
     769#: email.php:92
    770770msgid "" 
    771771"\n" 
     
    773773msgstr "" 
    774774 
    775 #: email.php:91
     775#: email.php:92
    776776msgid "Here is his/her remarks:" 
    777777msgstr "" 
    778778 
    779 #: email.php:91
     779#: email.php:92
    780780msgid "%EMAIL_YOUR_REMARKS%" 
    781781msgstr "" 
    782782 
    783 #: email.php:91
     783#: email.php:92
    784784msgid "%EMAIL_POST_TITLE%" 
    785785msgstr "" 
    786786 
    787 #: email.php:91
     787#: email.php:92
    788788msgid "Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%" 
    789789msgstr "" 
    790790 
    791 #: email.php:91
     791#: email.php:92
    792792msgid "%EMAIL_POST_CONTENT%" 
    793793msgstr "" 
    794794 
    795 #: email.php:91
     795#: email.php:92
    796796msgid "Article taken from %EMAIL_BLOG_NAME% - %EMAIL_BLOG_URL%" 
    797797msgstr "" 
    798798 
    799 #: email.php:91
     799#: email.php:92
    800800msgid "URL to article: %EMAIL_PERMALINK%" 
    801801msgstr "" 
    802802 
    803 #: email.php:91
     803#: email.php:92
    804804msgid "Article: <strong>%EMAIL_POST_TITLE%</strong> Has Been Sent To <strong>%EMAIL_FRIEND_NAME% (%EMAIL_FRIEND_EMAIL%)</strong></p>" 
    805805msgstr "" 
    806806 
    807 #: email.php:92
     807#: email.php:93
    808808msgid "Email This Post" 
    809809msgstr "" 
    810810 
    811 #: email.php:92
     811#: email.php:93
    812812msgid "Email This Page" 
    813813msgstr "" 
  • wp-email/trunk/readme.html

    r7946 r8068  
    293293                                    <li>FIXED: Suppress gethostbyaddr() Error</li> 
    294294                                    <li>FIXED: If page.php Is Not Found, single.php or index.php Will Be Used</li> 
     295                                    <li>FIXED: Wrong URL For Page Under Most E-Mailed Posts Listing</li> 
    295296                              </ul> 
    296297                        </li>