PDA

View Full Version : How to give my navbar tabs the "selected" look


Fudgyyy
05-14-2013, 02:33 PM
I was wondering if there was a way to indicate to the users via the tab, that they are somewhere. Like I would like /forum.php to have the forum tab selected. And when they are in the free ebook forum, I would like the free ebooks selected.

How can I accomplish this?

This is my forum: www.maddenstudents.com/forum.php

Lynne
05-14-2013, 02:54 PM
In default vbulletin style, if you are in the Forums, the Forums tab is selected. And, if you entered the ebooks tab correctly into the Navigation Manager, then the ebooks tab would be selected. My guess is there is something you need to upgrade in your custom style.

nerbert
05-14-2013, 03:57 PM
Did you start from scratch creating your Forum tab? It should have an identity of vbtab_forum instead of tab_odu0_588. If you still have the original Forum tab available you should edit it so it gives the right link. I suspect (but am not sure) that if you use the original Forum tab it will show as selected for various pages. Maybe you can just try putting "index" in the tab script(s) field.

All your other tabs are custom pages and each one should have a THIS_SCRIPT defined.

define('THIS_SCRIPT', 'my_custom_page');

If they are html files you'll need to put this at the top

<?php define('THIS_SCRIPT', 'my_custom_page'); ?>

and change the extension from html to php

Then you can use the tab script(s) to specifiy that they should show as selected