Hmm...we discussed this in the coder area not too long ago, and user Disasterpiece posted this code:
Code:
global $new_datastore_fetch;
if (!isset($new_datastore_fetch) || !is_array($new_datastore_fetch)) {
$new_datastore_fetch = array('userstats');
} elseif (!in_array('userstats', $new_datastore_fetch)) {
$new_datastore_fetch[] = 'userstats';
}
I didn't post all that because looking at the code around the init_startup hook it doesn't look like it should be necessary, but you might want to try it.
Where are you trying to use $vbulletin->customname (or whatever the actual name is), is it in a plugin or a custom script?