Plugin Directory

Changeset 655730


Ignore:
Timestamp:
01/20/2013 01:23:52 PM (13 years ago)
Author:
tosend.it
Message:

New 0.4 version is available

Location:
aeiou
Files:
3 edited
5 copied

Legend:

Unmodified
Added
Removed
  • aeiou/tags/0.4/index.php

    r655267 r655730  
    55Description: AEIOU is a powerfull plugin that export all wordpress users info into an XML file including user metadatas and allow to import the same xml file into a new wordpress keeping the metadata of each user. The plugin is able to export buddypress xprofile data too.
    66Author: toSend.it di Luisa Marra
    7 Version: 0.3
     7Version: 0.4
    88Author URI: http://tosend.it
    99*/
     
    1111if(!class_exists('AEIOU')){
    1212    class AEIOU{
    13         const VERSION = '0.3';
     13        const VERSION = '0.4';
    1414        const LANG_DOMAIN = 'AEIOU';
    1515       
     
    456456                                        $user['ID'] = $usr['ID'];
    457457                                        /*
    458                                          * TODO: If password is defined in the XML file we should to import it
     458                                         * If password is defined in the XML file the script uses it (as is)!
    459459                                         */
    460460                                        wp_update_user($user);
     
    470470                                         * New User must be created
    471471                                         */
     472                                        if(!isset($user['user_pass'])) $user['user_pass'] = '';
    472473                                        $userID = wp_insert_user($user);
    473474                                        $user['ID'] = $userID;
    474475                                        /*
    475                                          * TODO: If password is defined in the XML file we should to import it
     476                                         * If password is defined in the XML file we should to import it
    476477                                         */
    477478                                        wp_update_user($user);
     
    499500                                }
    500501                                do_action('aeiou_after_import_user', $user);
    501                                
     502                                flush();
    502503                            }
    503504                           
     
    522523           
    523524                if(empty($metaKey[0])) $metaKey = false;
    524                 if(is_serialized($value)) $value = unserialize($value);
     525                $value = maybe_unserialize($value);
    525526                if(!$metaKey || $this->exists=='replace'){
    526527                    delete_user_meta($userID, $key);
     
    556557                   
    557558                $optExists = !empty($option);
    558                 if(is_serialized($option)) $option = unserialize($option);
     559                $option = maybe_unserialize($option);
     560
    559561                if(!$optExists || $this->exists=='replace'){
    560562                    delete_user_option($userID, $key);
     
    602604                 */
    603605                $fieldId = $this->getXProfileFieldIDByName($name, $groupId);
    604                 $fieldData = is_serialized($value)? unserialize($value): $value;
     606                $fieldData = maybe_unserialize($value);
    605607                $oldValue = BP_XProfile_ProfileData::get_value_byid($fieldId, $userID);
    606608                if(is_null($oldValue) || ($oldValue == '' && $this->exists == 'update') || ($this->exists == 'replace') ){
     
    611613                    $data->field_id = $fieldId;
    612614                    $data->user_id = $userID;
    613                     $data->value = is_serialized($value)? unserialize($value): $value;
     615                    $data->value = maybe_unserialize($value);
    614616                    $data->save();
    615617                   
  • aeiou/tags/0.4/parsers.php

    r655267 r655730  
    8383               
    8484                'user_login'            => (string) $user->user_login,
    85                 'user_password'         => (string) isset($user->user_password)?$usr->user_password:'',
     85                'user_pass'             => (string) isset($user->user_pass)?$usr->user_pass:'',
    8686                'user_nicename'         => (string) $user->user_nicename,
    8787                'user_email'            => (string) $user->user_email,
  • aeiou/tags/0.4/readme.txt

    r655267 r655730  
    22Contributors: tosend.it
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CRB85JPKCSNZ6
    4 Tags: user, users, import, export, metadata, settings, options, BuddyPress, xprofile, Extended Profile, fields
     4Tags: user, users, import, export, metadata, settings, options, BuddyPress, xprofile, Extended Profile, fields, backup, migration
    55Requires at least: 3.4
    66Tested up to: 3.5
    7 Stable tag: 0.3
     7Stable tag: 0.4
    88License: GPLv2
    99
    10 Advanced Export/Import (Wordpress) Object Users
     10Advanced Export/Import (Wordpress) Object Users.
    1111
    1212== Description ==
    1313
    14 AEIOU is a powerfull plugin that export all wordpress users info into an XML file including user metadatas and allow to import the same xml file into a new wordpress keeping the metadata and Buddypress XProfile data of each user.
     14AEIOU is a powerfull plugin that export all WordPress users info into an XML file including user settings and options
     15and allow you to import the same data file into a new WordPress keeping all user informations about the users including
     16the Buddypress XProfile data of each user.
    1517
    1618**Note:** AEIOU requires SimpleXML PHP library to import data. Nothing more than wordpress is required for the export.
     
    4244== Changelog ==
    4345
     46= 0.4 (2013-01-21) =
     47* **Update:** All checks ''if is_serialized then unserialize'' were changed with method ''maybe_unserialize''
     48* **Bugfix:** Password was never read from the xml file due to the wrong naming
     49
    4450= 0.3 (2013-01-19) =
    4551* **New:** Added action aeiou_export_extra_data
    4652* **New:** Now the export filename has the website name and the current date time.
    4753* **Update:** Update software version
    48 
    4954
    5055= 0.2 (2013-01-18) =
  • aeiou/trunk/index.php

    r655267 r655730  
    55Description: AEIOU is a powerfull plugin that export all wordpress users info into an XML file including user metadatas and allow to import the same xml file into a new wordpress keeping the metadata of each user. The plugin is able to export buddypress xprofile data too.
    66Author: toSend.it di Luisa Marra
    7 Version: 0.3
     7Version: 0.4
    88Author URI: http://tosend.it
    99*/
     
    1111if(!class_exists('AEIOU')){
    1212    class AEIOU{
    13         const VERSION = '0.3';
     13        const VERSION = '0.4';
    1414        const LANG_DOMAIN = 'AEIOU';
    1515       
     
    456456                                        $user['ID'] = $usr['ID'];
    457457                                        /*
    458                                          * TODO: If password is defined in the XML file we should to import it
     458                                         * If password is defined in the XML file the script uses it (as is)!
    459459                                         */
    460460                                        wp_update_user($user);
     
    470470                                         * New User must be created
    471471                                         */
     472                                        if(!isset($user['user_pass'])) $user['user_pass'] = '';
    472473                                        $userID = wp_insert_user($user);
    473474                                        $user['ID'] = $userID;
    474475                                        /*
    475                                          * TODO: If password is defined in the XML file we should to import it
     476                                         * If password is defined in the XML file we should to import it
    476477                                         */
    477478                                        wp_update_user($user);
     
    499500                                }
    500501                                do_action('aeiou_after_import_user', $user);
    501                                
     502                                flush();
    502503                            }
    503504                           
     
    522523           
    523524                if(empty($metaKey[0])) $metaKey = false;
    524                 if(is_serialized($value)) $value = unserialize($value);
     525                $value = maybe_unserialize($value);
    525526                if(!$metaKey || $this->exists=='replace'){
    526527                    delete_user_meta($userID, $key);
     
    556557                   
    557558                $optExists = !empty($option);
    558                 if(is_serialized($option)) $option = unserialize($option);
     559                $option = maybe_unserialize($option);
     560
    559561                if(!$optExists || $this->exists=='replace'){
    560562                    delete_user_option($userID, $key);
     
    602604                 */
    603605                $fieldId = $this->getXProfileFieldIDByName($name, $groupId);
    604                 $fieldData = is_serialized($value)? unserialize($value): $value;
     606                $fieldData = maybe_unserialize($value);
    605607                $oldValue = BP_XProfile_ProfileData::get_value_byid($fieldId, $userID);
    606608                if(is_null($oldValue) || ($oldValue == '' && $this->exists == 'update') || ($this->exists == 'replace') ){
     
    611613                    $data->field_id = $fieldId;
    612614                    $data->user_id = $userID;
    613                     $data->value = is_serialized($value)? unserialize($value): $value;
     615                    $data->value = maybe_unserialize($value);
    614616                    $data->save();
    615617                   
  • aeiou/trunk/parsers.php

    r655267 r655730  
    8383               
    8484                'user_login'            => (string) $user->user_login,
    85                 'user_password'         => (string) isset($user->user_password)?$usr->user_password:'',
     85                'user_pass'             => (string) isset($user->user_pass)?$usr->user_pass:'',
    8686                'user_nicename'         => (string) $user->user_nicename,
    8787                'user_email'            => (string) $user->user_email,
  • aeiou/trunk/readme.txt

    r655267 r655730  
    22Contributors: tosend.it
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CRB85JPKCSNZ6
    4 Tags: user, users, import, export, metadata, settings, options, BuddyPress, xprofile, Extended Profile, fields
     4Tags: user, users, import, export, metadata, settings, options, BuddyPress, xprofile, Extended Profile, fields, backup, migration
    55Requires at least: 3.4
    66Tested up to: 3.5
    7 Stable tag: 0.3
     7Stable tag: 0.4
    88License: GPLv2
    99
    10 Advanced Export/Import (Wordpress) Object Users
     10Advanced Export/Import (Wordpress) Object Users.
    1111
    1212== Description ==
    1313
    14 AEIOU is a powerfull plugin that export all wordpress users info into an XML file including user metadatas and allow to import the same xml file into a new wordpress keeping the metadata and Buddypress XProfile data of each user.
     14AEIOU is a powerfull plugin that export all WordPress users info into an XML file including user settings and options
     15and allow you to import the same data file into a new WordPress keeping all user informations about the users including
     16the Buddypress XProfile data of each user.
    1517
    1618**Note:** AEIOU requires SimpleXML PHP library to import data. Nothing more than wordpress is required for the export.
     
    4244== Changelog ==
    4345
     46= 0.4 (2013-01-21) =
     47* **Update:** All checks ''if is_serialized then unserialize'' were changed with method ''maybe_unserialize''
     48* **Bugfix:** Password was never read from the xml file due to the wrong naming
     49
    4450= 0.3 (2013-01-19) =
    4551* **New:** Added action aeiou_export_extra_data
    4652* **New:** Now the export filename has the website name and the current date time.
    4753* **Update:** Update software version
    48 
    4954
    5055= 0.2 (2013-01-18) =
Note: See TracChangeset for help on using the changeset viewer.