How to update thread field on new post
by
29 Jun 2006
I think this should help someone, I posted this as a question but now have it working. First add the field foobar to the threads table (as an example). This is true/false based field, you will have to add your own checks, e.g who can update foobar etc In the quick reply/new reply template/s add this HTML in the thread management area quick reply area HTML Code:
<label for="qr_foobar"><input type="checkbox" name="foobar" value="1" id="qr_foobar" accesskey="w" tabindex="4" />Please update my Foobar</label> PHP Code:
$this->validfields['foobar'] = array(TYPE_BOOL, REQ_NO);
PHP Code:
$set_foobar_status = false;
PHP Code:
$vbulletin->input->clean_array_gpc('p', array('foobar' => TYPE_BOOL));
|