I created a PHP file with nothing in it but the following:
PHP Code:
<?php
define('THIS_SCRIPT', 'locallinks');
?>
My plugin script has the following:
PHP Code:
if (THIS_SCRIPT == 'locallinks')
{
$vbulletin->options['selectednavtab']='locallinks';
At the bottom of the plugin is:
PHP Code:
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="/index.php?pageid=locallinks">Test Link</a>'.$tablinks.'</li>' ;
When I click on my new tab, it highlights the Forum tab and shows all the regular stuff found under Forum (New Posts, Private Messages, FAQ, etc).
Any help is appreciated.