I have tried to add a simple input tag to the form as Role after Name, for, i have made the following changes in the code.
in template index.html in line 195:
<input name='trole' type='text' class='inputbox' size='20' />
and, the changed as following in comment.class.php
in decodeURI() function
$this->_trole = $this->decodeData_Charset('trole');
in class JOSC_board extends JOSC_visual :
in insertNewPost($ajax = false) function
$role = $this->censorText(JOSC_utils::mysql_escape_string(strip_tags($this->_trole)));
inserted quest as:
INSERT INTO jos_comment
having made all the changes above did not worked out for me in inserting the record field userole in the database which i have found NULL.
I have studied the code and had many trails to workout, but got no result. Can you please suggest me in how and where to make the changes in the code so as to add a customised filed in the feedback form.