You put it in the middle of the string. You need to do something like this:
PHP Code:
global $template_hook, $vbulletin;
$tabselected = '';
$tablinks = '';
if (PP_SCRIPT == 'PP_Pro')
{
$vbulletin->options['selectednavtab']='pp_pro';
$tabselected = ' class="selected"';
$tablinks = ' <ul class="floatcontainer">
<li><a href="http://www.mysite.com/gallery/index.php">Gallery Home</a></li>
<li><a href="http://www.mysite.com/gallery/showgallery.php?cat=500&ppuser=$vbuserid">My Photos</a></li>
<li><a href="http://www.mysite.com/gallery/search.php?what=fav">My Favorites</a></li>
<li><a href="http://www.mysite.com/gallery/useralbums.php">My Albums</a></li>
<li><a href="http://www.mysite.com/gallery/uploadphoto.php">Upload Photos</a></li>
<li><a href="http://www.mysite.com/gallery/search.php">Search</a></li>';
if (is_member_of($vbulletin->userinfo, 6))
{
$tablinks .= '<li> link here </li>';
}
$tablinks .= '</ul> ';
}
$template_hook['navtab_middle'] .= '<li'.$tabselected.'><a class="navtab" href="http://www.mysite.com/gallery/">Gallery</a>'.$tablinks.'</li>';