Plugin Directory

Changeset 139043


Ignore:
Timestamp:
07/25/2009 03:56:33 AM (17 years ago)
Author:
ppaquet
Message:

version 1.3

Location:
export-emails/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • export-emails/trunk/export-emails.php

    r125881 r139043  
    22
    33/*
    4 
    5     Plugin Name: Export emails
    6     Plugin URI: http://www.joeswebtools.com/wordpress-plugins/export-emails/
    7     Description: Adds an export emails page that allows you to export the email list of your subscribers and the email list of all the people who left comments. Go to <a href="tools.php?page=export-emails/export-emails.php">Tools &rarr; Export Emails</a> after activating the plugin to access the email lists.
    8     Version: 1.2.1
    9     Author: Joe's Web Tools
    10     Author URI: http://www.joeswebtools.com/
    11 
    12     Copyright 2009 Philippe Paquet (email: [email protected])
    13 
    14     This program is free software; you can redistribute it and/or modify
    15     it under the terms of the GNU General Public License as published by
    16     the Free Software Foundation; either version 2 of the License, or
    17     (at your option) any later version.
    18 
    19     This program is distributed in the hope that it will be useful,
    20     but WITHOUT ANY WARRANTY; without even the implied warranty of
    21     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    22     GNU General Public License for more details.
    23 
    24     You should have received a copy of the GNU General Public License
    25     along with this program; if not, write to the Free Software
    26     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
    27 
    28 */
     4 *
     5 *  Plugin Name: Export emails
     6 *  Plugin URI: http://www.joeswebtools.com/wordpress-plugins/export-emails/
     7 *  Description: Adds an export emails page that allows you to export the email list of your subscribers and the email list of all the people who left comments. Go to <a href="tools.php?page=export-emails/export-emails.php">Tools &rarr; Export Emails</a> after activating the plugin to access the email lists.
     8 *  Version: 1.3
     9 *  Author: Joe's Web Tools
     10 *  Author URI: http://www.joeswebtools.com/
     11 *
     12 *  Copyright (c) 2009 Joe's Web Tools. All Rights Reserved.
     13 *
     14 *  This program is free software; you can redistribute it and/or modify
     15 *  it under the terms of the GNU General Public License as published by
     16 *  the Free Software Foundation; either version 2 of the License, or
     17 *  (at your option) any later version.
     18 *
     19 *  This program is distributed in the hope that it will be useful,
     20 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     21 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
     22 *  GNU General Public License for more details.
     23 *
     24 *  You should have received a copy of the GNU General Public License
     25 *  along with this program; if not, write to the Free Software
     26 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
     27 *
     28 *  If you are unable to comply with the terms of this license,
     29 *  contact the copyright holder for a commercial license.
     30 *
     31 *  We kindly ask that you keep links to Joe's Web Tools so
     32 *  other people can find out about this plugin.
     33 *
     34 */
    2935
    3036
    3137
     38
     39
     40/*
     41 *
     42 *  export_email_page
     43 *
     44 */
     45
    3246function export_email_page() {
    33 
    34     // Load language file
    35     $current_locale = get_locale();
    36     if(!empty($current_locale)) {
    37         $mo_file = dirname(__FILE__) . '/languages/export-emails-' . $current_locale . ".mo";
    38         if(@file_exists($mo_file) && is_readable($mo_file)) {
    39             load_textdomain('export-emails', $mo_file);
    40         }
    41     }
    4247
    4348    global $wpdb;
     
    5358    echo    '<div id="poststuff" class="ui-sortable">';
    5459    echo        '<div class="postbox opened">';
    55     echo            '<h3>' . __('Emails from the user database', 'export-emails') . '</h3>';
     60    echo            '<h3>Emails from the user database</h3>';
    5661    echo            '<div class="inside">';
    5762    echo                '<form method="post">';
     
    5964    echo                        '<tr>';
    6065    echo                            '<th scope="row" valign="top">';
    61     echo                                '<b>' . __('Users emails', 'export-emails') . '</b>';
     66    echo                                '<b>Users emails</b>';
    6267    echo                            '</th>';
    6368    echo                            '<td>';
     
    7984    echo    '<div id="poststuff" class="ui-sortable">';
    8085    echo        '<div class="postbox opened">';
    81     echo            '<h3>' . __('Emails from the comment database', 'export-emails') . '</h3>';
     86    echo            '<h3>Emails from the comment database</h3>';
    8287    echo            '<div class="inside">';
    8388    echo                '<form method="post">';
     
    8590    echo                        '<tr>';
    8691    echo                            '<th scope="row" valign="top">';
    87     echo                                '<b>' . __('Commenters emails', 'export-emails') . '</b>';
     92    echo                                '<b>Commenters emails</b>';
    8893    echo                            '</th>';
    8994    echo                            '<td>';
    9095    echo                                '<textarea readonly="readonly" rows="10" cols="40" onfocus="javascript:this.select();">';
    91                                             $email = $wpdb->get_col("SELECT comment_author_email FROM $wpdb->comments GROUP BY comment_author_email");
     96                                            $email = $wpdb->get_col("SELECT comment_author_email FROM $wpdb->comments WHERE comment_approved<>'spam' GROUP BY comment_author_email");
    9297                                            foreach($email as $email_out) {
    9398                                                echo $email_out . "\r\n";
     
    105110    echo    '<div id="poststuff" class="ui-sortable">';
    106111    echo        '<div class="postbox opened">';
    107     echo            '<h3>' . __('About') . '</h3>';
     112    echo            '<h3>About</h3>';
    108113    echo            '<div class="inside">';
    109114    echo                '<form method="post">';
     
    111116    echo                        '<tr>';
    112117    echo                            '<th scope="row" valign="top">';
    113     echo                                '<b>' . __('Like this plugin?', 'export-emails') . '</b>';
     118    echo                                '<b>Like this plugin?</b>';
    114119    echo                            '</th>';
    115120    echo                            '<td>';
    116     echo                                __('Developing, maintaining and supporting this plugin requires time. Why not do any of the following:', 'export-emails') . '<br />';
    117     echo                                '&nbsp;&bull;&nbsp;&nbsp;' . __('Check out our <a href="http://www.joeswebtools.com/wordpress-plugins/">other plugins</a>.', 'export-emails') . '<br />';
    118     echo                                '&nbsp;&bull;&nbsp;&nbsp;' . __('Link to the <a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">plugin homepage</a>, so other folks can find out about it.', 'export-emails') . '<br />';
    119     echo                                '&nbsp;&bull;&nbsp;&nbsp;' . __('Give this plugin a good rating on <a href="http://wordpress.org/extend/plugins/export-emails/">WordPress.org</a>.', 'export-emails') . '<br />';
    120     echo                                '&nbsp;&bull;&nbsp;&nbsp;' . __('Support further development with a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5162912">donation</a>.', 'export-emails') . '<br />';
     121    echo                                'Developing, maintaining and supporting this plugin requires time. Why not do any of the following:<br />';
     122    echo                                '&nbsp;&bull;&nbsp;&nbsp;Check out our <a href="http://www.joeswebtools.com/wordpress-plugins/">other plugins</a>.<br />';
     123    echo                                '&nbsp;&bull;&nbsp;&nbsp;Link to the <a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">plugin homepage</a>, so other folks can find out about it.<br />';
     124    echo                                '&nbsp;&bull;&nbsp;&nbsp;Give this plugin a good rating on <a href="http://wordpress.org/extend/plugins/export-emails/">WordPress.org</a>.<br />';
     125    echo                                '&nbsp;&bull;&nbsp;&nbsp;Support further development with a <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5162912">donation</a>.<br />';
    121126    echo                            '</td>';
    122127    echo                        '</tr>';
    123128    echo                        '<tr>';
    124129    echo                            '<th scope="row" valign="top">';
    125     echo                                '<b>' . __('Need support?', 'export-emails') . '</b>';
     130    echo                                '<b>Need support?</b>';
    126131    echo                            '</th>';
    127132    echo                            '<td>';
    128     echo                                    __('If you have any problems or good ideas, please talk about them on the <a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">plugin homepage</a>.', 'export-emails') . '<br />';
     133    echo                                    'If you have any problems or good ideas, please talk about them on the <a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">plugin homepage</a>.<br />';
    129134    echo                            '</td>';
    130135    echo                        '</tr>';
    131136    echo                        '<tr>';
    132137    echo                            '<th scope="row" valign="top">';
    133     echo                                '<b>' . __('Credits', 'export-emails') . '</b>';
     138    echo                                '<b>Credits</b>';
    134139    echo                            '</th>';
    135140    echo                            '<td>';
    136     echo                                    __('<a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">Export Emails</a> is developped by Philippe Paquet for <a href="http://www.joeswebtools.com/">Joe\'s Web Tools</a>. This plugin is released under the GNU GPL version 2.', 'export-emails') . '<br />';
     141    echo                                    '<a href="http://www.joeswebtools.com/wordpress-plugins/export-emails/">Export Emails</a> is developped by Philippe Paquet for <a href="http://www.joeswebtools.com/">Joe\'s Web Tools</a>. This plugin is released under the GNU GPL version 2. If you are unable to comply with the terms of the GNU General Public License, contact the copyright holder for a commercial license.<br />';
    137142    echo                            '</td>';
    138143    echo                        '</tr>';
     
    149154
    150155
     156
     157
     158/*
     159 *
     160 *  add_export_email_menu
     161 *
     162 */
     163
    151164function add_export_email_menu() {
    152165
     
    155168}
    156169
    157 
    158 
    159170add_action('admin_menu', 'add_export_email_menu');
    160171
  • export-emails/trunk/readme.txt

    r125881 r139043  
    44Tags: export email, export emails, export, email, emails, mailinglist, mailing, list, phplist, autoresponder, auto, responder, getresponse, get, response, constantcontact, constant, contact, aweber, icontact
    55Requires at least: 2.5
    6 Tested up to: 2.8
    7 Stable tag: 1.2.1
     6Tested up to: 2.8.2
     7Stable tag: 1.3
    88
    99Adds an export emails page that allows you to export the email list of your subscribers and the email list of all the people who left comments.
     
    3232
    3333
     34== Changelog ==
     35
     36= 1.3 =
     37* Remove emails from comments marked as spam from the list
     38* Compatibility check with WordPress 2.8.2
     39
     40= 1.2.1 =
     41* Compatibility check with WordPress 2.8
     42
     43= 1.2 =
     44* Minor localisation work
     45
     46= 1.1 =
     47* New look for the export emails page
     48
     49= 1.0 =
     50* Initial release
     51
     52
     53
    3454== Frequently Asked Questions ==
    3555
    3656= Why not exporting the email lists as files? =
    3757The very first implementation of this plugin was actually creating files for download. While it's a very convenient solution, there are security and privacy issues with it. The simple fact of having, even momentarily, a file on your server that contain the email addresses of all your subscribers is a significant risk. Because of that, it was decided against using downloadable files.
     58
     59= How can I support this plugin? =
     60If you enjoy this plugin and would like to help with the development, please consider [donating](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5162912). Otherwise, spread the word, report bugs and give this plugin a good rating.
     61
     62= How do I report a bug? =
     63If you find any bugs with the plugin or if you have any suggestions, please go to [the Export Emails plugin homepage](http://www.joeswebtools.com/wordpress-plugins/export-emails/) and leave a comment to let me know.
Note: See TracChangeset for help on using the changeset viewer.