Hii Daniel,
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:
<tr class='sectiontableentry1'>
<td><div class='item'>Role</div></td>
<td><div class='item'>
<input name='trole' type='text' class='inputbox' size='20' />
</div></td>
</tr>
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 :
var $_trole;
in insertNewPost($ajax = false) function
$role = $this->censorText(JOSC_utils::mysql_escape_string(strip_tags($this->_trole)));
inserted quest as:
$database->SetQuery("
INSERT INTO jos_comment
(contentid,component,ip,userid,usertype,date,name,userole,email,website,notify,title,comment,published,voting_yes,voting_no,parentid)
VALUES(
'$this->_content_id',
'$com',
'$ip',
'$userid',
'',
now(),
'$name',
'$role',
'$email',
'$website',
'$notify',
'$title',
'$comment',
'$published',
'0',
'0',
'$parent_id'
)");
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.
Thank you