Ok, I'm making progress with this.
What I'm trying to do is created a Special Access tab for those who have contributed and have access to more features of the site.
My link1.php page contains this:
Code:
define(SpecialAccess, true);
When I click on the Nav link, I want that tab to be highlighted, with items in the sub for "sub link 1", sublink 2", etc.
Here's my plugin code:
Code:
$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'Special')
{
$vbulletin->options['selectednavtab']='Special';
$tabselected = ' class="selected"';
$tablinks = ' <ul class="floatcontainer">
<li><a href="link1.php">Link 1</a></li>
<li class="popupmenu">
<a href="javascript://" class="popupctrl">Drop Down</a>
<ul class="popupbody popuphover">
<li><a href="sublink1.php">SubLink 1</a></li>
<li><a href="sublink2.php">SubLink 2</a></li>
<li><a href="sublink3.php">SubLink 3</a></li>
</ul>
</li>
<li><a href="link2.php">Link 2</a></li>
<li><a href="link3.php">Link 3</a></li>
</ul> ';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="link.php">Nav Link</a>'.$tablinks.'</li>' ;
When I click on the tab, I get taken directly to the contents of link1.php
Any corrections would be greatly appreciated.