Changeset 7946

Show
Ignore:
Timestamp:
02/12/07 12:19:31 (17 months ago)
Author:
GamerZ
Message:

If page.php not found, single.php will be used followed by index.php

Location:
wp-email/trunk
Files:
9 modified

Legend:

Unmodified
Added
Removed
  • wp-email/trunk/email/email-css.css

    r7640 r7946  
    22+----------------------------------------------------------------+ 
    33|                                                                                                                                         | 
    4 |     WordPress 2.1 Plugin: WP-EMail 2.10                                                       | 
     4|     WordPress 2.1 Plugin: WP-EMail 2.11                                                       | 
    55|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    66|                                                                                                                                         | 
  • wp-email/trunk/email/email-image-verify.php

    r7640 r7946  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-EMail 2.10                                                       | 
     5|     WordPress 2.1 Plugin: WP-EMail 2.11                                                       | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-email/trunk/email/email-manager.php

    r7640 r7946  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-EMail 2.10                                                       | 
     5|     WordPress 2.1 Plugin: WP-EMail 2.11                                                       | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-email/trunk/email/email-options.php

    r7640 r7946  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-EMail 2.10                                                       | 
     5|     WordPress 2.1 Plugin: WP-EMail 2.11                                                       | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-email/trunk/email/email.php

    r7838 r7946  
    490490                  $where = '1=1'; 
    491491            } 
    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"); 
    493493            if($mostemailed) { 
    494494                  if($chars > 0) { 
     
    842842 
    843843 
     844### Function: Modify Default WordPress Listing To Make It Sorted By Most E-Mailed 
     845function email_fields($content) { 
     846      global $wpdb; 
     847      $content .= ", COUNT($wpdb->email.email_postid) AS email_total"; 
     848      return $content; 
     849} 
     850function email_join($content) { 
     851      global $wpdb; 
     852      $content .= " LEFT JOIN $wpdb->email ON $wpdb->email.email_postid = $wpdb->posts.ID"; 
     853      return $content; 
     854} 
     855function email_groupby($content) { 
     856      global $wpdb; 
     857      $content .= " $wpdb->email.email_postid"; 
     858      return $content; 
     859} 
     860function 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/* 
     872if($_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 
    844881### Function: Create E-Mail Table 
    845882add_action('activate_email/email.php', 'create_email_table'); 
  • wp-email/trunk/email/wp-email-popup.php

    r7640 r7946  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-EMail 2.10                                                       | 
     5|     WordPress 2.1 Plugin: WP-EMail 2.11                                                       | 
    66|     Copyright (c) 2005 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
  • wp-email/trunk/email/wp-email.php

    r7640 r7946  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-EMail 2.10                                                       | 
     5|     WordPress 2.1 Plugin: WP-EMail 2.11                                                       | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
     
    3030 
    3131### We Use Page Template 
    32 include(get_page_template()); 
     32if(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} 
    3339?> 
  • wp-email/trunk/email/wp-email.pot

    r7754 r7946  
    33"Project-Id-Version: WP-EMail 2.10\n" 
    44"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" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <gamerz84@hotmail.com>\n" 
     
    290290 
    291291#: email-options.php:115 
    292 #: email.php:869 
     292#: email.php:906 
    293293msgid "Recommended Article By %EMAIL_YOUR_NAME%: %EMAIL_POST_TITLE%" 
    294294msgstr "" 
     
    318318 
    319319#: email-options.php:127 
    320 #: email.php:881 
     320#: email.php:918 
    321321msgid "An Error Has Occured When Trying To Send The E-Mail" 
    322322msgstr "" 
    323323 
    324324#: email-options.php:130 
    325 #: email.php:882 
     325#: email.php:919 
    326326msgid "An Error Has Occured" 
    327327msgstr "" 
     
    745745msgstr "" 
    746746 
    747 #: email.php:870 
     747#: email.php:907 
    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:871 
     751#: email.php:908 
    752752msgid "Hi %EMAIL_FRIEND_NAME%," 
    753753msgstr "" 
    754754 
    755 #: email.php:871 
    756 #: email.php:873 
    757 #: email.php:875 
    758 #: email.php:876 
    759 #: email.php:877 
    760 #: email.php:878 
     755#: email.php:908 
     756#: email.php:910 
     757#: email.php:912 
     758#: email.php:913 
     759#: email.php:914 
     760#: email.php:915 
    761761msgid "\n" 
    762762msgstr "" 
    763763 
    764 #: email.php:872 
     764#: email.php:909 
    765765msgid "Your friend, %EMAIL_YOUR_NAME%, has recommended this article entitled '%EMAIL_POST_TITLE%' to you." 
    766766msgstr "" 
    767767 
    768 #: email.php:872 
    769 #: email.php:874 
     768#: email.php:909 
     769#: email.php:911 
    770770msgid "" 
    771771"\n" 
     
    773773msgstr "" 
    774774 
    775 #: email.php:873 
     775#: email.php:910 
    776776msgid "Here is his/her remarks:" 
    777777msgstr "" 
    778778 
    779 #: email.php:874 
     779#: email.php:911 
    780780msgid "%EMAIL_YOUR_REMARKS%" 
    781781msgstr "" 
    782782 
    783 #: email.php:875 
     783#: email.php:912 
    784784msgid "%EMAIL_POST_TITLE%" 
    785785msgstr "" 
    786786 
    787 #: email.php:876 
     787#: email.php:913 
    788788msgid "Posted By %EMAIL_POST_AUTHOR% On %EMAIL_POST_DATE% In %EMAIL_POST_CATEGORY%" 
    789789msgstr "" 
    790790 
    791 #: email.php:877 
     791#: email.php:914 
    792792msgid "%EMAIL_POST_CONTENT%" 
    793793msgstr "" 
    794794 
    795 #: email.php:878 
     795#: email.php:915 
    796796msgid "Article taken from %EMAIL_BLOG_NAME% - %EMAIL_BLOG_URL%" 
    797797msgstr "" 
    798798 
    799 #: email.php:879 
     799#: email.php:916 
    800800msgid "URL to article: %EMAIL_PERMALINK%" 
    801801msgstr "" 
    802802 
    803 #: email.php:880 
     803#: email.php:917 
    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:889 
     807#: email.php:926 
    808808msgid "Email This Post" 
    809809msgstr "" 
    810810 
    811 #: email.php:889 
     811#: email.php:926 
    812812msgid "Email This Page" 
    813813msgstr "" 
  • wp-email/trunk/readme.html

    r7838 r7946  
    292292                              <ul> 
    293293                                    <li>FIXED: Suppress gethostbyaddr() Error</li> 
     294                                    <li>FIXED: If page.php Is Not Found, single.php or index.php Will Be Used</li> 
    294295                              </ul> 
    295296                        </li>