Several ways to do it. One way..
hook location - parse_templates
PHP Code:
if (THIS_SCRIPT == 'xxxx') {
if ($vbulletin->options['storecssasfile'])
{
$vbcsspath = 'clientscript/vbulletin_css/style' . str_pad($style['styleid'], 5, '0', STR_PAD_LEFT) . $vbulletin->stylevars['textdirection']['string'][0] . '/';
}
else
{
// textdirection var added to prevent cache if admin modified language text_direction. See bug #32640
$vbcsspath = 'css.php?styleid=' . $style['styleid'] . '&langid=' . LANGUAGEID . '&d=' . $style['dateline'] . '&td=' . $vbulletin->stylevars['textdirection']['string'] . '&sheet=';
}
$template_hook['headinclude_bottom_css'] .= '<link rel="stylesheet" type="text/css" href="'.$vbcsspath.'yyyy.css" />';
}
Change xxxx and yyyy as needed.