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

Save custom field data while creating the thread.

Discussion in 'XenForo Development Discussions' started by ForumCube, Oct 29, 2014.

  1. ForumCube

    ForumCube Active Member


    I was trying to add custom field while thread creation which is done. Now I am trying merge this feild data with the thread data. So I target the "actionAddThread()" for that.

    For this I extend this method and then return it to the parent class method. But when I check the input array in parent class, I cant inject the code in input array.

    Here is my extended method.

    But when I check the input array in the parent class it does not contain my data.
  2. Milano

    Milano Well-Known Member

    You're doing it wrong, you need to extend your thread controller with XFCP_YourClassName and resolve it with Code Event Listener
  3. ForumCube

    ForumCube Active Member

    Hi Milano,

    Thanks a lot. Yes you are right , I was doing this wrong.

    Although I done this part of my plugin using waindigo custom field plugin which create the custom thread field as well as store it in the database as well. :)


Share This Page