• 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

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:
$someVar = trim($this->_input->filterSingle('field_name', XenForo_Input::STRING));
But it's not coming back with anything. Any ideas?


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)?
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.