Need to display Record ID in User Profile

Discussion in 'Templates customization' started by tooliedotter, Mar 15, 2013.

  1. tooliedotter

    tooliedotter Member

    Joined:
    Apr 21, 2009
    Messages:
    59
    My client uses the record ID as their Member ID, and we insist that members include it when they enter art shows on their site. We used to be able to display the ID within Amember 3, but now that I've upgraded to v4, it's not there anymore.

    Basically the record ID is data that's already been retrieved and ready to display in their profile; is it possible to add a read-only field in the profile form to display that record ID?

    What's the best way to do this? I can dig into the PHP code, but would upgrades overwrite it?

    Help!
    Toolie
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
    What is record ID is that custom field which you created in amember CP -> Add fields?
    If so you already should be able to add brick for that field into profile form. Check amember CP -> Forms Editor -> Edit Profile form.
  3. tooliedotter

    tooliedotter Member

    Joined:
    Apr 21, 2009
    Messages:
    59
    It's not a custom field, that's the problem. I'm talking about table xxx_user.user_id, the autoincremented field in the xxx_user table. That's the number we use for our member ID.

    Remember, I had a problem last fall when I discovered that a version prior to v4.14 was renumbering the records? I have since gotten that straightened out, but now I need to display that user_id within the interface.

    Suggestions? Like I said, I don't mind tiptoeing through code to make it happen. Just tell me where and when; I already have a custom theme for this site.

    Thanks,

    Toolie
  4. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
  5. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,274
  6. tooliedotter

    tooliedotter Member

    Joined:
    Apr 21, 2009
    Messages:
    59
    Alexander THANK YOU that's PERFECT. That'll be about 20 fewer emails I have to answer per day...!

    Toolie

Share This Page