custom plugin using custom sql field

Discussion in 'Customization & add-ons' started by jakumpe, Feb 5, 2020.

Thread Status:
Not open for further replies.
  1. jakumpe

    jakumpe New Member

    Joined:
    May 14, 2010
    Messages:
    13
    I am trying to build a custom protect plugin using the plugin maker. I have a custom sql field for users within amember called pin. How can I use this pin field in my plugin?
  2. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
    You can add this pin to fields mapping after plugin is complete.

    First of all please be sure that pin field is SQL:
    aMember CP -> Configuration -> Add User Fields

    then complete plugin and open code of plugin.
    Find field mapping code and add line:
    PHP:
    array('pin''NAME_OF_COLUMN_IN_YOUR_DB'),
  3. jakumpe

    jakumpe New Member

    Joined:
    May 14, 2010
    Messages:
    13
    Well that was easy. I tried everything BUT that. Thanks for the help.
  4. caesar

    caesar aMember Pro Developer Staff Member

    Joined:
    Oct 16, 2009
    Messages:
    2,295
Thread Status:
Not open for further replies.

Share This Page