How to install Gallery's navigation tab and links for vB4.0.X - 4.1.X users
1. Open template "navbar" and find:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search'">
replace it with:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'sc_gallery' AND THIS_SCRIPT != 'album'">
2. Open template "navbar" and find:
Code:
{vb:raw template_hook.navtab_end}
add below:
Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT == 'sc_gallery' OR THIS_SCRIPT == 'album'">
<li class="selected"><a class="navtab" href="{vb:link forumhome}">{vb:rawphrase sc_gallery}</a>
<ul class="floatcontainer">
<vb:if condition="$show['member']">
<li class="popupmenu">
<a href="javascript://" class="popupctrl">My Stuff</a>
<ul class="popupbody popuphover">
<li><a href="album.php?{vb:raw session.sessionurl}">My Albums</a></li>
<li><a href="album.php?{vb:raw session.sessionurl}do=addalbum" rel="nofollow">Add Album</a></li>
<li><a href="gallery.php?{vb:raw session.sessionurl}do=mycomments" rel="nofollow">My Comments</a></li>
<li><a href="gallery.php?{vb:raw session.sessionurl}do=pending" rel="nofollow">Pending Albums</a></li>
</ul>
</li>
</vb:if>
<li><a href="gallery.php?{vb:raw session.sessionurl}do=latestpictures">Latest Pictures</a></li>
<li><a href="gallery.php?{vb:raw session.sessionurl}do=latestalbums">Latest Albums</a></li>
<li><a href="gallery.php?{vb:raw session.sessionurl}do=latestcomments">Latest Comments</a></li>
<li><a href="gallery.php?{vb:raw session.sessionurl}do=search">Search</a></li>
</ul>
</li>
<vb:else />
<li><a class="navtab" href="gallery.php">{vb:rawphrase sc_gallery}</a></li>
</vb:if>
3. Done!