WordPress.org

Ready to get started?Download WordPress

Forums

Profile Builder - front-end user registration, login and edit profile
[resolved] Update user in front end registration when user exists (4 posts)

  1. bestprogrammerintheworld
    Member
    Posted 7 months ago #

    Hello

    I'm using the free version of PB and it works great. When a username already exists in the database, it doesn't get added into the database and the user gets a warning. That would be the ordinary scenario....

    BUT I would like to UPDATE the affected user (if user with that username already exists) user instead of inserting. How would I achieve this without modifiying the plugins code!?

    http://wordpress.org/plugins/profile-builder/

  2. barinagabriel
    Member
    Plugin Author

    Posted 7 months ago #

    Hello,

    I *think* that this might be able to achieve using the built-in filters, but this requires quite a lot of work, coding knowledge, and can also backfire on you.

    The question is, why would you want to overwrite an existing user? In theory anyone can come and overwrite another user's info, and thus preventing that person to log in; maybe if you provide a little bit more info, so that I can understand better...

    Don't get me wrong, I would happily help you with some pointers, just think this through!

    Regards,
    Gabriel

  3. bestprogrammerintheworld
    Member
    Posted 7 months ago #

    Hello Gabriel!

    I was coding customized membership-functions with related course(s) to each user. Every term users has to signup for courses and my initial thought was to simply update course(s) if the same user was signing up again...

    BUT You're absolutely right!! I've did a lot of thinking about this and I totally agree. Sometimes you simply think to much about the user-friendliness without concering about security.

    My solution: Instead I simply create a new username for each term (like {term}_{first name}_{last_name}. This way I can also know what users has been on which courses at which term.

    Thanks for pointing me into right direction! :-)

  4. barinagabriel
    Member
    Plugin Author

    Posted 7 months ago #

    Hey there,

    think nothing of it! I am glad that you are confident of what you need to do, and are heading in the right direction.

    Also, should you still have questions related to PB, let me know!

    Regards,
    Gabriel

Reply

You must log in to post.

About this Plugin

About this Topic