I'm not COMPLETELY sure, since I don't do vB3 anymore, and so I can't test.... But you could try this on the
profile_updateprofile hook:
PHP Code:
$my_location_field = 'field2'; /// NOTE -- Edit this if yours is different.
$location_data_entered = $vbulletin->GPC['userfield'][$my_location_field];
$new_location = ucwords($location_data_entered);
$vbulletin->GPC['userfield'][$my_location_field] = $new_location;
$userdata->set_userfields($vbulletin->GPC['userfield']);
That will also take into consideration spaces. For example, if I put "SOMEWHERE IN HELL" as my location, it would change it to "Somewhere In Hell". Of course, "In" should not be capitalized grammatically, heh.
I've not tested this (I don't have vB3, and though it should (in theory) also work on vB4, I'm just too lazy to try it out. XP