Changeset 7946
- Timestamp:
- 02/12/07 12:19:31 (17 months ago)
- Location:
- wp-email/trunk
- Files:
-
- 9 modified
-
email/email-css.css (modified) (1 diff)
-
email/email-image-verify.php (modified) (1 diff)
-
email/email-manager.php (modified) (1 diff)
-
email/email-options.php (modified) (1 diff)
-
email/email.php (modified) (2 diffs)
-
email/wp-email-popup.php (modified) (1 diff)
-
email/wp-email.php (modified) (2 diffs)
-
email/wp-email.pot (modified) (5 diffs)
-
readme.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-email/trunk/email/email-css.css
r7640 r7946 2 2 +----------------------------------------------------------------+ 3 3 | | 4 | WordPress 2.1 Plugin: WP-EMail 2.1 0|4 | WordPress 2.1 Plugin: WP-EMail 2.11 | 5 5 | Copyright (c) 2007 Lester "GaMerZ" Chan | 6 6 | | -
wp-email/trunk/email/email-image-verify.php
r7640 r7946 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.1 Plugin: WP-EMail 2.1 0|5 | WordPress 2.1 Plugin: WP-EMail 2.11 | 6 6 | Copyright (c) 2007 Lester "GaMerZ" Chan | 7 7 | | -
wp-email/trunk/email/email-manager.php
r7640 r7946 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.1 Plugin: WP-EMail 2.1 0|5 | WordPress 2.1 Plugin: WP-EMail 2.11 | 6 6 | Copyright (c) 2007 Lester "GaMerZ" Chan | 7 7 | | -
wp-email/trunk/email/email-options.php
r7640 r7946 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.1 Plugin: WP-EMail 2.1 0|5 | WordPress 2.1 Plugin: WP-EMail 2.11 | 6 6 | Copyright (c) 2007 Lester "GaMerZ" Chan | 7 7 | | -
wp-email/trunk/email/email.php
r7838 r7946 490 490 $where = '1=1'; 491 491 } 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");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"); 493 493 if($mostemailed) { 494 494 if($chars > 0) { … … 842 842 843 843 844 ### Function: Modify Default WordPress Listing To Make It Sorted By Most E-Mailed 845 function email_fields($content) { 846 global $wpdb; 847 $content .= ", COUNT($wpdb->email.email_postid) AS email_total"; 848 return $content; 849 } 850 function email_join($content) { 851 global $wpdb; 852 $content .= " LEFT JOIN $wpdb->email ON $wpdb->email.email_postid = $wpdb->posts.ID"; 853 return $content; 854 } 855 function email_groupby($content) { 856 global $wpdb; 857 $content .= " $wpdb->email.email_postid"; 858 return $content; 859 } 860 function email_orderby($content) { 861 $orderby = trim(addslashes($_GET['orderby'])); 862 if(empty($orderby) && ($orderby != 'asc' || $orderby != 'desc')) { 863 $orderby = 'desc'; 864 } 865 $content = " email_total $orderby"; 866 return $content; 867 } 868 869 870 ### Process The Sorting 871 /* 872 if($_GET['sortby'] == 'email') { 873 add_filter('posts_fields', 'email_fields'); 874 add_filter('posts_join', 'email_join'); 875 add_filter('posts_groupby', 'email_groupby'); 876 add_filter('posts_orderby', 'email_orderby'); 877 } 878 */ 879 880 844 881 ### Function: Create E-Mail Table 845 882 add_action('activate_email/email.php', 'create_email_table'); -
wp-email/trunk/email/wp-email-popup.php
r7640 r7946 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.1 Plugin: WP-EMail 2.1 0|5 | WordPress 2.1 Plugin: WP-EMail 2.11 | 6 6 | Copyright (c) 2005 Lester "GaMerZ" Chan | 7 7 | | -
wp-email/trunk/email/wp-email.php
r7640 r7946 3 3 +----------------------------------------------------------------+ 4 4 | | 5 | WordPress 2.1 Plugin: WP-EMail 2.1 0|5 | WordPress 2.1 Plugin: WP-EMail 2.11 | 6 6 | Copyright (c) 2007 Lester "GaMerZ" Chan | 7 7 | | … … 30 30 31 31 ### We Use Page Template 32 include(get_page_template()); 32 if(file_exists(TEMPLATEPATH.'/page.php')) { 33 include(get_page_template()); 34 } elseif(file_exists(TEMPLATEPATH.'/single.php')) { 35 include(get_single_template()); 36 } else { 37 include(TEMPLATEPATH.'/index.php'); 38 } 33 39 ?> -
wp-email/trunk/email/wp-email.pot
r7754 r7946 3 3 "Project-Id-Version: WP-EMail 2.10\n" 4 4 "POT-Creation-Date: \n" 5 "PO-Revision-Date: 2007-02- 01 20:07+0800\n"5 "PO-Revision-Date: 2007-02-12 20:18+0800\n" 6 6 "Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 7 7 "Language-Team: Lester Chan <gamerz84@hotmail.com>\n" … … 290 290 291 291 #: email-options.php:115 292 #: email.php: 869292 #: email.php:906 293 293 msgid "Recommended Article By %EMAIL_YOUR_NAME%: %EMAIL_POST_TITLE%" 294 294 msgstr "" … … 318 318 319 319 #: email-options.php:127 320 #: email.php: 881320 #: email.php:918 321 321 msgid "An Error Has Occured When Trying To Send The E-Mail" 322 322 msgstr "" 323 323 324 324 #: email-options.php:130 325 #: email.php: 882325 #: email.php:919 326 326 msgid "An Error Has Occured" 327 327 msgstr "" … … 745 745 msgstr "" 746 746 747 #: email.php: 870747 #: email.php:907 748 748 msgid "<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>" 749 749 msgstr "" 750 750 751 #: email.php: 871751 #: email.php:908 752 752 msgid "Hi %EMAIL_FRIEND_NAME%," 753 753 msgstr "" 754 754 755 #: email.php: 871756 #: email.php: 873757 #: email.php: 875758 #: email.php: 876759 #: email.php: 877760 #: email.php: 878755 #: email.php:908 756 #: email.php:910 757 #: email.php:912 758 #: email.php:913 759 #: email.php:914 760 #: email.php:915 761 761 msgid "\n" 762 762 msgstr "" 763 763 764 #: email.php: 872764 #: email.php:909 765 765 msgid "Your friend, %EMAIL_YOUR_NAME%, has recommended this article entitled '%EMAIL_POST_TITLE%' to you." 766 766 msgstr "" 767 767 768 #: email.php: 872769 #: email.php: 874768 #: email.php:909 769 #: email.php:911 770 770 msgid "" 771 771 "\n" … … 773 773 msgstr "" 774 774 775 #: email.php: 873775 #: email.php:910 776 776 msgid "Here is his/her remarks:" 777 777 msgstr "" 778 778 779 #: email.php: 874779 #: email.php:911 780 780 msgid "%EMAIL_YOUR_REMARKS%" 781 781 msgstr "" 782 782 783 #: email.php: 875783 #: email.php:912 784 784 msgid "%EMAIL_POST_TITLE%" 785 785 msgstr "" 786 786 787 #: email.php: 876787 #: email.php:913 788 788 msgid "Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%" 789 789 msgstr "" 790 790 791 #: email.php: 877791 #: email.php:914 792 792 msgid "%EMAIL_POST_CONTENT%" 793 793 msgstr "" 794 794 795 #: email.php: 878795 #: email.php:915 796 796 msgid "Article taken from %EMAIL_BLOG_NAME% - %EMAIL_BLOG_URL%" 797 797 msgstr "" 798 798 799 #: email.php: 879799 #: email.php:916 800 800 msgid "URL to article: %EMAIL_PERMALINK%" 801 801 msgstr "" 802 802 803 #: email.php: 880803 #: email.php:917 804 804 msgid "Article: <strong>%EMAIL_POST_TITLE%</strong> Has Been Sent To <strong>%EMAIL_FRIEND_NAME% (%EMAIL_FRIEND_EMAIL%)</strong></p>" 805 805 msgstr "" 806 806 807 #: email.php: 889807 #: email.php:926 808 808 msgid "Email This Post" 809 809 msgstr "" 810 810 811 #: email.php: 889811 #: email.php:926 812 812 msgid "Email This Page" 813 813 msgstr "" -
wp-email/trunk/readme.html
r7838 r7946 292 292 <ul> 293 293 <li>FIXED: Suppress gethostbyaddr() Error</li> 294 <li>FIXED: If page.php Is Not Found, single.php or index.php Will Be Used</li> 294 295 </ul> 295 296 </li>
