Quote:
Originally Posted by Andreas
There are Hooks
Try
newthread_post_start
PHP Code:
$vbulletin->input->clean_array_gpc('p', array('field1' => TYPE_STR, 'field2', TYPE_STR)); $newpost['field1'] =& $vbulletin->GPC['field1']; $newpost['field2'] =& $vbulletin->GPC['field2'];
threadfpdata_start
PHP Code:
$this->validfields['field1'] = array(TYPE_STR, REQ_NO); $this->validfields['field2'] = array(TYPE_STR, REQ_NO);
newpost_process
PHP Code:
if ($type == 'thread) { $dataman->setr('field1', $post['field1']); $dataman->setr('field2', $post['field2']); }
|
There is a typo in this. It should be:
if ($type == 'thread
')
{
$dataman->setr('field1', $post['field1']);
$dataman->setr('field2', $post['field2']);
}
Andreas - when I use this, it writes the first field fine but won't write the second field. Any ideas?