Actually this will work better, I think:
Code:
if ($vbulletin->options['invitation_automatic_link_creation'] == 1 AND $canuseinvitation) {
$template_hook['navbar_buttons_left'] .= '<td class="vbmenu_control"><a href="profile.php?'.$session['sessionurl'].'do=invitation">'.$vbphrase['invitation'].'</a></td>';
}
if ($vbulletin->options['invitation_automatic_link_creation'] == 2 AND $canuseinvitation) {
$template_hook['navbar_quick_links_menu_pos1'] .= '<tr><td class="vbmenu_option"><a href="profile.php?'.$session['sessionurl'].'do=invitation">'.$vbphrase['invitation'].'</a></td></tr>';
}