If your talking about creating some link in the vbulletin navbar you would have to use the vbulletin userid variable not ours because your talking about the
vb navbar
I have not looked into which works but maybe this
{
vb:raw bbuserinfo.userid}
or
$bbuserinfo['userid']