I need in my topic new input field, i added it in template file and in the database #__kunena_topics, in controllers topic.php i added it also to function post() but if i save topic my custom field value is not saved in db, name field has true name etc... are there still files where i must get value from my custom field?
in the controller file i added this field: /components/com_kunena/controllers/topic.php
public function post() {
$this->id = JRequest::getInt('parentid', 0);
$fields = array (
'catid' => $this->catid,
'name' => JRequest::getString ( 'authorname', $this->me->getName () ),
'email' => JRequest::getString ( 'email', null ),
'subject' => JRequest::getVar ( 'subject', null, 'POST', 'string', JREQUEST_ALLOWRAW ),
'message' => JRequest::getVar ( 'message', null, 'POST', 'string', JREQUEST_ALLOWRAW ),
'icon_id' => JRequest::getInt ( 'topic_emoticon', null ),
'anonymous' => JRequest::getInt ( 'anonymous', 0 ),
'poll_title' => JRequest::getString ( 'poll_title', '' ),
'poll_options' => JRequest::getVar('polloptionsID', array (), 'post', 'array'),
'poll_time_to_live' => JRequest::getString ( 'poll_time_to_live', 0 ),
'tags' => JRequest::getString ( 'tags', null ),
'mytags' => JRequest::getString ( 'mytags', null ),
'subscribe' => JRequest::getInt ( 'subscribeMe', 0 ),
'crmusername' => JRequest::getVar ('crmusername', null)
);
JRequest
is deprecated.