1Unreal
07-27-2009, 06:50 PM
I'm having some trouble setting options...
I have this
<input type="text" name="set_options[lastfm_username]" />
On modifyoptions template
This on profile_updateoptions plugin
$vbulletin->input->clean_array_gpc('r', array('lastfm_username' => TYPE_NOHTML);
$userdata->set('lastfm_username', $_REQUEST['lastfm_username']);
And this on userdata_start
$this->validfields['lastfm_username'] = array(TYPE_STR, REQ_NO);
But its not updating.
I have this
<input type="text" name="set_options[lastfm_username]" />
On modifyoptions template
This on profile_updateoptions plugin
$vbulletin->input->clean_array_gpc('r', array('lastfm_username' => TYPE_NOHTML);
$userdata->set('lastfm_username', $_REQUEST['lastfm_username']);
And this on userdata_start
$this->validfields['lastfm_username'] = array(TYPE_STR, REQ_NO);
But its not updating.