WordPress.org

Plugin Directory

Changeset 168478


Ignore:
Timestamp:
10/29/09 17:01:13 (8 years ago)
Author:
epicalex
Message:

Updated Changelog
New Features added, including different admin email send and receive
Bug fixes

Location:
new-user-email-set-up
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • new-user-email-set-up/trunk/newuseremailsetup.php

    r119354 r168478  
    33Plugin Name: New User Email Setup 
    44Plugin URI: http://www.epicalex.com/new-user-email-set-up/ 
    5 Version: 0.5.1 
     5Version: 0.5.2 
    66Author: Alex Cragg 
    77Author URI: http://epicalex.com/ 
     
    1010 
    1111/* 
    12 Copyright (C) 2007 Alex Cragg (email: alex AT epicalex DOT com) 
     12Copyright (C) 2007 - 2009 Alex Cragg (email: alex AT epicalex DOT com) 
    1313 
    1414    This program is free software: you can redistribute it and/or modify 
     
    3737       
    3838// Root to this plugin's dir 
    39 $nue_root = WP_PLUGIN_URL. "/newuseremail/"; 
     39$nue_root = WP_PLUGIN_URL . '/'.dirname( plugin_basename(__FILE__)); 
    4040 
    4141if (!class_exists("NewUserEmailSetup")) { //Start Class 
     
    4646             
    4747        } 
     48 
    4849        function init() { 
    4950            $this->getAdminOptions(); 
    50             //$plugin_dir = basename(dirname(__FILE__)); 
    51             //load_plugin_textdomain( 'NewUserEmail', 'wp-content/plugins/' . $plugin_dir, $plugin_dir ); 
     51            load_plugin_textdomain( 'NewUserEmail', '', $nue_root .'/langs' ); 
     52        } 
     53         
     54        function nue_actlinks( $links ) { 
     55            global $file; 
     56            $plugin = plugin_basename(__FILE__); 
     57            //$plugin = ( function_exists('wp_nonce_url') ) ? wp_nonce_url($plugin, 'plugin-name-action_new_user_email') : $plugin; 
     58            if(function_exists('plugin_row_meta')) { 
     59                    //check_admin_referer('plugin-name-action_new_user_email'); 
     60                    // create link for 2.8 
     61                    if ($file == $plugin) { 
     62                        return array_merge( $links, array( sprintf( '<a href="options-general.php?page=%s">%s</a>', $plugin, __('Settings') ) ) 
     63                        ); 
     64                    } 
     65                return $links; 
     66            } elseif(function_exists('post_class')) { 
     67                // Add a link to this plugin's settings page for 2.7 
     68                $nue_settings_link = '<a href="options-general.php?page=' . $plugin . '">Settings</a>';  
     69                    array_unshift( $links, $nue_settings_link );  
     70                return $links; 
     71            } else {} 
    5272        } 
    5373                     
    54         // Added for 2.7 functionality 
     74        // Added for 2.7+ functionality 
    5575        function nue_admin_init(){ 
     76            global $nue_root; 
    5677            if(function_exists('register_setting')) { 
    57             register_setting('nue-options-group', $nue_options['html']); 
    58             register_setting('nue-options-group', $nue_options['fromaddress']); 
    59             register_setting('nue-options-group', $nue_options['from']); 
    60             register_setting('nue-options-group', $nue_options['subject']); 
    61             register_setting('nue-options-group', $nue_options['adminsubject']); 
    62             register_setting('nue-options-group', $nue_options['text']); 
    63             register_setting('nue-options-group', $nue_options['admintext']); 
     78            register_setting('nue-options-group', $nue_options); 
    6479            } 
    65         } 
     80            wp_register_style('NUEStyle', $nue_root . '/nue_admin.css'); 
     81        } 
     82         
     83        function nue_admin_styles() { 
     84            wp_enqueue_style('NUEStyle'); 
     85        } 
     86         
    6687        //Returns an array of admin options 
    6788        public function getAdminOptions() { 
     
    7091                'fromaddress' => 'Enter your admin email here', 
    7192                'from' => 'Enter the name you want your admin email sent from here. eg. Admin', 
     93                'adminnotifydiff' => 'no', 
     94                'adminnotify' => 'If you want the admin notification email sent to a different address than the one defined above, enter it here', 
    7295                'subject' => 'Welcome to %blogname%', 
    7396                'text' => 'Welcome %username% please find below your login details.<br /> I hope you enjoy our site.<br /> <strong>Username:</strong> %username%<br /> <strong>Password:</strong> %password%<br /> %loginurl%', 
     97                'admin' => 'yes', 
    7498                'adminsubject' => '%blogname% - New User Registration', 
    7599                'admintext' => 'There is a new user registered on your blog:<br /> <strong>Username:</strong> %username%<br /> <strong>Email:</strong> %useremail%' 
     
    110134            $nue_options['fromaddress'] = $_POST['newuseremailfromaddress']; 
    111135        } 
     136        if (isset($_POST['newuseremailadminnotifydiff'])) { 
     137            $nue_options['adminnotifydiff'] = $_POST['newuseremailadminnotifydiff']; 
     138        } 
     139        if (isset($_POST['newuseremailadminnotify'])) { 
     140            $nue_options['adminnotify'] = $_POST['newuseremailadminnotify']; 
     141        } 
    112142        if (isset($_POST['newuseremailsubject'])) { 
    113143            $nue_options['subject'] = $_POST['newuseremailsubject']; 
    114144        } 
    115145        if (isset($_POST['newuseremailtext'])) { 
    116             $nue_options['text'] = $_POST['newuseremailtext']; 
     146            $nue_options['text'] =  $_POST['newuseremailtext']; 
     147        } 
     148        if (isset($_POST['newuseremailadmin'])) { 
     149            $nue_options['admin'] = $_POST['newuseremailadmin']; 
    117150        } 
    118151        if (isset($_POST['newuseremailadminsubject'])) { 
     
    120153        } 
    121154        if (isset($_POST['newuseremailadmintext'])) { 
    122             $nue_options['admintext'] = $_POST['newuseremailadmintext']; 
     155            $nue_options['admintext'] = $_POST['newuseremailadmintext']; 
    123156        } 
    124157        update_option($this->adminOptionsName, $nue_options); 
     
    127160        <div class="updated"><p><strong><?php _e("Settings Updated.", "NewUserEmail");?></strong></p></div> 
    128161    <?php 
    129     } ?> 
     162    }  ?> 
    130163 
    131164<div class="wrap"> 
    132     <div id="icon-newusermail" class="icon32"> 
    133     <br/> 
     165    <div id="icon-users" class="icon32"><br/></div> 
     166        <h2>New User Email</h2> 
     167         
     168    <div class="postbox-container" style="width:70%;">  
     169        <div class="metabox-holder"> 
     170            <div class="meta-box-sortables"> 
     171                <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>"> 
     172                <?php settings_fields('nue-options-group'); ?> <!-- Added for 2.7 functionality --> 
     173                 
     174                        <div class="postbox close-me nue-left"> 
     175                            <h3 class="hndle"><span><?php _e('User Email Settings','NewUserEmail'); ?></span></h3> 
     176                                <div class="inside"> 
     177                                    <h4><?php _e('Allow HTML in Email Content?', 'NewUserEmail') ?></h4> 
     178                                        <label for="newuseremailhtml_yes"> 
     179                                        <input id="newuseremailhtml_yes" type="radio" value="text/HTML" <?php if ($nue_options['html'] == "text/HTML") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailhtml"/> 
     180                                        <?php _e('Yes', 'NewUserEmail') ?> 
     181                                        </label> 
     182                                        <label for="newuseremailhtml_no"> 
     183                                        <input id="newuseremailhtml_no" type="radio" value="text/plain" <?php if ($nue_options['html'] == "text/plain") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailhtml"/> 
     184                                        <?php _e('No', 'NewUserEmail') ?> 
     185                                        </label>  
     186                                         
     187                                    <h4><?php _e('Registration Email Subject', 'NewUserEmail') ?></h4> 
     188                                        <input id="newuseremailsubject" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes($nue_options['subject']), 'NewUserEmail') ?>" name="newuseremailsubject"/> 
     189                                         
     190                                    <h4><?php _e('Registration Email Text', 'NewUserEmail') ?></h4> 
     191                                        <textarea id="newuseremailtext" style="width: 98%; font-size: 12px;" rows="4" cols="60" name="newuseremailtext"><?php _e(stripslashes($nue_options['text']), 'NewUserEmail') ?> 
     192                                        </textarea> 
     193                                        <p><?php _e('Use this to create a custom email that is sent to new users when they register. It overides the default text and you can write anything at all in here, but remember to use the following variables so that your users still know how to login!', 'NewUserEmail') ?></p> 
     194                                         
     195                                        <p><?php _e('%username%, %useremail%, %password%, %siteurl%, %blogname%, and %loginurl%.', 'NewUserEmail') ?></p>  
     196                                        <p> 
     197                                        <?php _e('Note the percentage signs (%), each variable must have percentage signs around them with <strong>no spaces</strong>.  For an example text, using some of the variables, please see above.', 'NewUserEmail') ?> 
     198                                        </p> 
     199                                        <p><?php _e('<strong>IMPORTANT:</strong> Make sure that you test out your new email by registering yourself so that you see what your users are receiving.', 'NewUserEmail') ?></p> 
     200 
     201                                    <h4><?php _e('From Address', 'NewUserEmail') ?></h4> 
     202                                        <input id="newuseremailfromaddress" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes($nue_options['fromaddress']), 'NewUserEmail') ?>" name="newuseremailfromaddress"/> 
     203                                        <p><?php _e('NB You must have this email set up as a real email address, otherwise it will be sent from your host\'s mailbox, which looks ugly! This can be different from the address you have set up in your general WordPress options.', 'NewUserEmail') ?></p> 
     204 
     205                                    <h4><?php _e('From Name', 'NewUserEmail') ?></h4> 
     206                                        <input id="newuseremailfrom" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes($nue_options['from']), 'NewUserEmail') ?>" name="newuseremailfrom"/> 
     207                                        <p><?php _e('This could be something like \'Epic Alex\', or \'Admin\'.', 'NewUserEmail') ?></p> 
     208                                        <div class="submit"> 
     209                                            <input type="submit" name="nue_submit" value="<?php _e('Save', 'NewUserEmail') ?>" /> 
     210                                        </div> 
     211                                </div> 
     212                        </div> 
     213                        <div class="postbox close-me nue-right"> 
     214                            <h3 class="hndle"><span><?php _e('Admin Email Settings','NewUserEmail'); ?></span></h3> 
     215                                <div class="inside"> 
     216                                    <h4><?php _e('Send Notification Email to Admin on New Registration?', 'NewUserEmail') ?></h4> 
     217                                        <label for="newuseremailadmin_yes"> 
     218                                            <input id="newuseremailadmin_yes" type="radio" value="yes" <?php if ($nue_options['admin'] == "yes") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailadmin"/> 
     219                                            <?php _e('Yes', 'NewUserEmail') ?> 
     220                                        </label> 
     221                                        <label for="newuseremailadmin_no"> 
     222                                        <input id="newuseremailadmin_no" type="radio" value="no" <?php if ($nue_options['admin'] == "no") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailadmin"/> 
     223                                        <?php _e('No', 'NewUserEmail') ?> 
     224                                        </label> 
     225                                         
     226                                    <h4><?php _e('Send Notification Email to a Different Address than From Address?', 'NewUserEmail') ?></h4> 
     227                                        <label for="newuseremailadminnotifydiff_yes"> 
     228                                            <input id="newuseremailadminnotifydiff_yes" type="radio" value="yes" <?php if ($nue_options['adminnotifydiff'] == "yes") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailadminnotifydiff"/> 
     229                                            <?php _e('Yes', 'NewUserEmail') ?> 
     230                                        </label> 
     231                                        <label for="newuseremailadminnotifydiff_no"> 
     232                                            <input id="newuseremailadminnotifydiff_no" type="radio" value="no" <?php if ($nue_options['adminnotifydiff'] == "no") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailadminnotifydiff"/> 
     233                                            <?php _e('No', 'NewUserEmail') ?> 
     234                                        </label> 
     235                                         
     236                                    <h4><?php _e('Administration Notification Email Address', 'NewUserEmail') ?></h4> 
     237                                        <input id="newuseremailadminnotify" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes($nue_options['adminnotify']), 'NewUserEmail') ?>" name="newuseremailadminsubject"/> 
     238                                         
     239                                    <h4><?php _e('Administration Notification Email Subject', 'NewUserEmail') ?></h4> 
     240                                        <input id="newuseremailadminsubject" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes($nue_options['adminsubject']), 'NewUserEmail') ?>" name="newuseremailadminsubject"/> 
     241                                         
     242                                    <h4><?php _e('Administration Notification Email Text', 'NewUserEmail') ?></h4> 
     243                                        <textarea id="newuseremailadmintext" style="width: 98%; font-size: 12px;" rows="4" cols="60" name="newuseremailadmintext"><?php _e(stripslashes($nue_options['admintext']), 'NewUserEmail') ?> 
     244                                        </textarea> 
     245                                        <p> 
     246                                        <?php _e('This is to define the email that is sent to the Blog Administrator when a new user registers, you can use the same variables as above.', 'NewUserEmail') ?> 
     247                                        </p> 
     248                                    <div class="submit"> 
     249                                        <input type="submit" name="nue_submit" value="<?php _e('Save', 'NewUserEmail') ?>" /> 
     250                                    </div> 
     251                                </div> 
     252                        </div> 
     253                        <div class="clear"></div> 
     254                        <div class="postbox close-me"> 
     255                            <h3 class="hndle"><span><?php _e('Test','NewUserEmail'); ?></span></h3> 
     256                                <div class="inside"> 
     257                                <p><?php _e('Once you have saved the above options, this will show you approx. how the email will look, without any of the variables replaced, but with line breaks and formating etc, so send a test one to see it fully in action!', 'NewUserEmail') ?></p> 
     258                                <h4><?php _e('New User Email', 'NewUserEmail') ?></h4> 
     259                                <?php  
     260                                echo "<strong>Subject: </strong>" . $nue_options['subject'] . "<br />"; 
     261                                echo "<strong>From: </strong>" . $nue_options['from'] . " - " . $nue_options['fromaddress'] . "<br/><br/>"; 
     262                                echo $nue_options['text']; 
     263                                ?> 
     264                                <h4><?php _e('Admin Email', 'NewUserEmail') ?></h4> 
     265                                <?php 
     266                                echo "<strong>Subject: </strong>" . $nue_options['adminsubject'] . "<br /><br/>"; 
     267                                echo $nue_options['admintext']; 
     268                                ?> 
     269                                </div> 
     270                        </div> 
     271 
     272                        <div class="postbox close-me"> 
     273                            <h3 class="hndle"><span><?php _e('Support','NewUserEmail'); ?></span></h3> 
     274                                <div class="inside"> 
     275                                    <h4><?php _e('Help Me!', 'NewUserEmail') ?></h4> 
     276                                        <p><?php _e('If you need help with this plugin, or if you want to make a suggestion, then please email me at alex AT epicalex DOT com', 'NewUserEmail') ?><p> 
     277                                    <h4><?php _e('Support This Plugin!', 'NewUserEmail') ?></h4> 
     278                                        <p><?php _e('There are a few ways you can support me to say thanks for making this plugin, you can donate by paypal, or you can sign up to something through one of my affiliate links such as Bluehost or Dreamhost.', 'NewUserEmail') ?></p> 
     279                                        <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
     280                                            <input type="hidden" name="cmd" value="_s-xclick"> 
     281                                            <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> 
     282                                            <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"> 
     283                                            <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIH0QYJKoZIhvcNAQcEoIIHwjCCB74CAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC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GSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDcwOTE2MTIzNTI5WjAjBgkqhkiG9w0BCQQxFgQUO8VgKDY/L7ZK6dixcQQcelKP8jgwDQYJKoZIhvcNAQEBBQAEgYBwO7oj0n+w5qzFm7YhGpFhfFs9IY9OSZ48icbxpamPVBariw6d1/XRxYhe6W/7UGyAVRlKW1Nm5pHRvxWY9UAmHXMlMtHprs/OT3u8BJQ9E1T6a8qsHwdAQtefD52raiBwxPoEz7FXVjXD9SbSn33PLRmPIhiPJ4S+wSZudwKGfw==-----END PKCS7-----"> 
     284                                        </form> 
     285                                        <script src=http://www.bluehost.com/src/js/epicskitours/CODE15/88x31/3.gif></script> 
     286                                        <p>when you visit www.dreamhost.com and sign up for hosting, be sure to use the promo code ALEXMYSOUTHAM to get $50 off your bill, PLUS 10% extra bandwidth!</p> 
     287                                </div> 
     288                        </div> 
     289                </form> 
     290            </div>   
     291        </div> 
    134292    </div> 
    135     <h2>New User Email</h2> 
    136  
    137     <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>"> 
    138     <?php  
    139     if ( function_exists('wp_nonce_field') ) 
    140         wp_nonce_field('update-options'); 
    141         if (function_exists(' settings_fields')) { settings_fields('nue-options-group'); } ?> <!-- Added for 2.7 functionality --> 
    142         <div id="poststuff" class="meta-box-sortables">  
    143             <div class="postbox close-me nue-left"> 
    144                 <h3 class="hndle"><span><?php _e('User Email Settings','NewUserEmail'); ?></span></h3> 
    145                     <div class="inside"> 
    146                         <h4><?php _e('Allow HTML in Email Content?', 'NewUserEmail') ?></h4> 
    147                             <label for="newuseremailhtml_yes"> 
    148                             <input id="newuseremailhtml_yes" type="radio" value="text/HTML" <?php if ($nue_options['html'] == "text/HTML") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailhtml"/> 
    149                             <?php _e('Yes', 'NewUserEmail') ?> 
    150                             </label> 
    151                             <label for="newuseremailhtml_no"> 
    152                             <input id="newuseremailhtml_no" type="radio" value="text/plain" <?php if ($nue_options['html'] == "text/plain") { _e('checked="checked"', "NewUserEmail"); }?> name="newuseremailhtml"/> 
    153                             <?php _e('No', 'NewUserEmail') ?> 
    154                             </label>  
    155                              
    156                         <h4><?php _e('Registration Email Subject', 'NewUserEmail') ?></h4> 
    157                             <input id="newuseremailsubject" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes($nue_options['subject']), 'NewUserEmail') ?>" name="newuseremailsubject"/> 
    158                              
    159                         <h4><?php _e('Registration Email Text', 'NewUserEmail') ?></h4> 
    160                             <textarea id="newuseremailtext" style="width: 98%; font-size: 12px;" rows="4" cols="60" name="newuseremailtext"><?php _e(stripslashes($nue_options['text']), 'NewUserEmail') ?> 
    161                             </textarea> 
    162                             <p><?php _e('Use this to create a custom email that is sent to new users when they register. It overides the default text and you can write anything at all in here, but remember to use the following variables so that your users still know how to login!', 'NewUserEmail') ?></p> 
    163                              
    164                             <p><?php _e('%username%, %useremail%, %password%, %siteurl%, %blogname%, and %loginurl%.', 'NewUserEmail') ?></p>  
    165                             <p> 
    166                             <?php _e('Note the percentage signs (%), each variable must have percentage signs around them with <strong>no spaces</strong>.  For an example text, using some of the variables, please see above.', 'NewUserEmail') ?> 
    167                             </p> 
    168                             <p><?php _e('<strong>IMPORTANT:</strong> Make sure that you test out your new email by registering yourself so that you see what your users are receiving.', 'NewUserEmail') ?></p> 
    169  
    170                         <h4><?php _e('From Address', 'NewUserEmail') ?></h4> 
    171                             <input id="newuseremailfromaddress" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes($nue_options['fromaddress']), 'NewUserEmail') ?>" name="newuseremailfromaddress"/> 
    172                             <p><?php _e('NB You must have this email set up as a real email address, otherwise it will be sent from your host\'s mailbox, which looks ugly! This can be different from the address you have set up in your general WordPress options.', 'NewUserEmail') ?></p> 
    173  
    174                         <h4><?php _e('From Name', 'NewUserEmail') ?></h4> 
    175                             <input id="newuseremailfrom" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes($nue_options['from']), 'NewUserEmail') ?>" name="newuseremailfrom"/> 
    176                             <p><?php _e('This could be something like \'Epic Alex\', or \'Admin\'.', 'NewUserEmail') ?></p> 
    177                             <div class="submit"> 
    178                                 <input type="submit" name="nue_submit" value="<?php _e('Save', 'NewUserEmail') ?>" /> 
    179                             </div> 
    180                     </div> 
    181             </div> 
    182             <div class="postbox close-me nue-right"> 
    183                 <h3 class="hndle"><span><?php _e('Admin Email Settings','NewUserEmail'); ?></span></h3> 
    184                     <div class="inside"> 
    185                         <h4><?php _e('Administration Notification Email Subject', 'NewUserEmail') ?></h4> 
    186                             <input id="newuseremailadminsubject" type="text" size="40" style="font-size: 12px;" value="<?php _e(stripslashes($nue_options['adminsubject']), 'NewUserEmail') ?>" name="newuseremailadminsubject"/> 
    187                              
    188                         <h4><?php _e('Administration Notification Email Text', 'NewUserEmail') ?></h4> 
    189                             <textarea id="newuseremailadmintext" style="width: 98%; font-size: 12px;" rows="4" cols="60" name="newuseremailadmintext"><?php _e(stripslashes($nue_options['admintext']), 'NewUserEmail') ?> 
    190                             </textarea> 
    191                             <p> 
    192                             <?php _e('This is to define the email that is sent to the Blog Administrator when a new user registers, you can use the same variables as above.', 'NewUserEmail') ?> 
    193                             </p> 
    194                             <div class="submit"> 
    195                                 <input type="submit" name="nue_submit" value="<?php _e('Save', 'NewUserEmail') ?>" /> 
    196                             </div> 
    197                     </div> 
    198             </div> 
    199             <div class="clear"></div> 
    200             <div class="postbox close-me"> 
    201                 <h3 class="hndle"><span><?php _e('Test','NewUserEmail'); ?></span></h3> 
    202                     <div class="inside"> 
    203                     <p><?php _e('Once you have saved the above options, this will show you approx. how the email will look, without any of the variables replaced, but with line breaks and formating etc, so send a test one to see it fully in action!', 'NewUserEmail') ?></p> 
    204                     <h4><?php _e('New User Email', 'NewUserEmail') ?></h4> 
    205                     <?php  
    206                     echo "<strong>Subject: </strong>" . $nue_options['subject'] . "<br />"; 
    207                     echo "<strong>From: </strong>" . $nue_options['from'] . " - " . $nue_options['fromaddress'] . "<br/><br/>"; 
    208                     echo $nue_options['text']; 
    209                     ?> 
    210                     <h4><?php _e('Admin Email', 'NewUserEmail') ?></h4> 
    211                     <?php 
    212                     echo "<strong>Subject: </strong>" . $nue_options['adminsubject']. "<br /><br/>"; 
    213                     echo $nue_options['admintext']; 
    214                     ?> 
    215                     </div> 
    216             </div> 
    217  
    218             <div class="postbox close-me"> 
    219                 <h3 class="hndle"><span><?php _e('Support','NewUserEmail'); ?></span></h3> 
    220                     <div class="inside"> 
    221                         <h4><?php _e('Help Me!', 'NewUserEmail') ?></h4> 
    222                             <p><?php _e('If you need help with this plugin, or if you want to make a suggestion, then please email me at alex AT epicalex DOT com', 'NewUserEmail') ?><p> 
    223                         <h4><?php _e('Support This Plugin!', 'NewUserEmail') ?></h4> 
    224                             <p><?php _e('There are a few ways you can support me to say thanks for making this plugin, you can donate by paypal, or you can sign up to something through one of my affiliate links such as Bluehost or Dreamhost.', 'NewUserEmail') ?></p> 
    225                             <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> 
    226                                 <input type="hidden" name="cmd" value="_s-xclick"> 
    227                                 <input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but21.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"> 
    228                                 <img alt="" border="0" src="https://www.paypal.com/en_GB/i/scr/pixel.gif" width="1" height="1"> 
    229                                 <input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIH0QYJKoZIhvcNAQcEoIIHwjCCB74CAQExggEwMIIBLAIBADCBlDCBjjELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkNBMRYwFAYDVQQHEw1Nb3VudGFpbiBWaWV3MRQwEgYDVQQKEwtQYXlQYWwgSW5jLjETMBEGA1UECxQKbGl2ZV9jZXJ0czERMA8GA1UEAxQIbGl2ZV9hcGkxHDAaBgkqhkiG9w0BCQEWDXJlQHBheXBhbC5jb20CAQAwDQYJKoZIhvcNAQEBBQAEgYCTL5BBkUz91Q8Eczlpdag+dUOTV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kiG9w0BCQQxFgQUO8VgKDY/L7ZK6dixcQQcelKP8jgwDQYJKoZIhvcNAQEBBQAEgYBwO7oj0n+w5qzFm7YhGpFhfFs9IY9OSZ48icbxpamPVBariw6d1/XRxYhe6W/7UGyAVRlKW1Nm5pHRvxWY9UAmHXMlMtHprs/OT3u8BJQ9E1T6a8qsHwdAQtefD52raiBwxPoEz7FXVjXD9SbSn33PLRmPIhiPJ4S+wSZudwKGfw==-----END PKCS7-----"> 
    230                             </form> 
    231                             <script src=http://www.bluehost.com/src/js/epicskitours/CODE15/88x31/3.gif></script> 
    232                             <p>when you visit www.dreamhost.com and sign up for hosting, be sure to use the promo code ALEXMYSOUTHAM to get $50 off your bill, PLUS 10% extra bandwidth!</p> 
    233                     </div> 
    234             </div> 
    235         </div> 
    236     </form> 
    237         <script type="text/javascript"> 
     293     
     294    <div class="postbox-container" style="width:20%;">  
     295        <div class="metabox-holder">     
     296            <div class="meta-box-sortables">  
     297                <div id="takeaction" class="postbox">  
     298                    <h3 class="hndle"><span>Like this plugin?</span></h3>  
     299                    <div class="inside">  
     300                        <p>Why not do any or all of the following:</p> 
     301                            <ul> 
     302                                <li>Link to it so other folks can find out about it.</li> 
     303                                <li><a href="http://wordpress.org/extend/plugins/new-user-email-set-up/">Give it a good rating on WordPress.org.</a></li> 
     304                                <li><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=2017947">Donate a token of your appreciation.</a></li> 
     305                            </ul>                
     306                    </div>  
     307                </div>  
     308                 
     309                <div id="nuesupport" class="postbox">   
     310                    <h3 class="hndle"><span>Help me!</span></h3>  
     311                    <div class="inside">  
     312                        <p><?php _e('If you need help with this plugin, or if you want to make a suggestion, then please email me at alex AT epicalex DOT com, or leave a comment on <a href="http://epicalex.com/new-user-email-set-up/">the blog post</a>', 'NewUserEmail') ?></p>                 
     313                    </div>  
     314                </div>  
     315                 
     316                        <br/><br/><br/>  
     317            </div>  
     318        </div>  
     319    </div>  
     320             
     321    <script type="text/javascript"> 
    238322            <!-- 
    239323            jQuery('.postbox h3').before('<div class="handlediv" title="Click to toggle"><br /></div>');         
    240             jQuery('.postbox h3').click( function() { jQuery(jQuery(this).parent().get(0)).toggleClass('closed'); } ); 
     324            jQuery('.handlediv').click( function() { jQuery(this).parent('.postbox').toggleClass('closed'); } ); 
    241325            jQuery('.postbox.close-me').each(function(){ jQuery(this).addClass("closed"); 
    242326            }); 
     327            jQuery('#newuseremailadmin_no').click(function () { 
     328            jQuery('#newuseremailadminsubject, #newuseremailadmintext, #newuseremailadminnotify').attr("disabled", "disabled"); 
     329            }); 
     330            jQuery('#newuseremailadmin_yes').click(function () { 
     331            jQuery('#newuseremailadminsubject, #newuseremailadmintext, #newuseremailadminnotify').removeAttr("disabled"); 
     332            }); 
     333            jQuery('#newuseremailadminnotifydiff_no').click(function () { 
     334            jQuery('#newuseremailadminnotify').attr("disabled", "disabled"); 
     335            }); 
     336            jQuery('#newuseremailadminnotifydiff_yes').click(function () { 
     337            jQuery('#newuseremailadminnotify').removeAttr("disabled"); 
     338            }); 
     339            <?php if($nue_options['admin'] == 'no') { 
     340            echo "jQuery('#newuseremailadminsubject, #newuseremailadmintext, #newuseremailadminnotify').attr(\"disabled\", \"disabled\");"; 
     341            } 
     342            if($nue_options['adminnotifydiff'] == 'no') { 
     343            echo "jQuery('#newuseremailadminnotify').attr(\"disabled\", \"disabled\");"; 
     344            } 
     345            ?> 
    243346            //--> 
    244         </script> <!-- The arrow added for the dropdown currently doesn't work, the h3 header bar has to be clicked... --> 
    245          
     347    </script> 
     348           
    246349    <?php // Adds a link in the footer on the New User Email Setup page only with link to the plugin page and to my blog homepage. thanks to http://striderweb.com/ 
    247350    add_action('in_admin_footer', 'nue_admin_footer' ); 
     
    249352            $plugin_data = get_plugin_data( __FILE__ ); 
    250353            printf('%1$s | Version %2$s | by %3$s<br />', $plugin_data['Title'], $plugin_data['Version'], $plugin_data['Author']); 
    251         } 
     354        }        
     355         
    252356}//End function printNewUserEmailAdminPage() 
    253357     
     
    339443 
    340444if ( !function_exists('wp_new_user_notification') ) { 
    341 function wp_new_user_notification($user_id, $plaintext_pass = '') { 
    342 $new = new NewUserEmailSetup(); 
    343 $nue_options = $new->getAdminOptions(); 
    344     $user = new WP_User($user_id); 
    345  
    346     $user_login = stripslashes($user->user_login); 
    347     $user_email = stripslashes($user->user_email); 
    348         // These are the variables that can be used on the options page to be replaced in the email when sent. The variables are replaced here too. If you want to add more variables, make sure you add the replacement code too, otherwise nothing will happen... 
    349         $find = array('/%username%/i', '/%password%/i', '/%blogname%/i', '/%siteurl%/i', '/%loginurl%/i', '/%useremail%/i'); 
    350         $replace = array($user_login, $plaintext_pass, get_option('blogname'), get_option('siteurl'), get_option('siteurl').'/wp-login.php', $user_email); 
    351          
    352         // This is the email sent to the Blog Admin 
    353         $headers .= "MIME-Version: 1.0\n" . 
    354         "From: ". $user_email . "\n" .  
    355         "Content-Type: ". $nue_options['html'] ." charset=\"" . get_option('blog_charset') . "\"\n"; 
    356          
    357         $subject = stripslashes($nue_options['adminsubject']); 
    358         $subject = preg_replace($find, $replace, $subject); 
    359         $subject = preg_replace("/%.*%/", "", $subject); 
    360  
    361          
    362         $message = stripslashes($nue_options['admintext']); 
    363         $message = preg_replace($find, $replace, $message); 
    364         $message = preg_replace("/%.*%/", "", $message); 
    365  
    366     @newuser_mail($nue_options['fromaddress'], $subject, $message, $headers); 
    367  
    368     if ( empty($plaintext_pass) ) 
    369         return; 
    370         // This is the email sent to the New User 
    371         $headers .= "MIME-Version: 1.0\n" . 
    372         "From: ". $nue_options['from'] ."<". $nue_options['fromaddress'] . ">\n" .  
    373         "Content-Type: ". $nue_options['html'] ." charset=\"" . get_option('blog_charset') . "\"\n"; 
    374          
    375         $subject = stripslashes($nue_options['subject']); 
    376         $subject = preg_replace($find, $replace, $subject); 
    377         $subject = preg_replace("/%.*%/", "", $subject);     
    378  
    379         $message = stripslashes($nue_options['text']); 
    380         $message = preg_replace($find, $replace, $message); 
    381         $message = preg_replace("/%.*%/", "", $message); 
    382          
    383     newuser_mail($user_email, $subject, $message, $headers); 
    384 } 
     445    function wp_new_user_notification($user_id, $plaintext_pass = '') { 
     446    $new = new NewUserEmailSetup(); 
     447    $nue_options = $new->getAdminOptions(); 
     448        $user = new WP_User($user_id); 
     449 
     450        $user_login = stripslashes($user->user_login); 
     451        $user_email = stripslashes($user->user_email); 
     452            // These are the variables that can be used on the options page to be replaced in the email when sent. The variables are replaced here too. If you want to add more variables, make sure you add the replacement code too, otherwise nothing will happen... 
     453            $find = array('/%username%/i', '/%password%/i', '/%blogname%/i', '/%siteurl%/i', '/%loginurl%/i', '/%useremail%/i'); 
     454            $replace = array($user_login, $plaintext_pass, get_option('blogname'), get_option('siteurl'), get_option('siteurl').'/wp-login.php', $user_email); 
     455             
     456            // This is the email sent to the Blog Admin 
     457            if($nue_options['admin'] == 'yes') {  
     458            $headers .= "MIME-Version: 1.0\n" . 
     459            "From: ". $user_email . "\n" .  
     460            "Content-Type: ". $nue_options['html'] ." charset=\"" . get_option('blog_charset') . "\"\n"; 
     461             
     462            $subject = stripslashes($nue_options['adminsubject']); 
     463            $subject = preg_replace($find, $replace, $subject); 
     464            $subject = preg_replace("/%.*%/", "", $subject); 
     465 
     466             
     467            $message = stripslashes($nue_options['admintext']); 
     468            $message = preg_replace($find, $replace, $message); 
     469            $message = preg_replace("/%.*%/", "", $message); 
     470 
     471            if($nue_options['adminnotifydiff'] == 'yes') {  
     472            $to = $nue_options['adminnotify'] ; 
     473            } else {  
     474            $to = $nue_options['fromaddress'] ; 
     475            }; 
     476             
     477        @newuser_mail($to, $subject, $message, $headers); 
     478            } else {} 
     479 
     480        if ( empty($plaintext_pass) ) 
     481            return; 
     482            // This is the email sent to the New User 
     483            $headers .= "MIME-Version: 1.0\n" . 
     484            "From: \"".$nue_options['from']."\" <".$nue_options['fromaddress'].">\n" .  
     485            "Content-Type: ". $nue_options['html'] ." charset=\"" . get_option('blog_charset') . "\"\n"; 
     486             
     487            $subject = stripslashes($nue_options['subject']); 
     488            $subject = preg_replace($find, $replace, $subject); 
     489            $subject = preg_replace("/%.*%/", "", $subject);     
     490 
     491            $message = stripslashes($nue_options['text']); 
     492            $message = preg_replace($find, $replace, $message); 
     493            $message = preg_replace("/%.*%/", "", $message); 
     494             
     495        newuser_mail($user_email, $subject, $message, $headers); 
     496    } 
    385497} 
    386498     
     
    398510        } 
    399511        if (function_exists('add_options_page')) { 
    400             add_options_page(  
     512            $page = add_options_page(  
    401513                'New User Email Setup', 
    402514                'New User Email', 
     
    406518                );       
    407519        } 
     520    add_action('admin_print_styles-' . $page, array(&$new_user_email_setup, 'nue_admin_styles')); 
    408521    }    
    409522} 
     
    414527    add_action('activate_'.basename(__FILE__),  array(&$new_user_email_setup, 'init')); 
    415528    add_action('admin_init', array(&$new_user_email_setup,'nue_admin_init' )); 
     529    if(function_exists('post_class')) { 
     530        add_filter('plugin_action_links_'.plugin_basename(__FILE__), array(&$new_user_email_setup,'nue_actlinks' )); 
     531    } 
     532    if(function_exists('plugin_row_meta')) { 
     533        add_filter( 'plugin_row_meta', array(&$new_user_email_setup, 'nue_actlinks', 10, 2 )); 
     534    } 
    416535} 
    417536 
  • new-user-email-set-up/trunk/readme.txt

    r119354 r168478  
    44Tags: New User, Registration Email, Welcome Email, Admin, User Management  
    55Requires at least: 2.0.2 
    6 Tested up to: 2.7.1 
     6Tested up to: 2.8.5 
    77Stable tag: trunk 
    88 
     
    1414It also defines the message body and subject for the email sent to the blog administrator. The plugin allows HTML in the emails. 
    1515 
    16 Recent Updates 
    17 1. Added automatic update from old style options to new array style 
    18 2. Added security with wp_nonce 
    19 3. Functionality if admin has altered the root to wp_content 
    20 4. Added Class structure to avoid any possible conflicts 
    21 5. Changed options to be saved in an array, making a smaller footprint on the database 
    22 6. Added 2.7+ compatibility. 
    23 7. Added the possibility to use a From Name along with the From Address 
    24 8. Added a link in the WordPress footer on the admin page to give a quick link to the plugin homepage if support is needed. Thanks to Striderweb 
    25  
    2616== Installation == 
    2717 
     
    31214. Now go to Settings (Options if pre WP2.5)>New User Email and change the default text to what you want, remembering to use the variables! 
    32225. Now make sure to test your new email, and you're done!! 
    33 6. If updating from an older version, please make sure your old options are still saved. The options structure was changed at v0.5 and updated to manually delete old style options at v0.5.1. 
     236. If updating from an older version, please make sure your old options are still saved. The options structure was changed at v0.5 and updated to automatically delete old-style options at v0.5.1. 
     24 
     25== Changelog = 
     26 
     27= Version 0.5.2 = 
     281. Fixed issue with final letter of From name being stripped 
     291. Fixed jQuery issues with box toggle 
     301. Added option to send admin notification to a different address than the user receives their email from. 
     311. Changed layout, Yoast style...! 
     321. General code tidying. 
     33 
     34= Version 0.5.1 = 
     351. Added Option to not send admin email 
     361. Added some jquery to disable certain fields on certain answers 
     371. Added automatic update from old style options to new array style 
     38 
     39= Version 0.5 = 
     401. Added security with wp_nonce 
     411. Functionality if admin has altered the root to wp_content 
     421. Added Class structure to avoid any possible conflicts 
     431. Changed options to be saved in an array, making a smaller footprint on the database 
     441. Added 2.7+ compatibility. 
     451. Added the possibility to use a From Name along with the From Address 
     461. Added a link in the WordPress footer on the admin page to give a quick link to the plugin homepage if support is needed. Thanks to Striderweb 
     47 
     48= Version 0.2.5 = 
     491. Admin page style updated ready for WordPress 2.5 release 
     50 
     51= Version 0.2.1 = 
     521. Fixed some HTML issues by adding stripslashes() 
     53 
     54= Version 0.2 = 
     551. Added HTML email functionality  
     561. Removed some plugin conflicts by renaming some variables 
     57 
     58= Version 0.1 =  
     591. Initial Release 
    3460 
    3561== Frequently Asked Questions == 
     
    5177You are using PHP 4 and the plugin uses functions introduced in PHP 5. Please either upgrade to PHP 5, or download the alternative PHP 4 Branch of this plugin from <a href="http://plugins.trac.wordpress.org/export/118896/new-user-email-set-up/branches/PHP4/newuseremailsetupphp4.php">here</a>. 
    5278 
     79= Can you implement function X? = 
     80 
     81That depends on what that function is, and whether I'm free to do it/able to do it. It will also depend on whether the custom version will be paid work. Email me at alex at epicalex dot com for more on this. 
     82 
    5383== Screenshots == 
    5484 
Note: See TracChangeset for help on using the changeset viewer.