can someone post some working, multi-item xml code? I got mine working for multiple raio buttons with the secondary code, but i switched all of those groups to 'non-joinable custom/primary' usergroups and now I get nothing showing up when Iclick the registration email link and I can't get it to work. I've trid every combination i can think of... Ive got the right field, correct spelling and syntax, groups... i think i need to see someone's successful code for a multi-item xml file to compare. tia
this is the code i have now that does not want to work:
PHP Code:
// Get the value for field 5
$user = $db->query_first("
SELECT field5
FROM " . TABLE_PREFIX . "userfield
WHERE userid = " . $vbulletin->userinfo['userid'] . "
");
if ($user['field5'] == 'Yes')
{
$userdata->set('usergroupid', 15);
}
else if ($user['field5'] == 'No')
{
$userdata->set('usergroupid', 17);
}
else if ($user['field5'] == 'Always')
{
$userdata->set('usergroupid', 19);
}
else if ($user['field5'] == 'Never')
{
$userdata->set('usergroupid', 20);
}
I tried using all 'if's but that didn't work either... i'm not too hip on PHP, but i should be able to crack this?!