![]() |
Change page selected tabs
Hi,
How do I change which tab is given the selected attribute in the navbar on a specific page? |
Usually there is a condition written around it in the code. So, you'd have to modify the condition.
|
Quote:
I can't seem to find the condition. I've used this to create a custom page: https://vborg.vbsupport.ru/showthread.php?t=228112 |
That's the code to create a page. There is no code in that to make a tab to go along with it.
|
Quote:
Is there a code to set the selected tab to Home instead of Forum? |
You would have to edit the plugin that creates the Home tab and include the condition for that page in there.
|
Thanks Lynne, I can image that list getting slightly long :/
|
For custom pages? It doesn't have to be. Just define a variable (like they do THIS_SCRIPT) to be the same on each of your custom pages and use that for the condition.
|
Quote:
PHP Code:
|
Instead of:
HTML Code:
<vb:if condition="!$vboptions['selectednavtab'] AND THIS_SCRIPT != 'search' AND THIS_SCRIPT != 'usercp' AND THIS_SCRIPT != 'member' AND THIS_SCRIPT != 'showgroups' AND THIS_SCRIPT != 'memberlist'"> HTML Code:
<vb:if condition="!$vboptions['selectednavtab'] AND !in_array(THIS_SCRIPT, array('search', 'usercp', 'member', 'showgroups', 'memberlist'))"> |
All times are GMT. The time now is 11:22 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|