Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Javier Carazo

    (@carazo)

    htown,

    Sorry for the delay answering but I have been busy. Inline:

    So i have an existing site that I am doing some rearranging of fields on. All the same users just different meta. Should I delete All the users except for the admin and then do a fresh import?

    This could be the way, but yes, I wouldn’t do it (delete a user suppose more things..).

    If you want, we can do a mod of this plugin in order to update users instead of creating them only. But for this, write to use and we talk about quote.

    How do the fields in the csv file know what database to go to? wp_users or wp_usermeta?

    You have to use this headers and the plugin automatically will do it for you (some in the wp_users others in wp_usermeta): “user_nicename”, “user_url”, “display_name”, “nickname”, “first_name”, “last_name”, “description”, “jabber”, “aim” and “yim”.

    Every other header will be saved a meta in wp_usermeta.

    Plugin Author Javier Carazo

    (@carazo)

    I have made a new update and now you can also use “user_registered” as a data but you should use the WordPress standard format for this:

    The date the user registered. Format is Y-m-d H:i:s.

    It comes here: wp_update_user

    Can you update the plugin to check if the user is existing, and if so to update the meta per the csv? It would probably be nice to have the option to override existing meta values or skip if they exist.

    I gave it a shot here, it seems to work at importing meta for existing users.

    Plugin Author Javier Carazo

    (@carazo)

    Joshua,

    This project is currently in the WP.org repository, so I would like it won’t be uploaded to Github and also, it shouldn’t be authored by you.

    I can do this update but yes, we are full of work and we ask for a little donation to do it. Someone who need this new functionality can pay for it (it would be an hour of work 40€) and we do it (with some option also) and then we upload it for every one.

    What do you think? Tell me.

    I have been out those days, but now I will be able to answer soon.

    Thanks!

    Javier,

    This project is on WP.org, which means it is open source and anyone can edit it. The github repo I shared is forked form the github plugin mirror – every plugin on WP.org has a mirrored version on github. I forked it (copied it) and made some changes to suit what I was looking for, then openly offered that solution up on this forum.

    If you would prefer to not have people making changes to your code, and to keep it private so that you are the only author, then WP.org is not the proper place for it. I think donations are great, and paid work is important (that’s how I make a living as well), so perhaps someone else would be interested in that offer.

    I appreciate the work done so far, this plugin helped me out. Hopefully the change I made is useful to someone else!

    Best wishes,
    Joshua

    Plugin Author Javier Carazo

    (@carazo)

    Joshua,

    I didn’t know that there was a github plugin mirror, sorry.

    And yes, I know how free software (software libre for Spanish speakers) works.

    Thanks for the improvements and I will do the new functionality as soon as I will be able to do it, but surely I will do it in a different way.

    Best wishes and happy new year,

    Javier

    No worries, Javier! Thanks again for the great plugin, happy new year!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Importing new data over old data’ is closed to new replies.