Log in

View Full Version : [FIXED] Date and Time Profile Field


Boofo
09-18-2005, 10:46 AM
I made a profile field (7) and entered this code in the global_start hook. For some reason it isn't working. Did I miss something or did vB 3.5 change something on me? ;)

if ($vbulletin->userinfo['field7'] != "Use Forum Default") {
if ($vbulletin->userinfo['field7'] == "Normal") {
$vbulletin->options['yestoday'] = '0';
} elseif ($vbulletin->userinfo['field7'] == "Yesterday/Today") {
$vbulletin->options['yestoday'] = '1';
} elseif ($vbulletin->userinfo['field7'] == "Detailed") {
$vbulletin->options['yestoday'] = '2';
}
}

Boofo
09-18-2005, 02:15 PM
The code was right, I had the field number wrong. I was using the display number. Duh!