The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hi,
How do I change which tab is given the selected attribute in the navbar on a specific page? |
#2
|
||||
|
||||
![]()
Usually there is a condition written around it in the code. So, you'd have to modify the condition.
|
#3
|
|||
|
|||
![]() 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 |
#4
|
||||
|
||||
![]()
That's the code to create a page. There is no code in that to make a tab to go along with it.
|
#5
|
|||
|
|||
![]() Quote:
Is there a code to set the selected tab to Home instead of Forum? |
#6
|
||||
|
||||
![]()
You would have to edit the plugin that creates the Home tab and include the condition for that page in there.
|
#7
|
|||
|
|||
![]()
Thanks Lynne, I can image that list getting slightly long :/
|
#8
|
||||
|
||||
![]()
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.
|
#9
|
|||
|
|||
![]() Quote:
PHP Code:
|
#10
|
||||
|
||||
![]()
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'))">
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|