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

Capturing new field(s) on thread creation

Discussion in 'XenForo Development Discussions' started by Donnie La Curan, Jan 9, 2012.

  1. Donnie La Curan

    Donnie La Curan Active Member

    I added a new field in the thread_create template and I have a class that extends XenForo_ControllerPublic_Forum.

    I'm trying to capture the field by using this:
    PHP:
    $someVar trim($this->_input->filterSingle('field_name'XenForo_Input::STRING));
    But it's not coming back with anything. Any ideas?
     
  2. digitalpoint

    digitalpoint Well-Known Member

    What method within the forum controller are you trying to capture it exactly?

    Also, are you trying to do something else with it (like save whatever the input was for future use)?
     
  3. Donnie La Curan

    Donnie La Curan Active Member

    I was able to figure it out. It was something else in the code causing it to never get to this part. It works just fine above. I released my add-on the other day.

    Basically, it's a new field in the thread_create template and I wanted to capture the value and save it to the database.
     

Share This Page