Hi there,
I'm saving an extra field to each post (for example: 'member location when posting'). I've managed to do it for new posts by validating the field (hook 'postdata_start' as below) and using $dataman->set
hook: postdata_start
...BUT I can't save new threads without an error. what is the right hook to validate $this->validfields['myvar'] on a new thread?
Ta.
I'm saving an extra field to each post (for example: 'member location when posting'). I've managed to do it for new posts by validating the field (hook 'postdata_start' as below) and using $dataman->set
hook: postdata_start
PHP Code:
$this->validfields['myvar'] = array(TYPE_STR, REQ_NO);
...BUT I can't save new threads without an error. what is the right hook to validate $this->validfields['myvar'] on a new thread?
Ta.
Comment