1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to set add-on option by using an array?

Discussion in 'XenForo Development Discussions' started by Mian Shahid, Nov 29, 2014.

  1. Mian Shahid

    Mian Shahid Well-Known Member

    Hi, I am trying to create an add-on with option of Enable/Disable along with NOD id's where it will act.

    Everything looks like fine for me, but when i am saving options after putting nod id's, after ticking "Enable" box, it not saving anything and showing blank again.

    I set this in optins
    [​IMG]
    then fill as below
    [​IMG]
    after saving, it showing blank
    [​IMG]

    Any help from experts?
     
  2. Nobita.Kun

    Nobita.Kun Well-Known Member

    As i see. You should using TextBox. Then in PHP using explode(); function :)
     
    Mian Shahid likes this.
  3. Nobita.Kun

    Nobita.Kun Well-Known Member

    Also Dataformat: Array it not compatible with field: Textbox. You should using PHP callback
     
    Mian Shahid likes this.

Share This Page