I wanted to give a bigger emphasis on the gallery, thus displaying the link in the main navbar, not in the "forum" sub-bar.
Here are the modifications in the
navbar template :
Find:
Code:
{vb:raw template_hook.navtab_end}
Add Below:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND (THIS_SCRIPT == 'albumall' OR THIS_SCRIPT == 'album' OR THIS_SCRIPT == 'picall')">
<vb:if condition="$show['member']">
<li class="selected"><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}">Gallery</a>
<ul class="floatcontainer">
<li><a href="picall.php?{vb:raw session.sessionurl}">Picture Gallery</a></li>
<li><a href="albumall.php?{vb:raw session.sessionurl}">Album Gallery</a></li>
<li><a href="album.php?{vb:raw session.sessionurl}do=latest">Latest Albums</a></li>
<li><a href="album.php?{vb:raw session.sessionurl}u={vb:raw userinfo.userid}">My Albums</a></li>
<li><a href="album.php?{vb:raw session.sessionurl}do=addalbum">Add Albums</a></li>
</ul>
<vb:else />
<li class="selected"><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}">Gallery</a>
<ul class="floatcontainer">
<li><a href="picall.php?{vb:raw session.sessionurl}">Picture Gallery</a></li>
<li><a href="albumall.php?{vb:raw session.sessionurl}">Album Gallery</a></li>
<li><a href="album.php?{vb:raw session.sessionurl}do=latest">Latest Albums</a></li>
</ul>
</vb:if>
<vb:else />
<li><a class="navtab" href="albumall.php?{vb:raw session.sessionurl}" >Gallery</a>
</vb:if>
Find:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
Replace With:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'albumall' AND THIS_SCRIPT != 'album' AND THIS_SCRIPT != 'picall'">
Done.
Note: the addition in navbar could be easily coded as a hook on
navtab_end, not sure that the replacment could be achieved in a "clean" way (ie : not altering the navbar template)