I believe the problem is that when userid != 1, you show the standard error page, and in function standard_error() (in includes/functions.php) evaluates the navbar template, but at that point $number is not available because it is global.
Maybe it will work if you use an existing global array instead of $number, like $template_hook['number'] or $vbulletin->userinfo['number'].
|