Plugin Directory

Changeset 1391594


Ignore:
Timestamp:
04/10/2016 07:17:17 PM (10 years ago)
Author:
manishkrag
Message:
  • No, more password send via email. According to WP 4.3
  • Tested with WP 4.5
  • Removed password Nag feature, no more required.
  • Optimized code.
  • Fixed couple of warnings.
  • Thanks to team youngtechleads to join.
Location:
members-import/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • members-import/trunk/members-import.php

    r1086650 r1391594  
    55Plugin URI:
    66Description: Allows the batch importation of users/members via an uploaded CSV file.
    7 Author: Soumi Das
     7Author: Manish Kumar Agarwal
    88Author URI: http://www.youngtechleads.com
    9 Version: 1.1
    10 Author Emailid: soumi.das1990@gmail.com/skype:soumibgb
     9Version: 1.2
     10Author Emailid: manishkrag@yahoo.co.in/skype:mfsi_manish
    1111*/
    1212
     13require_once( './password-change-mandatory.php' );
    1314
    1415// add admin menu
     
    3435    );
    3536    if (!current_user_can('manage_options'))
    36         wp_die( __('You do not have sufficient permissions to access this page.') );
     37        wp_die( __('You do not have sufficient permissions to access this page.') );
    3738
    3839    // if the form is submitted
     
    4142        $arr_rows = file($_FILES['csv_file']['tmp_name']);
    4243        $login_username        = isset( $_POST['login_username'] ) ? $_POST['login_username'] : false;
    43         $password_nag          = isset( $_POST['password_nag'] ) ? $_POST['password_nag'] : false;
     44
    4445        $new_member_notification = isset( $_POST['new_member_notification'] ) ? $_POST['new_member_notification'] : false;
    4546       
     
    120121                        }
    121122
    122                     // If we created a new user, maybe set password nag and send new user notification?
    123                     if ( $password_nag )
    124                         update_user_option( $user_id, 'default_password_nag', true, true );
    125 
    126123                    if ( $new_member_notification )
    127124                        wp_new_user_notification( $user_id, $userdata['user_pass'] );
     
    129126                    $user_ids[] = $user_id;
    130127                }
    131 
    132             }   // end of 'for each around arr_rows'
     128            }   // end of 'foreach around arr_rows'
    133129
    134130            if( $flag == 1 ) {
     
    146142        else
    147143            $html_message = "<div class='updated' style='color: red'>It seems the file was not uploaded correctly.</div>";
    148     }   // end of 'if mode is submit'
    149    
     144    } // end of 'if mode is submit'
    150145
    151146?>
     
    155150    <h2>CSV Members Import</h2>
    156151    <p>Please select the CSV file you want to import below.</p>
    157    
     152
    158153    <form action="users.php?page=members-import" method="post" enctype="multipart/form-data">
    159154        <input type="hidden" name="mode" value="submit">
     
    181176                </td>
    182177            </tr>
    183             <tr valign="top">
    184                     <th scope="row">Password nag: </th>
    185                     <td>
    186                         <label for="password_nag">
    187                             <input id="password_nag" name="password_nag" type="checkbox" value="1" />
    188                             Show password nag on new users signon.
    189                         </label>
    190                     </td>
    191                 </tr>
    192178            <tr>
    193179                <th scope="row">Notice: </th>
     
    204190<?php
    205191}   // end of 'function memberimport_page()'
    206 ?>
  • members-import/trunk/readme.txt

    r1228021 r1391594  
    11=== Members Import ===
    2 Contributors: soumidas
     2Contributors: manishkrag
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=soumi.das1990@gmail.com&item_name=Members%20Import%20&return=http://www.youngtechleads.com/thanks/
    44Tags: csv, user, import, users, member, members, batch, batch import, batch import members, batch import users, one click user creation, import csv, import from csv, user registration, wordpress members import,wordpress csv import, wordpress users import, buddypress, buddypress members import
    5 Stable tag: 1.1
    6 Tested up to: 4.3
     5Stable tag: 1.2
     6Tested up to: 4.5
    77
    88This plug-in allows you to batch import of users/members taken from an uploaded CSV file.
Note: See TracChangeset for help on using the changeset viewer.