ok ive looked in the file u mentioned ("class_dm_threadpost.php") and ive there three classes that have this $validfields array .
i have added in the following textbox in the template "newreply" :
Code:
<td><input type="text" class="bginput" name="bookname" value="$bookname" size="20" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
<td><input type="text" class="bginput" name="pagenumber" value="$pagenumber" size="20" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
<td><input type="text" class="bginput" name="exnumber" value="$exnumber" size="20" maxlength="$vboptions[titlemaxchars]" tabindex="1" title="$vbphrase[optional]" /></td>
<td> </td>
<td><img id="display_posticon" src="$selectedicon[src]" alt="$selectedicon[alt]" /></td>
so in each class on the file class_dm_threadpost.php i need to add to the $validfields array things like :
PHP Code:
'bookname' => array(TYPE_STR, REQ_NO),
'pagenumber' => array(TYPE_STR, REQ_NO),
'exnumber' => array(TYPE_STR, REQ_NO)
by the same order,
and then what? where they will be available? sry im so annoying about this.. but belive me im reading alot about these datamanager and still havent understood how the all proccess goes .
ill be glad if u could more specific.
in addition, where shall i look for more "$validfields", in what templates? not through the admin cp right ? cause there i found nothing .
and so, i didnt understand what shall i do with the : threaddata_start .
the code i found about this hook is :
Code:
function vB_DataManager_Thread(&$registry, $errtype = ERRTYPE_STANDARD)
{
parent::vB_DataManager_ThreadPost($registry, $errtype);
($hook = vBulletinHook::fetch_hook('threaddata_start')) ? eval($hook) : false;
}
in the same file u mentioned.
regards,