Hook: usercp_start
PHP Code:
if ($_POST['do'] == 'notes')
{
$userdata =& datamanager_init('User', $vbulletin, ERRTYPE_STANDARD);
$userdata->set_existing($vbulletin->userinfo);
$userdata->set('notes', $vbulletin->input->clean_gpc('p', 'notes', TYPE_NOHTML));
$userdata->save();
}
Hook: userdata_start
PHP Code:
$this->validfields['notes'] = array(TYPE_NOHTML, REQ_NO);