zylstra
12-20-2006, 11:54 PM
I'm trying to check for a custom profile field value, and change it if it is too high. So at the profile_updateprofile hook I have placed the following, none of which work. Could you tell me the code to get it to work? Thanks.
if ($vbulletin->GPC['field15'] > 10)
{
// $userdata->set_userfields(array(
// 'field15' => 9));
// $userdata->set('field15', 9);
// $vbulletin->userinfo['field15'] = 9;
}
if ($vbulletin->GPC['field15'] > 10)
{
// $userdata->set_userfields(array(
// 'field15' => 9));
// $userdata->set('field15', 9);
// $vbulletin->userinfo['field15'] = 9;
}