It's in vBulletin's PHP files. For example, on SHOWTHREAD (showthread.php), the line would be:
PHP Code:
define('THIS_SCRIPT', 'showthread');
In search.php:
PHP Code:
define('THIS_SCRIPT', 'search');
In FORUMHOME, or index.php:
PHP Code:
define('THIS_SCRIPT', 'index');
Unless you have them memorized (or for files added by hacks), you have to check the file for the THIS_SCRIPT definition, otherwise this hack won't know what page to change the navbits on.