PDA

View Full Version : Sub Tabs


Wunderlust
02-09-2011, 10:26 PM
Hi,

If I use the $template_hook['navtab_start'] hook, the sub tabs for the forum are not shown. Is there anyway to make this happen for the these pages?

For instance, I have used this hook location to add a Home Tab to the main tab - how do I get the default vbulletin sub tabs to sho up under this tab.

My plugin toi show this link is currently:-

$tabselected = '';
$tablinks = '';
if (THIS_SCRIPT == 'adv_index')
{
$vbulletin->options['selectednavtab']='TBX'; //MUST BE UNIQUE! Otherwise you'll have the bottom bar and highlights getting mixed up
$tabselected = ' class="selected"';
$tablinks = ' ';

}
$template_hook['navtab_start'] .= '<li'.$tabselected.'><a class="navtab" href="http://www.tacklebox.com.au/">TBX</a>'.$tablinks.'</li>' ;



The home page link is here:_ http://www.tacklebox.com.au/
Thanks

Wunderlust
02-13-2011, 07:53 AM
No one knows the code to this without manually adding???

Surely tere must be a way!

Lynne
02-13-2011, 03:01 PM
That plugin codes sets it so if you are on the adv_index page, then you show the code posted in that plugin. If you only want a link to that page, and no submenu, then you don't need all that code, you just need to add an <li><a href="link.php></li> to that template_hook.

Wunderlust
02-13-2011, 09:51 PM
Hi Lynne, I do want to add all the sub menus that are shown here:- http://www.tacklebox.com.au/forums/forum.php but I don't want to manually add each one to the code - Is there anyway of doing this easily by calling another pligin etc?

Lynne
02-13-2011, 11:36 PM
You will need to copy the code if that is what you want to show when your tab is active.