Auto Increment Member Number

Discussion in 'Customization & add-ons' started by unmortal, Oct 19, 2014.

  1. unmortal

    unmortal New Member

    Joined:
    Sep 10, 2006
    Messages:
    25
    I actually have this requirement in two different aMember databases so this would be a huge help if there is a solution to this.

    I have a custom user field called 'Member Number'. I would like this field to be auto populated during user creation. The number would also need to be auto-incremented.
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    aMember already has such field. It is user_id. Do you need another one?
  3. unmortal

    unmortal New Member

    Joined:
    Sep 10, 2006
    Messages:
    25
    My existing members numbers cant change, so what would I do export and import all users and assign member number to user_id? I thought I read somewhere on the forums that user_id should not be used/treated as a static number that will never change.
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    user_id never changed. You can use any unique integer numbers for it for new users (import) but you can not alter user_id for existing users.

Share This Page