First let me say, great mod.
I have gotten the tab to work but I would like to resolve one issue if I can.
When I click on the tab it brings me to my gallery and the proper tab gets highlighted and stays highlighted. But when I click on the link under the tab "New in last day" then it opens in the gallery again like it is suppose to but it defaults to the "What's New" tab.
I would like it to stay in the Gallery Tab that I created and stay highlighted. Is there a way to do this?
Here is my code and the sample navbar image.
PHP Code:
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'ppindex')
{
$vbulletin->options['selectednavtab']='unique_name';
$tabselected = ' class="selected"';
$tablinks = ' <ul class="floatcontainer">
<li><a href="../gallery/search.php?when=1&whenterm=d&cat=all">New in last day</a></li>
<li><a href="../gallery/search.php?when=1&whenterm=w&cat=all">New in last 7 days</a></li>
<li><a href="../gallery/search.php?when=2&whenterm=w&cat=all">New in last 14 days</a></li>
</ul> ';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="../gallery">Test Tab</a>'.$tablinks.'</li>' ;