Quote:
Originally Posted by Lynne
You've done nothing in that plugin to insert a navtab into your navbar. You need to use a template_hook to insert it. Something like:
PHP Code:
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="link.php">Nav Link</a>'.$tablinks.'</li>' ;
You probably need to make $template_hook global also. And, you'll have to do something to the Home navtab plugin to not make it selected also since it is currently set to be the active tab is you are on a content page (you'll have to change the condition to be "on content page except these content pages....").
|
Of course I have more lines in that plug in(I just put the ones who related to this issue).
This is my whole code:
PHP Code:
$tabselected = '';
$tablinks = '';
if (($_GET['r'] == 3) && (THIS_SCRIPT == 'vbcms'))
{
$vbulletin->options['selectednavtab']='content.php?r=3';
$tabselected = ' class="selected"';
$tablinks = '';
}
$template_hook['navtab_end'] .= '<li'.$tabselected.'><a class="navtab" href="content.php?r=3">Tab Name</a>'.$tablinks.'</li>' ;
And I didn't actually understood what you meant after that, can you explain me that again with some examples?
Thanks!