I wanted to contributing back a modification that I made to this for an upcoming site. I didn't like that the Navtab presentation was a dropdown menu and different than my other tabs. So I edited the system to work like other tabs.
First I created a new template called gallery_navbar_link:
HTML Code:
<li<vb:if condition="$vboptions[selectednavtab==='gallery'"> class="selected"</vb:if>>
<a href="albumall.php?{vb:raw session.sessionurl}" class="navtab">{vb:rawphrase gallery}</a>
<vb:if condition="$vboptions[selectednavtab==='gallery'">
<ul class="floatcontainer">
<li><a href="albumall.php?{vb:raw session.sessionurl}">{vb:rawphrase album_gallery</a></li>
<li><a href="picall.php?{vb:raw session.sessionurl}">{vb:rawphrase picture_gallery}</a></li>
<vb:if condition="$show['member']">
<li><a href="album.php?{vb:raw session.sessionurl}&do=latest">{vb:rawphrase latest_albums}</a></li>
<li><a href="album.php?{vb:raw session.sessionurl}&u={vb:raw bbuserinfo.userid">{vb:rawphrase my_albums}</a></li>
<li><a href="album.php?{vb:raw session.sessionurl}&do=addalbum">{vb:rawphrase add_album}</a></li>
</vb:if>
</ul>
</vb:if>
</li>
Then I rendered the template with this hook:
Product: Picture and Album Gallery
Hook Location: process_templates_complete
Title: Gallery Navtab Link
PHP Code:
// Add Gallery Tab
if (THIS_SCRIPT == 'album' OR THIS_SCRIPT == 'albumall' OR THIS_SCRIPT == 'picall')
{
$vbulletin->options['selectednavtab'] = 'gallery';
}
$templater = vB_Template::create('gallery_navbar_link');
$template_hook['navtab_middle'] .= $templater->render();
Just an alternate presentation if you will. You can see an example on the site that I am working on at
http://www.wayneflix.com