View Full Version : tab2 class
veenuisthebest
04-19-2009, 03:25 PM
Hii
I wanted to know how are the tabs on this site get selected when we are viewing a page. Like for example I am viewing "Forums" right now and it is highlighted in the tabbed menu.
I see that the active page class changes to .tab2 from .tab. How is this done??
Thanks
Lynne
04-19-2009, 03:53 PM
Perhaps a conditional based on forumids. You can't do it about THIS_SCRIPT cuz those are used throughout the tabs, so you'd have to base it on the forumids. (Or, in the case of "Forums" you would do it also if THIS_SCRIPT is the index)
veenuisthebest
04-19-2009, 04:27 PM
There should some proper way, as I want to do it for the whole site (for all links/subpages in my navbar). I am trying since long but cannot find a non-javascript solution.
Here is another example site that adds class="selected" in the current page.
http://depkac.com/
--------------- Added 1240167671 at 1240167671 ---------------
okay i got it working with THIS_SCRIPT. Its working good.
Is there any conditional that would take care of sub-pages too? Like say misc.php?do=bbcode
thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.